-
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.
docs: card layout story indents higlight
- Loading branch information
1 parent
5e10058
commit 6bb16fc
Showing
2 changed files
with
74 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
@import '../../../../styles/variables.scss'; | ||
@import '../../../../styles/mixins'; | ||
|
||
@mixin pseudo($content) { | ||
background: repeating-linear-gradient( | ||
135deg, | ||
#fadae4, | ||
#fadae4 10px, | ||
#f0b4c6 10px, | ||
#f0b4c6 20px | ||
); | ||
content: $content; | ||
display: flex; | ||
align-items: center; | ||
position: absolute; | ||
left: 0; | ||
right: 0; | ||
} | ||
|
||
@mixin pseudoTop($size, $textSize) { | ||
&::before { | ||
@include pseudo('top #{$textSize} (#{$size})'); | ||
top: -$size; | ||
height: $size; | ||
} | ||
} | ||
|
||
@mixin pseudoBottom($size, $textSize) { | ||
&::after { | ||
@include pseudo('bottom #{$textSize} (#{$size})'); | ||
bottom: 0; | ||
height: $size; | ||
} | ||
} | ||
|
||
.pc-block-base { | ||
&_indentTop { | ||
&_xs { | ||
@include pseudoTop($indentXS, 'XS'); | ||
} | ||
&_s { | ||
@include pseudoTop($indentSM, 'S'); | ||
} | ||
&_m { | ||
@include pseudoTop($indentM, 'M'); | ||
} | ||
&_l { | ||
@include pseudoTop($indentL, 'L'); | ||
} | ||
&_xl { | ||
@include pseudoTop($indentXL, 'XL'); | ||
} | ||
} | ||
|
||
&_indentBottom { | ||
&_xs { | ||
@include pseudoBottom($indentXS, 'XS'); | ||
} | ||
&_s { | ||
@include pseudoBottom($indentSM, 'S'); | ||
} | ||
&_m { | ||
@include pseudoBottom($indentM, 'M'); | ||
} | ||
&_l { | ||
@include pseudoBottom($indentL, 'L'); | ||
} | ||
&_xl { | ||
@include pseudoBottom($indentXL, 'XL'); | ||
} | ||
} | ||
} |
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