From a9efa537b7ecd99caebb92cc3912a03d2bb7bdaf Mon Sep 17 00:00:00 2001 From: Volpeon Date: Wed, 23 Oct 2024 22:12:28 +0200 Subject: BEM: Use CSS layers --- src/bem/_block.scss | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/bem/_block.scss') 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 @@ @include contexts.push(vars.$context-id, $context...); @at-root #{$selector} { - @content; + @if $type != null { + @layer #{$type} { + @content; + } + } @else { + @content; + } } @include contexts.pop(vars.$context-id); } -- cgit v1.2.3-70-g09d2