Skip to content

Instantly share code, notes, and snippets.

@claudia-romano
Last active July 1, 2020 13:14
Show Gist options
  • Save claudia-romano/a53b86d29e7200cd822950b9934ba861 to your computer and use it in GitHub Desktop.
Save claudia-romano/a53b86d29e7200cd822950b9934ba861 to your computer and use it in GitHub Desktop.
@mixin lhCrop($line-height) {
&::before {
content: '';
display: block;
height: 0;
width: 0;
margin-top: calc((1 - #{$line-height}) * 0.5em);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment