Skip to content

Instantly share code, notes, and snippets.

@gossi
Created January 12, 2014 19:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gossi/8389207 to your computer and use it in GitHub Desktop.
Save gossi/8389207 to your computer and use it in GitHub Desktop.
css-variables
/**
* css-variables
*/
:root {
var-bg: red;
}
div {
margin: 20px;
border: 1px solid #000;
padding: 10px;
background-color: var(bg);
}
div#box {
var-bg: green;
}
<!-- content to be placed inside <body>…</body> -->
<div id="box">bla</div>
<div>another div</div>
// alert('Hello world!');
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment