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