Created
June 4, 2014 13:41
-
-
Save iambacon/3eb09758f485e068440b to your computer and use it in GitHub Desktop.
This file contains 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
@base--line-height: 1.2; | |
@base--font-size: 16px; | |
.font-size(@font-size; @line-height) when(@line-height = true){ | |
line-height: ceil(@font-size / @base--line-height) * (@base--line-height / @font-size); | |
.font-size(@font-size); | |
} | |
.font-size(@font-size; @line-height:false) { | |
font-size: @font-size; | |
font-size: (@font-size / @base--font-size) * 1rem; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment