From bab633f8a6faf4be7cd4ebd16b1b5c270d95320a Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sat, 5 Feb 2022 08:57:44 +0100 Subject: Lint --- src/bem/_element.scss | 30 ++++++++++++++++++++---------- src/bem/_modifier.scss | 18 ++++++++++++------ src/bem/_state.scss | 6 ++++-- 3 files changed, 36 insertions(+), 18 deletions(-) (limited to 'src/bem') diff --git a/src/bem/_element.scss b/src/bem/_element.scss index 84e85fb..25377d6 100644 --- a/src/bem/_element.scss +++ b/src/bem/_element.scss @@ -147,10 +147,12 @@ @each $name in join($name, $names) { $sel: selector-append(&, vars.$element-separator + $name); $selector: join($selector, $sel, comma); - $parts-data: append($parts-data, ( + $parts-data: append( + $parts-data, ( 'name': $name, 'selector': $sel - )); + ) + ); } } @@ -170,10 +172,12 @@ @each $name in join($name, $names) { $sel: selector-append(&, vars.$element-separator + $name); $selector: join($selector, $sel, comma); - $parts-data: append($parts-data, ( + $parts-data: append( + $parts-data, ( 'name': $name, 'selector': $sel - )); + ) + ); } } @else { // @@ -191,10 +195,12 @@ @each $name in join($name, $names) { $sel: selector-nest(&, selector-append($block-base-selector, vars.$element-separator + $name)); $selector: join($selector, $sel, comma); - $parts-data: append($parts-data, ( + $parts-data: append( + $parts-data, ( 'name': $name, 'selector': $sel - )); + ) + ); } } } @@ -336,10 +342,12 @@ @each $name in join($name, $names) { $sel: selector-nest(&, $sign, selector-append($block-base-selector, vars.$element-separator + $name)); $selector: join($selector, $sel, comma); - $parts-data: append($parts-data, ( + $parts-data: append( + $parts-data, ( 'name': $name, 'selector': $sel - )); + ) + ); } $context: 'element', ( @@ -562,10 +570,12 @@ } $selector: join($selector, $sel, comma); - $parts-data: append($parts-data, ( + $parts-data: append( + $parts-data, ( 'name': $part-name, 'selector': $sel - )); + ) + ); } $context: 'element', ( diff --git a/src/bem/_modifier.scss b/src/bem/_modifier.scss index be65e47..07267fe 100644 --- a/src/bem/_modifier.scss +++ b/src/bem/_modifier.scss @@ -177,10 +177,12 @@ $sel: selector-append(&, vars.$modifier-separator + $name); $selector: join($selector, $sel, comma); - $parts-data: append($parts-data, ( + $parts-data: append( + $parts-data, ( 'name': $name, 'selector': $sel - )); + ) + ); } @else { // // Parent context is modifier, suffix or state and $extend is false. @@ -219,10 +221,12 @@ } $selector: join($selector, $nsel, comma); - $parts-data: append($parts-data, ( + $parts-data: append( + $parts-data, ( 'name': $name, 'selector': $nsel - )); + ) + ); } @else { // // Latest context is block. Just append the modifier part. @@ -234,10 +238,12 @@ $sel: selector-append(&, $block-base-selector, vars.$modifier-separator + $name); $selector: join($selector, $sel, comma); - $parts-data: append($parts-data, ( + $parts-data: append( + $parts-data, ( 'name': $name, 'selector': $sel - )); + ) + ); } } } diff --git a/src/bem/_state.scss b/src/bem/_state.scss index 2d430bf..41bacee 100644 --- a/src/bem/_state.scss +++ b/src/bem/_state.scss @@ -91,10 +91,12 @@ $sel: selector-append(&, $sel); } $selector: join($selector, $sel, comma); - $parts-data: append($parts-data, ( + $parts-data: append( + $parts-data, ( 'name': $state, 'selector': $sel - )); + ) + ); } $context: 'state', ( -- cgit v1.2.3-70-g09d2