2019-05-24 20:09:35 +08:00
|
|
|
@import "./config.scss";
|
|
|
|
|
2019-09-03 19:18:16 +08:00
|
|
|
$B: null;
|
|
|
|
$BE: null;
|
|
|
|
$BEM: null;
|
2019-05-24 20:09:35 +08:00
|
|
|
|
2019-09-03 19:18:16 +08:00
|
|
|
@mixin b($block) {
|
|
|
|
$temp-block: $B;
|
|
|
|
$temp-block-element: $BE;
|
|
|
|
$B: $namespace + "-" + $block !global;
|
|
|
|
$BE: $B!global;
|
2019-05-24 20:09:35 +08:00
|
|
|
.#{$B} {
|
|
|
|
@content;
|
|
|
|
}
|
2019-09-03 19:18:16 +08:00
|
|
|
$B: $temp-block !global;
|
|
|
|
$BE: $temp-block-element !global;
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin e($element) {
|
|
|
|
$temp-block-element: $BE;
|
|
|
|
$BE: $B + "__" + $element !global;
|
|
|
|
.#{$BE} {
|
|
|
|
@content
|
|
|
|
}
|
|
|
|
$BE: $temp-block-element !global;
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin m($modifier) {
|
|
|
|
$BEM: $BE + '--' + $modifier;
|
|
|
|
&.#{$BEM} {
|
|
|
|
@content
|
|
|
|
}
|
2019-07-17 14:11:05 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
@mixin detachedContentWrapper {
|
|
|
|
position: fixed;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
overflow: visible;
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin detachedContent {
|
|
|
|
position: fixed;
|
2019-05-24 20:09:35 +08:00
|
|
|
}
|