2 // Basic Bootstrap table
8 margin-bottom: $spacer;
12 padding: $table-cell-padding;
14 border-top: $table-border-width solid $table-border-color;
18 vertical-align: bottom;
19 border-bottom: (2 * $table-border-width) solid $table-border-color;
23 border-top: (2 * $table-border-width) solid $table-border-color;
27 background-color: $body-bg;
33 // Condensed table w/ half padding
39 padding: $table-sm-cell-padding;
46 // Add borders all around the table and between all the columns.
49 border: $table-border-width solid $table-border-color;
53 border: $table-border-width solid $table-border-color;
59 border-bottom-width: (2 * $table-border-width);
67 // Default zebra-stripe styles (alternating gray and transparent backgrounds)
70 tbody tr:nth-of-type(odd) {
71 background-color: $table-bg-accent;
78 // Placed here since it has to come after the potential zebra striping
83 background-color: $table-bg-hover;
91 // Exact selectors below required to override `.table-striped` and prevent
92 // inheritance to nested tables.
94 // Generate the contextual variants
95 @include table-row-variant(active, $table-bg-active);
96 @include table-row-variant(success, $state-success-bg);
97 @include table-row-variant(info, $state-info-bg);
98 @include table-row-variant(warning, $state-warning-bg);
99 @include table-row-variant(danger, $state-danger-bg);
104 // Same table markup, but inverted color scheme: dark background and light text.
108 color: $table-inverse-color;
109 background-color: $table-inverse-bg;
115 color: $table-head-color;
116 background-color: $table-head-bg;
121 color: $table-inverse-color;
122 background-color: $table-inverse-bg;
127 border-color: $body-bg;
139 // Add `.table-responsive` to `.table`s and we'll make them mobile friendly by
140 // enabling horizontal scrolling. Only applies <768px. Everything above that
141 // will display normally.
147 -ms-overflow-style: -ms-autohiding-scrollbar; // See https://github.com/twbs/bootstrap/pull/10057
149 // Prevent double border on horizontal scroll due to use of `display: block;`