Skip to content

Commit da38b8c

Browse files
committed
refactor (Abstract align): rename as context-align accordingly to context-selector
1 parent 8b46646 commit da38b8c

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/scss/abstract/_f-align.scss renamed to src/scss/abstract/_f-context-align.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* exemples :
55
*
6-
* #{ align("wide") } .block#{ align() } {
6+
* #{ context-align("wide") } .block#{ context-align() } {
77
* ... your css
88
* }
99
*
@@ -19,15 +19,15 @@
1919
*
2020
*/
2121

22-
$function-align-last-value: "";
22+
$function-context-align-last-value: "";
2323

24-
@function align($value: null, $suffix: " > ") {
24+
@function context-align($value: null, $suffix: " > ") {
2525
@if ($value == null) {
2626
@if ($entry-file-name == "style") {
27-
@return ".align" + $function-align-last-value;
27+
@return ".align" + $function-context-align-last-value;
2828
}
2929
} @else {
30-
$function-align-last-value: $value;
30+
$function-context-align-last-value: $value;
3131

3232
@if ($entry-file-name == "editor-style") {
3333
@return "[data-align=\"" + $value + "\"]" + $suffix;

src/scss/abstract/_index.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
@import "./f-assign-inputs";
1010
@import "./f-column";
11+
@import "./f-context-align";
1112
@import "./f-context-selector";
1213
@import "./f-easings";
1314
@import "./f-em";

0 commit comments

Comments
 (0)