-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add custom indent for all blocks, and add className prop for Ca…
…rdLayoutBlock (#492) * feat: add custom indent for all blocks, and add className prop for CardLayoutBlock * feat: refactor indents: divided the indents into top and bottom and also removed the extra sizes * feat: marked --pc-first-block-indent as deprecated * feat: add comment for --pc-first-mobile variable * feat: refactor indent props
- Loading branch information
Showing
11 changed files
with
161 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 60 additions & 0 deletions
60
src/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
@import '../../../../../styles/variables'; | ||
@import '../../../../../styles/mixins'; | ||
|
||
$block: '.#{$ns}constructor-block'; | ||
|
||
#{$block} { | ||
@include add-specificity(&) { | ||
&_indentTop { | ||
&_0 { | ||
margin-top: 0; | ||
} | ||
|
||
&_xs { | ||
margin-top: $indentXS; | ||
} | ||
|
||
&_s { | ||
margin-top: $indentSM; | ||
} | ||
|
||
&_m { | ||
margin-top: $indentM; | ||
} | ||
|
||
&_l { | ||
margin-top: $indentL; | ||
} | ||
|
||
&_xl { | ||
margin-top: $indentXL; | ||
} | ||
} | ||
|
||
&_indentBottom { | ||
&_0 { | ||
padding-bottom: 0; | ||
} | ||
|
||
&_xs { | ||
padding-bottom: $indentXS; | ||
} | ||
|
||
&_s { | ||
padding-bottom: $indentSM; | ||
} | ||
|
||
&_m { | ||
padding-bottom: $indentM; | ||
} | ||
|
||
&_l { | ||
padding-bottom: $indentL; | ||
} | ||
|
||
&_xl { | ||
padding-bottom: $indentXL; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters