aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2024-10-23 22:12:28 +0200
committerVolpeon <git@volpeon.ink>2024-10-23 22:12:28 +0200
commita9efa537b7ecd99caebb92cc3912a03d2bb7bdaf (patch)
treedf29dabdeb93f20bdd996fc70b6362c836f49d6c /src
parentFix (diff)
downloadiro-sass-a9efa537b7ecd99caebb92cc3912a03d2bb7bdaf.tar.gz
iro-sass-a9efa537b7ecd99caebb92cc3912a03d2bb7bdaf.tar.bz2
iro-sass-a9efa537b7ecd99caebb92cc3912a03d2bb7bdaf.zip
BEM: Use CSS layers
Diffstat (limited to 'src')
-rw-r--r--src/bem/_block.scss8
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}