Skip to content

Commit 44dbd46

Browse files
authored
fix: added specificity to indents, because in build indents have less weight (#719)
1 parent b4d15bf commit 44dbd46

File tree

1 file changed

+39
-37
lines changed

1 file changed

+39
-37
lines changed

styles/mixins.scss

Lines changed: 39 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -561,55 +561,57 @@ unpredictable css rules order in build */
561561
// indent system for blocks
562562
@mixin indents($class) {
563563
@include add-specificity($class) {
564-
&_indentTop {
565-
&_0 {
566-
margin-top: 0;
567-
}
564+
@include add-specificity(&) {
565+
&_indentTop {
566+
&_0 {
567+
margin-top: 0;
568+
}
568569

569-
&_xs {
570-
margin-top: $indentXS;
571-
}
570+
&_xs {
571+
margin-top: $indentXS;
572+
}
572573

573-
&_s {
574-
margin-top: $indentSM;
575-
}
574+
&_s {
575+
margin-top: $indentSM;
576+
}
576577

577-
&_m {
578-
margin-top: $indentM;
579-
}
578+
&_m {
579+
margin-top: $indentM;
580+
}
580581

581-
&_l {
582-
margin-top: $indentL;
583-
}
582+
&_l {
583+
margin-top: $indentL;
584+
}
584585

585-
&_xl {
586-
margin-top: $indentXL;
586+
&_xl {
587+
margin-top: $indentXL;
588+
}
587589
}
588-
}
589590

590-
&_indentBottom {
591-
&_0 {
592-
padding-bottom: 0;
593-
}
591+
&_indentBottom {
592+
&_0 {
593+
padding-bottom: 0;
594+
}
594595

595-
&_xs {
596-
padding-bottom: $indentXS;
597-
}
596+
&_xs {
597+
padding-bottom: $indentXS;
598+
}
598599

599-
&_s {
600-
padding-bottom: $indentSM;
601-
}
600+
&_s {
601+
padding-bottom: $indentSM;
602+
}
602603

603-
&_m {
604-
padding-bottom: $indentM;
605-
}
604+
&_m {
605+
padding-bottom: $indentM;
606+
}
606607

607-
&_l {
608-
padding-bottom: $indentL;
609-
}
608+
&_l {
609+
padding-bottom: $indentL;
610+
}
610611

611-
&_xl {
612-
padding-bottom: $indentXL;
612+
&_xl {
613+
padding-bottom: $indentXL;
614+
}
613615
}
614616
}
615617
}

0 commit comments

Comments
 (0)