Skip to content

Instantly share code, notes, and snippets.

@gruppjo
Last active April 30, 2020 16:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gruppjo/46a2168392c2fbb5be1d7ac229a65e1e to your computer and use it in GitHub Desktop.
Save gruppjo/46a2168392c2fbb5be1d7ac229a65e1e to your computer and use it in GitHub Desktop.
global storybook scss file
@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