3 // --------------------------------------------------
7 background-color: @table-bg;
10 padding-top: @table-cell-padding;
11 padding-bottom: @table-cell-padding;
25 margin-bottom: @line-height-computed;
26 border-bottom: 1px solid @table-border-color;
34 padding: @table-cell-padding;
35 line-height: @line-height-base;
37 border-top: 1px solid @table-border-color;
41 // Bottom align for column headings
43 vertical-align: bottom;
44 border-bottom: 2px solid @table-border-color;
46 // Remove top border from thead by default
57 // Account for multiple tbody instances
59 border-top: 2px solid @table-border-color;
64 background-color: @body-bg;
69 // Condensed table w/ half padding
78 padding: @table-condensed-cell-padding;
87 // Add borders all around the table and between all the columns.
90 border: 1px solid @table-border-color;
97 border: 1px solid @table-border-color;
104 border-bottom-width: 2px;
112 // Default zebra-stripe styles (alternating gray and transparent backgrounds)
115 > tbody > tr:nth-of-type(odd) {
116 background-color: @table-bg-accent;
123 // Placed here since it has to come after the potential zebra striping
127 background-color: @table-bg-hover;
134 // Reset default table behavior
136 table col[class*="col-"] {
137 position: static; // Prevent border hiding in Firefox and IE9-11 (see https://github.com/twbs/bootstrap/issues/11623)
139 display: table-column;
145 position: static; // Prevent border hiding in Firefox and IE9-11 (see https://github.com/twbs/bootstrap/issues/11623)
155 // Exact selectors below required to override `.table-striped` and prevent
156 // inheritance to nested tables.
158 // Generate the contextual variants
159 .table-row-variant(active; @table-bg-active);
160 .table-row-variant(success; @state-success-bg);
161 .table-row-variant(info; @state-info-bg);
162 .table-row-variant(warning; @state-warning-bg);
163 .table-row-variant(danger; @state-danger-bg);
168 // Wrap your tables in `.table-responsive` and we'll make them mobile friendly
169 // by enabling horizontal scrolling. Only applies <768px. Everything above that
170 // will display normally.
174 min-height: 0.01%; // Workaround for IE9 bug (see https://github.com/twbs/bootstrap/issues/14837)
176 @media screen and (max-width: @screen-xs-max) {
178 margin-bottom: (@line-height-computed * 0.75);
180 -ms-overflow-style: -ms-autohiding-scrollbar;
181 border: 1px solid @table-border-color;
183 // Tighten up spacing
187 // Ensure the content doesn't wrap
200 // Special overrides for the bordered tables
204 // Nuke the appropriate borders so that the parent can handle them
220 // Only nuke the last row's bottom-border in `tbody` and `tfoot` since
221 // chances are there will be only one `tr` in a `thead` and that would
222 // remove the border altogether.