Bugfix: class prefix was also applied to static class names

This commit is contained in:
reverend 2021-03-07 22:37:52 +01:00
parent 85923bd338
commit 4e46ebe591

View File

@ -84,7 +84,6 @@ RV-Level(name, name_delimiter, allowed_parent_levels, selector_callback)
RV-Block(name) RV-Block(name)
.{name} .{name}
+prefix-classes(name)
{block} {block}
_bem_context._alias_map = {} _bem_context._alias_map = {}
@ -93,10 +92,10 @@ RV-Block(name)
RV-Element(name=null) RV-Element(name=null)
+RV-Level(name, '__', ('RV-Block' 'RV-Block--modifier'), @(name){ +RV-Level(name, '__', ('RV-Block' 'RV-Block--modifier'), @(name){
if is_nested_in('RV-Block--modifier') { if is_nested_in('RV-Block--modifier') {
return '& .__' + name return '& ^[-1]__' + name
} }
else { else {
return '&__' + name return '& &__' + name
} }
}) })
{block} {block}