- 
      
 - 
        
Save paulakreuger/8c4ca82ab7d29ebd412f to your computer and use it in GitHub Desktop.  
Revisions
- 
        
paulakreuger revised this gist
May 28, 2014 . 1 changed file with 5 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,10 +1,9 @@ $browser-context: 16; // Default @function em($pixels, $context: $browser-context) { @return #{$pixels/$context}em } h1 { font-size: em(21, 15); // Outputs 1.4em }  - 
        
Ian Young revised this gist
Dec 7, 2011 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ @function em($target, $context: $base-font-size) { @if $target == 0 { @return 0 } @return $target / $context + 0em; }  - 
        
Ian Young created this gist
Dec 7, 2011 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ @function em($target, $context: $font-base) { @if $target == 0 { @return 0 } @return $target / $context + 0em; } $base-font-size: 15px; h1 { font-size: em(21px, 15px); // Outputs 1.4em }