diff options
| author | Volpeon <git@volpeon.ink> | 2024-10-23 22:12:28 +0200 |
|---|---|---|
| committer | Volpeon <git@volpeon.ink> | 2024-10-23 22:12:28 +0200 |
| commit | a9efa537b7ecd99caebb92cc3912a03d2bb7bdaf (patch) | |
| tree | df29dabdeb93f20bdd996fc70b6362c836f49d6c | |
| parent | Fix (diff) | |
| download | iro-sass-a9efa537b7ecd99caebb92cc3912a03d2bb7bdaf.tar.gz iro-sass-a9efa537b7ecd99caebb92cc3912a03d2bb7bdaf.tar.bz2 iro-sass-a9efa537b7ecd99caebb92cc3912a03d2bb7bdaf.zip | |
BEM: Use CSS layers
| -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 | } |
