2 // Basic Bootstrap table
8 margin-bottom: $spacer;
9 background-color: $table-bg; // Reset for nesting within parents with `background-color`.
13 padding: $table-cell-padding;
15 border-top: $table-border-width solid $table-border-color;
19 vertical-align: bottom;
20 border-bottom: (2 * $table-border-width) solid $table-border-color;
24 border-top: (2 * $table-border-width) solid $table-border-color;
28 background-color: $body-bg;
34 // Condensed table w/ half padding
40 padding: $table-cell-padding-sm;
47 // Add borders all around the table and between all the columns.
50 border: $table-border-width solid $table-border-color;
54 border: $table-border-width solid $table-border-color;
60 border-bottom-width: (2 * $table-border-width);
68 // Default zebra-stripe styles (alternating gray and transparent backgrounds)
71 tbody tr:nth-of-type(odd) {
72 background-color: $table-accent-bg;
79 // Placed here since it has to come after the potential zebra striping
84 background-color: $table-hover-bg;
92 // Exact selectors below required to override `.table-striped` and prevent
93 // inheritance to nested tables.
95 @each $color, $value in $theme-colors {
96 @include table-row-variant($color, theme-color-level($color, -9));
99 @include table-row-variant(active, $table-active-bg);
104 // Same table markup, but inverted color scheme: dark background and light text.
106 // stylelint-disable-next-line no-duplicate-selectors
110 color: $table-dark-color;
111 background-color: $table-dark-bg;
112 border-color: $table-dark-border-color;
118 color: $table-head-color;
119 background-color: $table-head-bg;
120 border-color: $table-border-color;
126 color: $table-dark-color;
127 background-color: $table-dark-bg;
132 border-color: $table-dark-border-color;
140 tbody tr:nth-of-type(odd) {
141 background-color: $table-dark-accent-bg;
148 background-color: $table-dark-hover-bg;
157 // Generate series of `.table-responsive-*` classes for configuring the screen
158 // size of where your table will overflow.
161 @each $breakpoint in map-keys($grid-breakpoints) {
162 $next: breakpoint-next($breakpoint, $grid-breakpoints);
163 $infix: breakpoint-infix($next, $grid-breakpoints);
166 @include media-breakpoint-down($breakpoint) {
170 -webkit-overflow-scrolling: touch;
171 -ms-overflow-style: -ms-autohiding-scrollbar; // See https://github.com/twbs/bootstrap/pull/10057
173 // Prevent double border on horizontal scroll due to use of `display: block;`