Explorar o código

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

REJack %!s(int64=3) %!d(string=hai) anos
pai
achega
52d947384e
Modificáronse 2 ficheiros con 16 adicións e 1 borrados
  1. 15 0
      build/scss/_colors.scss
  2. 1 1
      build/scss/mixins/_backgrounds.scss

+ 15 - 0
build/scss/_colors.scss

@@ -12,6 +12,21 @@
   @include background-variant($name, $color);
   @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 {
 .bg-gray {
   background-color: $gray-500;
   background-color: $gray-500;
   color: color-yiq($gray-500);
   color: color-yiq($gray-500);

+ 1 - 1
build/scss/mixins/_backgrounds.scss

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