You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
980 B

  1. // scss-docs-start table-variant
  2. @mixin table-variant($state, $background) {
  3. .table-#{$state} {
  4. $color: color-contrast(opaque($body-bg, $background));
  5. $hover-bg: mix($color, $background, percentage($table-hover-bg-factor));
  6. $striped-bg: mix($color, $background, percentage($table-striped-bg-factor));
  7. $active-bg: mix($color, $background, percentage($table-active-bg-factor));
  8. --#{$variable-prefix}table-bg: #{$background};
  9. --#{$variable-prefix}table-striped-bg: #{$striped-bg};
  10. --#{$variable-prefix}table-striped-color: #{color-contrast($striped-bg)};
  11. --#{$variable-prefix}table-active-bg: #{$active-bg};
  12. --#{$variable-prefix}table-active-color: #{color-contrast($active-bg)};
  13. --#{$variable-prefix}table-hover-bg: #{$hover-bg};
  14. --#{$variable-prefix}table-hover-color: #{color-contrast($hover-bg)};
  15. color: $color;
  16. border-color: mix($color, $background, percentage($table-border-factor));
  17. }
  18. }
  19. // scss-docs-end table-variant