mirror of
https://github.com/certd/certd.git
synced 2026-05-18 22:57:31 +08:00
35 lines
458 B
SCSS
35 lines
458 B
SCSS
|
|
@forward './constants';
|
||
|
|
|
||
|
|
@mixin b($block) {
|
||
|
|
$B: $namespace + '-' + $block !global;
|
||
|
|
|
||
|
|
.#{$B} {
|
||
|
|
@content;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
@mixin e($name) {
|
||
|
|
@at-root {
|
||
|
|
&#{$element-separator}#{$name} {
|
||
|
|
@content;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
@mixin m($name) {
|
||
|
|
@at-root {
|
||
|
|
&#{$modifier-separator}#{$name} {
|
||
|
|
@content;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// block__element.is-active {}
|
||
|
|
@mixin is($state, $prefix: $state-prefix) {
|
||
|
|
@at-root {
|
||
|
|
&.#{$prefix}-#{$state} {
|
||
|
|
@content;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|