2011-11-26 06:34:55 +01:00
|
|
|
//
|
2015-08-18 03:33:34 +02:00
|
|
|
// Basic Bootstrap table
|
2014-12-19 07:59:47 +01:00
|
|
|
//
|
2011-05-04 03:09:25 +02:00
|
|
|
|
2012-01-18 08:39:18 +01:00
|
|
|
.table {
|
2011-05-04 03:09:25 +02:00
|
|
|
width: 100%;
|
2014-06-09 01:54:05 +02:00
|
|
|
max-width: 100%;
|
2014-12-05 00:25:57 +01:00
|
|
|
margin-bottom: $spacer;
|
|
|
|
|
2014-12-19 07:59:47 +01:00
|
|
|
th,
|
|
|
|
td {
|
|
|
|
padding: $table-cell-padding;
|
2015-06-23 08:24:32 +02:00
|
|
|
line-height: $line-height;
|
2014-12-19 07:59:47 +01:00
|
|
|
vertical-align: top;
|
2015-11-15 08:24:48 +01:00
|
|
|
border-top: $table-border-width solid $table-border-color;
|
2012-01-18 08:39:18 +01:00
|
|
|
}
|
2014-12-19 07:59:47 +01:00
|
|
|
|
|
|
|
thead th {
|
2012-02-11 08:07:32 +01:00
|
|
|
vertical-align: bottom;
|
2015-11-15 08:24:48 +01:00
|
|
|
border-bottom: (2 * $table-border-width) solid $table-border-color;
|
2012-01-18 08:39:18 +01:00
|
|
|
}
|
2014-12-19 07:59:47 +01:00
|
|
|
|
|
|
|
tbody + tbody {
|
2015-11-15 08:24:48 +01:00
|
|
|
border-top: (2 * $table-border-width) solid $table-border-color;
|
2012-01-18 08:39:18 +01:00
|
|
|
}
|
2012-12-08 21:57:21 +01:00
|
|
|
|
2014-12-19 07:59:47 +01:00
|
|
|
.table {
|
|
|
|
background-color: $body-bg;
|
|
|
|
}
|
2012-01-11 18:43:13 +01:00
|
|
|
}
|
|
|
|
|
2011-11-01 03:37:10 +01:00
|
|
|
|
2014-12-19 07:59:47 +01:00
|
|
|
//
|
2013-07-23 19:48:30 +02:00
|
|
|
// Condensed table w/ half padding
|
2014-12-19 07:59:47 +01:00
|
|
|
//
|
2011-11-01 03:37:10 +01:00
|
|
|
|
2014-09-18 07:14:27 +02:00
|
|
|
.table-sm {
|
2014-12-19 07:59:47 +01:00
|
|
|
th,
|
|
|
|
td {
|
|
|
|
padding: $table-sm-cell-padding;
|
2011-09-08 19:47:05 +02:00
|
|
|
}
|
2011-11-01 03:37:10 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2013-07-23 19:48:30 +02:00
|
|
|
// Bordered version
|
2013-08-19 06:43:05 +02:00
|
|
|
//
|
|
|
|
// Add borders all around the table and between all the columns.
|
2011-11-01 03:37:10 +01:00
|
|
|
|
2012-01-15 06:28:47 +01:00
|
|
|
.table-bordered {
|
2015-11-15 08:24:48 +01:00
|
|
|
border: $table-border-width solid $table-border-color;
|
2014-12-19 07:59:47 +01:00
|
|
|
|
|
|
|
th,
|
|
|
|
td {
|
2015-11-15 08:24:48 +01:00
|
|
|
border: $table-border-width solid $table-border-color;
|
2012-07-20 06:06:42 +02:00
|
|
|
}
|
2014-12-19 07:59:47 +01:00
|
|
|
|
|
|
|
thead {
|
|
|
|
th,
|
|
|
|
td {
|
2015-11-15 08:24:48 +01:00
|
|
|
border-bottom-width: (2 * $table-border-width);
|
2013-08-17 23:15:33 +02:00
|
|
|
}
|
|
|
|
}
|
2011-05-04 03:09:25 +02:00
|
|
|
}
|
|
|
|
|
2011-06-30 09:15:37 +02:00
|
|
|
|
2013-07-23 19:48:30 +02:00
|
|
|
// Zebra-striping
|
2013-08-19 06:43:05 +02:00
|
|
|
//
|
2011-11-30 07:35:03 +01:00
|
|
|
// Default zebra-stripe styles (alternating gray and transparent backgrounds)
|
2013-08-19 06:43:05 +02:00
|
|
|
|
2013-11-07 03:32:35 +01:00
|
|
|
.table-striped {
|
2015-01-19 23:48:12 +01:00
|
|
|
tbody tr:nth-of-type(odd) {
|
2014-12-02 23:02:35 +01:00
|
|
|
background-color: $table-bg-accent;
|
2011-11-30 07:35:03 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2013-07-23 19:48:30 +02:00
|
|
|
// Hover effect
|
2013-08-19 06:43:05 +02:00
|
|
|
//
|
2012-02-05 11:28:42 +01:00
|
|
|
// Placed here since it has to come after the potential zebra striping
|
2013-08-19 06:43:05 +02:00
|
|
|
|
2013-11-07 03:32:35 +01:00
|
|
|
.table-hover {
|
2015-01-01 10:05:01 +01:00
|
|
|
tbody tr {
|
|
|
|
@include hover {
|
|
|
|
background-color: $table-bg-hover;
|
|
|
|
}
|
2012-02-05 11:28:42 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2011-11-30 07:35:03 +01:00
|
|
|
|
2013-07-23 19:48:30 +02:00
|
|
|
// Table backgrounds
|
2013-08-19 06:43:05 +02:00
|
|
|
//
|
2013-07-24 07:27:49 +02:00
|
|
|
// Exact selectors below required to override `.table-striped` and prevent
|
|
|
|
// inheritance to nested tables.
|
2012-08-08 07:50:49 +02:00
|
|
|
|
2013-08-19 06:43:05 +02:00
|
|
|
// Generate the contextual variants
|
2014-12-02 23:02:35 +01:00
|
|
|
@include table-row-variant(active, $table-bg-active);
|
|
|
|
@include table-row-variant(success, $state-success-bg);
|
|
|
|
@include table-row-variant(info, $state-info-bg);
|
|
|
|
@include table-row-variant(warning, $state-warning-bg);
|
|
|
|
@include table-row-variant(danger, $state-danger-bg);
|
2013-08-19 06:43:05 +02:00
|
|
|
|
|
|
|
|
|
|
|
// Responsive tables
|
|
|
|
//
|
2013-08-23 08:53:09 +02:00
|
|
|
// Wrap your tables in `.table-responsive` and we'll make them mobile friendly
|
2013-08-19 06:43:05 +02:00
|
|
|
// by enabling horizontal scrolling. Only applies <768px. Everything above that
|
|
|
|
// will display normally.
|
|
|
|
|
2014-02-14 19:48:17 +01:00
|
|
|
.table-responsive {
|
2014-12-19 07:59:47 +01:00
|
|
|
display: block;
|
|
|
|
width: 100%;
|
2015-10-29 08:32:20 +01:00
|
|
|
min-height: 0.01%; // Workaround for IE9 bug (see https://github.com/twbs/bootstrap/issues/14837)
|
2014-12-11 21:05:29 +01:00
|
|
|
overflow-x: auto;
|
2014-08-02 22:05:11 +02:00
|
|
|
|
2015-10-29 08:32:20 +01:00
|
|
|
// TODO: find out if we need this still.
|
2014-12-19 07:59:47 +01:00
|
|
|
//
|
2015-11-15 08:24:48 +01:00
|
|
|
// border: $table-border-width solid $table-border-color;
|
2015-10-29 08:32:20 +01:00
|
|
|
// -ms-overflow-style: -ms-autohiding-scrollbar; // See https://github.com/twbs/bootstrap/pull/10057
|
2013-08-19 06:43:05 +02:00
|
|
|
}
|
2014-07-14 08:45:34 +02:00
|
|
|
|
|
|
|
|
2014-12-19 07:59:47 +01:00
|
|
|
.thead-inverse {
|
|
|
|
th {
|
2014-07-14 08:45:34 +02:00
|
|
|
color: #fff;
|
2014-12-02 23:02:35 +01:00
|
|
|
background-color: $gray-dark;
|
2014-07-14 08:45:34 +02:00
|
|
|
}
|
|
|
|
}
|
2014-12-19 07:59:47 +01:00
|
|
|
.thead-default {
|
|
|
|
th {
|
2014-12-02 23:02:35 +01:00
|
|
|
color: $gray;
|
|
|
|
background-color: $gray-lighter;
|
2014-07-14 08:45:34 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-07-14 09:23:46 +02:00
|
|
|
.table-inverse {
|
2014-12-02 23:02:35 +01:00
|
|
|
color: $gray-lighter;
|
|
|
|
background-color: $gray-dark;
|
2014-07-14 09:23:46 +02:00
|
|
|
|
|
|
|
&.table-bordered {
|
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
|
2014-12-19 07:59:47 +01:00
|
|
|
th,
|
2015-01-20 00:52:40 +01:00
|
|
|
td,
|
|
|
|
thead th {
|
2014-12-19 07:59:47 +01:00
|
|
|
border-color: $gray;
|
2014-07-14 09:23:46 +02:00
|
|
|
}
|
|
|
|
}
|
2014-08-06 02:45:24 +02:00
|
|
|
|
|
|
|
|
|
|
|
.table-reflow {
|
|
|
|
thead {
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
tbody {
|
|
|
|
display: block;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
2014-12-19 07:59:47 +01:00
|
|
|
th,
|
|
|
|
td {
|
2015-11-15 08:24:48 +01:00
|
|
|
border-top: $table-border-width solid $table-border-color;
|
|
|
|
border-left: $table-border-width solid $table-border-color;
|
2014-12-19 07:59:47 +01:00
|
|
|
|
|
|
|
&:last-child {
|
2015-11-15 08:24:48 +01:00
|
|
|
border-right: $table-border-width solid $table-border-color;
|
2014-08-06 02:45:24 +02:00
|
|
|
}
|
2014-12-19 07:59:47 +01:00
|
|
|
}
|
2014-08-06 02:45:24 +02:00
|
|
|
|
2014-12-19 07:59:47 +01:00
|
|
|
thead,
|
|
|
|
tbody,
|
|
|
|
tfoot {
|
2014-08-06 02:45:24 +02:00
|
|
|
&:last-child {
|
2014-12-19 07:59:47 +01:00
|
|
|
tr:last-child {
|
|
|
|
th,
|
|
|
|
td {
|
2015-11-15 08:24:48 +01:00
|
|
|
border-bottom: $table-border-width solid $table-border-color;
|
2014-08-06 02:45:24 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
tr {
|
|
|
|
float: left;
|
|
|
|
|
|
|
|
th,
|
|
|
|
td {
|
|
|
|
display: block !important;
|
2015-11-15 08:24:48 +01:00
|
|
|
border: $table-border-width solid $table-border-color;
|
2014-08-06 02:45:24 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|