3 // --------------------------------------------------
8 background-color: @table-bg;
20 margin-bottom: @line-height-computed;
28 padding: @table-cell-padding;
29 line-height: @line-height-base;
31 border-top: 1px solid @table-border-color;
35 // Bottom align for column headings
37 vertical-align: bottom;
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;
62 // Condensed table w/ half padding
63 // -------------------------------
72 padding: @table-condensed-cell-padding;
84 border: 1px solid @table-border-color;
91 border: 1px solid @table-border-color;
102 // Default zebra-stripe styles (alternating gray and transparent backgrounds)
105 > tr:nth-child(odd) {
108 background-color: @table-bg-accent;
119 // Placed here since it has to come after the potential zebra striping
125 background-color: @table-bg-hover;
136 // Reset default table behavior
137 table col[class^="col-"] {
139 display: table-column;
155 // Exact selectors below required to override `.table-striped` and prevent
156 // inheritance to nested tables.
160 .table > tfoot > tr {
165 background-color: @table-bg-hover;
171 background-color: @state-success-bg;
172 border-color: @state-success-border;
178 background-color: @state-danger-bg;
179 border-color: @state-danger-border;
185 background-color: @state-warning-bg;
186 border-color: @state-warning-border;
190 // Hover states for `.table-hover`
191 // Note: this is not available for cells or rows within `thead` or `tfoot`.
192 .table-hover > tbody > tr {
195 &.success:hover > td {
196 background-color: darken(@state-success-bg, 5%);
197 border-color: darken(@state-success-border, 5%);
201 &.danger:hover > td {
202 background-color: darken(@state-danger-bg, 5%);
203 border-color: darken(@state-danger-border, 5%);
207 &.warning:hover > td {
208 background-color: darken(@state-warning-bg, 5%);
209 border-color: darken(@state-warning-border, 5%);