Created
June 12, 2012 19:34
-
-
Save Jaswetz/2919647 to your computer and use it in GitHub Desktop.
Revisions
-
Jaswetz revised this gist
Jun 15, 2012 . 1 changed file with 33 additions 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 @@ -7,4 +7,36 @@ @function calc-em($target-px, $context) { @return ($target-px / $context) * 1em; } @mixin font-size($font-size: 16){ font-size : #{$font-size}px; font-size : #{$font-size / 10}rem; } @mixin text-overflow() { overflow : hidden; text-overflow : ellipsis; white-space : nowrap; } // gradients @mixin greygrad { @include vertical($white, darken($greyLighter, 5%)); } @mixin basegrad { @include vertical($baseColor, darken($baseColor, 10%)); } @mixin infograd { @include vertical($infoColor, darken($infoColor, 10%)); } @mixin inversegrad { @include vertical($inversColor, darken($inversColor, 10%)); } @mixin successgrad { @include vertical($successColor, darken($successColor, 10%)); } @mixin warninggrad { @include vertical($warningColor, darken($warningColor, 10%)); } -
Jaswetz created this gist
Jun 12, 2012 .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 @@ //---------------------------------------------------------------------------- // mixins.scss //---------------------------------------------------------------------------- // --------------------------------------------------------------------------- // CONVERTING PX TO EM @function calc-em($target-px, $context) { @return ($target-px / $context) * 1em; }