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