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
49
// Account for multiple tbody instances
51
border-top: 2px solid @table-border-color;
56
background-color: @body-bg;
61
// Condensed table w/ half padding
70
padding: @table-condensed-cell-padding;
79
// Add borders all around the table and between all the columns.
82
border: 1px solid @table-border-color;
89
border: 1px solid @table-border-color;
97
border-bottom-width: 2px;
106
// Default zebra-stripe styles (alternating gray and transparent backgrounds)
110
> tr:nth-child(odd) {
113
background-color: @table-bg-accent;
122
// Placed here since it has to come after the potential zebra striping
129
background-color: @table-bg-hover;
138
// Reset default table behavior
140
table col[class*="col-"] {
142
display: table-column;
157
// Exact selectors below required to override `.table-striped` and prevent
158
// inheritance to nested tables.
162
.table > tfoot > tr {
167
background-color: @table-bg-active;
171
// Generate the contextual variants
172
.table-row-variant(success; @state-success-bg; @state-success-border);
173
.table-row-variant(danger; @state-danger-bg; @state-danger-border);
174
.table-row-variant(warning; @state-warning-bg; @state-warning-border);
179
// Wrap your tables in `.table-scrollable` and we'll make them mobile friendly
180
// by enabling horizontal scrolling. Only applies <768px. Everything above that
181
// will display normally.
183
@media (max-width: @screen-sm) {
189
border: 1px solid @table-border-color;
191
// Tighten up spacing and give a background color
194
background-color: #fff;
196
// Ensure the content doesn't wrap
209
// Special overrides for the bordered tables
213
// Nuke the appropriate borders so that the parent can handle them