Skip to content

Instantly share code, notes, and snippets.

@mrtuvn
Last active December 14, 2020 16:11
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 mrtuvn/9296f9025bbeb93c26ef3c4605c070da to your computer and use it in GitHub Desktop.
Save mrtuvn/9296f9025bbeb93c26ef3c4605c070da to your computer and use it in GitHub Desktop.
mixin line-height custom magento 2
// line height
.lib-line-height(@heightValue) when not (@heightValue = false) and not (@heightValue = normal) and not (ispercentage(@heightValue)) {
.lib-css(line-height, @heightValue);
}
.lib-line-height(@heightValue) when (ispercentage(@heightValue)) and not (@heightValue = false) {
.lib-css(line-height, @line-height__base);
}
.lib-line-height(@heightValue) when (@heightValue = normal) {
.lib-css(line-height, @heightValue);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment