3
// --------------------------------------------------
8
background-color: $table-bg;
19
margin-bottom: $line-height-computed;
27
padding: $table-cell-padding;
28
line-height: $line-height-base;
30
border-top: 1px solid $table-border-color;
34
// Bottom align for column headings
36
vertical-align: bottom;
37
border-bottom: 2px solid $table-border-color;
39
// Remove top border from thead by default
50
// Account for multiple tbody instances
52
border-top: 2px solid $table-border-color;
57
background-color: $body-bg;
62
// Condensed table w/ half padding
71
padding: $table-condensed-cell-padding;
80
// Add borders all around the table and between all the columns.
83
border: 1px solid $table-border-color;
90
border: 1px solid $table-border-color;
97
border-bottom-width: 2px;
105
// Default zebra-stripe styles (alternating gray and transparent backgrounds)
108
> tbody > tr:nth-child(odd) {
111
background-color: $table-bg-accent;
119
// Placed here since it has to come after the potential zebra striping
125
background-color: $table-bg-hover;
133
// Reset default table behavior
135
table col[class*="col-"] {
136
position: static; // Prevent border hiding in Firefox and IE9/10 (see https://github.com/twbs/bootstrap/issues/11623)
138
display: table-column;
144
position: static; // Prevent border hiding in Firefox and IE9/10 (see https://github.com/twbs/bootstrap/issues/11623)
154
// Exact selectors below required to override `.table-striped` and prevent
155
// inheritance to nested tables.
157
// Generate the contextual variants
158
@include table-row-variant('active', $table-bg-active);
159
@include table-row-variant('success', $state-success-bg);
160
@include table-row-variant('info', $state-info-bg);
161
@include table-row-variant('warning', $state-warning-bg);
162
@include table-row-variant('danger', $state-danger-bg);
167
// Wrap your tables in `.table-responsive` and we'll make them mobile friendly
168
// by enabling horizontal scrolling. Only applies <768px. Everything above that
169
// will display normally.
172
@media screen and (max-width: $screen-xs-max) {
174
margin-bottom: ($line-height-computed * 0.75);
177
-ms-overflow-style: -ms-autohiding-scrollbar;
178
border: 1px solid $table-border-color;
179
-webkit-overflow-scrolling: touch;
181
// Tighten up spacing
185
// Ensure the content doesn't wrap
198
// Special overrides for the bordered tables
202
// Nuke the appropriate borders so that the parent can handle them
218
// Only nuke the last row's bottom-border in `tbody` and `tfoot` since
219
// chances are there will be only one `tr` in a `thead` and that would
220
// remove the border altogether.