Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Debug vertical rhythm with Sass
@mixin vertical-grid($line-height: 24px) {
position: relative;
&::before {
$stripe-color: rgba(blue, 0.2);
background-image: repeating-linear-gradient(to bottom, $stripe-color, $stripe-color $line-height, transparent $line-height, transparent $line-height * 2);
bottom: 0;
content: '';
left: 0;
position: absolute;
right: 0;
top: 0;
z-index: 9999;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.