// scss-docs-start table-variant @mixin table-variant($state, $background) { .table-#{$state} { $color: color-contrast(opaque($body-bg, $background)); $hover-bg: mix($color, $background, percentage($table-hover-bg-factor)); $striped-bg: mix($color, $background, percentage($table-striped-bg-factor)); $active-bg: mix($color, $background, percentage($table-active-bg-factor)); --#{$variable-prefix}table-bg: #{$background}; --#{$variable-prefix}table-striped-bg: #{$striped-bg}; --#{$variable-prefix}table-striped-color: #{color-contrast($striped-bg)}; --#{$variable-prefix}table-active-bg: #{$active-bg}; --#{$variable-prefix}table-active-color: #{color-contrast($active-bg)}; --#{$variable-prefix}table-hover-bg: #{$hover-bg}; --#{$variable-prefix}table-hover-color: #{color-contrast($hover-bg)}; color: $color; border-color: mix($color, $background, percentage($table-border-factor)); } } // scss-docs-end table-variant
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
_alert.scss | File | 268 B | 0644 |
|
_border-radius.scss | File | 1.98 KB | 0644 |
|
_box-shadow.scss | File | 398 B | 0644 |
|
_breakpoints.scss | File | 4.38 KB | 0644 |
|
_buttons.scss | File | 4.13 KB | 0644 |
|
_caret.scss | File | 1.44 KB | 0644 |
|
_clearfix.scss | File | 147 B | 0644 |
|
_color-scheme.scss | File | 167 B | 0644 |
|
_container.scss | File | 265 B | 0644 |
|
_deprecate.scss | File | 613 B | 0644 |
|
_forms.scss | File | 3.8 KB | 0644 |
|
_gradients.scss | File | 1.92 KB | 0644 |
|
_grid.scss | File | 3.88 KB | 0644 |
|
_image.scss | File | 395 B | 0644 |
|
_list-group.scss | File | 509 B | 0644 |
|
_lists.scss | File | 168 B | 0644 |
|
_pagination.scss | File | 741 B | 0644 |
|
_reset-text.scss | File | 495 B | 0644 |
|
_resize.scss | File | 202 B | 0644 |
|
_table-variants.scss | File | 980 B | 0644 |
|
_text-truncate.scss | File | 168 B | 0644 |
|
_transition.scss | File | 661 B | 0644 |
|
_utilities.scss | File | 2.23 KB | 0644 |
|
_visually-hidden.scss | File | 1011 B | 0644 |
|