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
1 changed files with 3 additions and 4 deletions

View File

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