by
12k 33
0
6
4,188
0
Top 1% !
Popular
Famous
Tagged
Specified
Refined
Popularity: 2372nd place
Created
Modified Mar 7, 2013
This snippet is Public
Architecturex86_64
BrowserChrome
Chrome Version25.0.1364.152
LanguageSass
LicenseMIT_X11
OSWindows
Windows VersionWindows8

Set a variable in Sass

How to set a variable in Sass CSS Preprocessor
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/897/Set-a-variable-in-Sass?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
/* -- .scss -- */ $color: #efefef; body {background: $color;} /* -- resulting css -- */ body {background: #efefef;}
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus