Last active
April 30, 2020 16:44
-
-
Save gruppjo/46a2168392c2fbb5be1d7ac229a65e1e to your computer and use it in GitHub Desktop.
global storybook scss file
This file contains hidden or 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
@import "shared.scss"; | |
// each component in storybook is wrapped inside of .root | |
#root { | |
// give 100% so we can have an unbroken chain of height: 100%; | |
// https://stackoverflow.com/questions/7049875/why-doesnt-height-100-work-to-expand-divs-to-the-screen-height | |
height: 100%; | |
} | |
/* STORY BOOK SPECIFIC GLOBAL STYLES */ | |
.blu-sbColors { | |
display: flex; | |
flex-wrap: wrap; | |
@include type("ButtonL"); | |
> div { | |
display: flex; | |
align-items: center; | |
justify-content: center; | |
text-align: center; | |
width: 50%; | |
height: 400px; | |
} | |
@each $colorKey in $colors { | |
.color#{$colorKey} { | |
color: toTextColor($colorKey); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment