Clean up snippets
This commit is contained in:
@ -28,11 +28,9 @@ CSS variables that contain specific values to be reused throughout a document.
|
||||
|
||||
#### 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.
|
||||
|
||||
Declare a variable with `--variable-name:`.
|
||||
|
||||
Reuse variables throughout the document using the `var(--variable-name)` function.
|
||||
- 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.
|
||||
- Declare a variable with `--variable-name:`.
|
||||
- Reuse variables throughout the document using the `var(--variable-name)` function.
|
||||
|
||||
#### Browser support
|
||||
|
||||
|
||||
Reference in New Issue
Block a user