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