Add extractor and builder
Tested and working
This commit is contained in:
@ -5,14 +5,10 @@ tags: other,intermediate
|
||||
|
||||
CSS variables that contain specific values to be reused throughout a document.
|
||||
|
||||
#### HTML
|
||||
|
||||
```html
|
||||
<p class="custom-variables">CSS is awesome!</p>
|
||||
```
|
||||
|
||||
#### CSS
|
||||
|
||||
```css
|
||||
:root {
|
||||
/* Place variables within here to use the variables globally. */
|
||||
@ -30,8 +26,6 @@ CSS variables that contain specific values to be reused throughout a document.
|
||||
}
|
||||
```
|
||||
|
||||
#### Demo
|
||||
|
||||
#### Explanation
|
||||
|
||||
The variables are defined globally within the `:root` CSS pseudo-class which matches the root element of a tree representing the document. Variables can also be scoped to a selector if defined within the block.
|
||||
|
||||
Reference in New Issue
Block a user