Created
August 25, 2015 19:22
-
-
Save mjsxi/35f5b5e951bba925934f to your computer and use it in GitHub Desktop.
Revisions
-
mjsxi created this gist
Aug 25, 2015 .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,33 @@ // ---- // libsass (v3.2.5) // ---- /* first test */ $small: nothing; // fallback for images not uploaded @mixin testSmall($s: null) { @if ($s == nothing) { display: none } @else { background: transparent url(img) no-repeat 50% 50%; background-size: cover; padding-bottom: 94.85%; } } @include testSmall($small); /* second test */ $small: any other value in the world; // link or value for uploaded image @mixin testSmall($s: null) { @if ($s == nothing) { display: none } @else { background: transparent url(img) no-repeat 50% 50%; background-size: cover; padding-bottom: 94.85%; } } @include testSmall($small); 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,6 @@ /* first test */ display: none; /* second test */ background: transparent url(img) no-repeat 50% 50%; background-size: cover; padding-bottom: 94.85%;