fix(3965): bg-* get overwritten by print mode

This commit is contained in:
REJack 2021-11-24 18:39:47 +01:00
parent a0e61b5aaf
commit 52d947384e
2 changed files with 16 additions and 1 deletions

View file

@ -12,6 +12,21 @@
@include background-variant($name, $color);
}
@media print {
.table td,
.table th {
// Background colors (theme colors)
@each $name, $color in $theme-colors {
@include background-variant($name, $color);
}
// Background colors (colors)
@each $name, $color in $colors {
@include background-variant($name, $color);
}
}
}
.bg-gray {
background-color: $gray-500;
color: color-yiq($gray-500);

View file

@ -4,7 +4,7 @@
// Background Variant
@mixin background-variant($name, $color) {
.bg-#{$name} {
&.bg-#{$name} {
background-color: #{$color} !important;
&,