diff options
-rw-r--r-- | src/bem/_block.scss | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/bem/_block.scss b/src/bem/_block.scss index 49af04b..cfa9f33 100644 --- a/src/bem/_block.scss +++ b/src/bem/_block.scss | |||
@@ -56,7 +56,13 @@ | |||
56 | 56 | ||
57 | @include contexts.push(vars.$context-id, $context...); | 57 | @include contexts.push(vars.$context-id, $context...); |
58 | @at-root #{$selector} { | 58 | @at-root #{$selector} { |
59 | @content; | 59 | @if $type != null { |
60 | @layer #{$type} { | ||
61 | @content; | ||
62 | } | ||
63 | } @else { | ||
64 | @content; | ||
65 | } | ||
60 | } | 66 | } |
61 | @include contexts.pop(vars.$context-id); | 67 | @include contexts.pop(vars.$context-id); |
62 | } | 68 | } |