Files
landing_page/qdrant-landing/themes/qdrant-2024/assets/css/mixins/_table-variant-styles.scss
T
trean 69f1a4111c Optimize css build (#2473)
* remove unused styles

* wip: optimizing css, wrong vertical spacing

* fixes

* more changes

* fixes
2026-07-07 19:59:27 +02:00

24 lines
1.0 KiB
SCSS

@use '../bootstrap-tools' as *;
@mixin variant($name) {
$background: map-get($table-variants, $name);
$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));
$border-color: mix($color, $background, percentage($table-border-factor));
--#{$prefix}table-color: #{$color};
--#{$prefix}table-bg: #{$background};
--#{$prefix}table-border-color: #{$border-color};
--#{$prefix}table-striped-bg: #{$striped-bg};
--#{$prefix}table-striped-color: #{color-contrast($striped-bg)};
--#{$prefix}table-active-bg: #{$active-bg};
--#{$prefix}table-active-color: #{color-contrast($active-bg)};
--#{$prefix}table-hover-bg: #{$hover-bg};
--#{$prefix}table-hover-color: #{color-contrast($hover-bg)};
color: var(--#{$prefix}table-color);
border-color: var(--#{$prefix}table-border-color);
}