3 // --------------------------------------------------
7 background-color: @table-bg;
10 padding-top: @table-cell-padding;
11 padding-bottom: @table-cell-padding;
25 margin-bottom: @line-height-computed;
33 padding: @table-cell-padding;
34 line-height: @line-height-base;
36 border-top: 1px solid @table-border-color;
40 // Bottom align for column headings
42 vertical-align: bottom;
43 border-bottom: 2px solid @table-border-color;
45 // Remove top border from thead by default
56 // Account for multiple tbody instances
58 border-top: 2px solid @table-border-color;
63 background-color: @body-bg;
68 // Condensed table w/ half padding
77 padding: @table-condensed-cell-padding;
86 // Add borders all around the table and between all the columns.
89 border: 1px solid @table-border-color;
96 border: 1px solid @table-border-color;
103 border-bottom-width: 2px;
111 // Default zebra-stripe styles (alternating gray and transparent backgrounds)
114 > tbody > tr:nth-of-type(odd) {
115 background-color: @table-bg-accent;
122 // Placed here since it has to come after the potential zebra striping
126 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-11 (see https://github.com/twbs/bootstrap/issues/11623)
138 display: table-column;
144 position: static; // Prevent border hiding in Firefox and IE9-11 (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 .table-row-variant(active; @table-bg-active);
159 .table-row-variant(success; @state-success-bg);
160 .table-row-variant(info; @state-info-bg);
161 .table-row-variant(warning; @state-warning-bg);
162 .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.
173 min-height: 0.01%; // Workaround for IE9 bug (see https://github.com/twbs/bootstrap/issues/14837)
175 @media screen and (max-width: @screen-xs-max) {
177 margin-bottom: (@line-height-computed * 0.75);
179 -ms-overflow-style: -ms-autohiding-scrollbar;
180 border: 1px solid @table-border-color;
182 // Tighten up spacing
186 // Ensure the content doesn't wrap
199 // Special overrides for the bordered tables
203 // Nuke the appropriate borders so that the parent can handle them
219 // Only nuke the last row's bottom-border in `tbody` and `tfoot` since
220 // chances are there will be only one `tr` in a `thead` and that would
221 // remove the border altogether.