Bugfix: class prefix was also applied to static class names
This commit is contained in:
parent
85923bd338
commit
4e46ebe591
@ -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}
|
||||||
|
Loading…
Reference in New Issue
Block a user