3 ms·
I think this is just a problem of nomenclature. In CSS, a statement such as font-color : red; comprises a "property" (left) and a "value" (right). The dra
by bshimmin 12y ago
I think this is just a problem of nomenclature. In CSS, a statement such as
font-color : red;
comprises a "property" (left) and a "value" (right). The draft W3C proposal allows you to specify a "custom property" and assign a value to it, thus:
--header-bg-colour : #ff5533;
You can then reference this elsewhere by saying:
header { background-color : var(--header-bg-colour); }
Isn't that just how you use a variable (written as $header-bg-colour) in Sass?