Explorar o código

Add verification use of & outside of style rules (#4276)

André Teles %!s(int64=3) %!d(string=hai) anos
pai
achega
7748b38a6e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      build/scss/mixins/_backgrounds.scss

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

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