Created
November 23, 2015 15:03
-
-
Save keeev/793af466ab96d3e03a77 to your computer and use it in GitHub Desktop.
Convert PX to EM (LESS)
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
/*------------------------------------*\ | |
PX to EM Converter | |
Syntax: .em(45) => 2,81em | |
\*------------------------------------*/ | |
@browser-default-font-size: 16; //px | |
.em (@value, @context: @browser-default-font-size) { | |
font-size: (@value/@context) + 0em; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment