Responsive Web Design: Added solution to Cascading CSS Variables (#19596)

pull/25740/head
Gregory Gubarev 2018-10-23 17:51:36 +04:00 committed by Kristofer Koishigawa
parent 31c269563a
commit 217ed50827
1 changed files with 9 additions and 0 deletions

View File

@ -32,6 +32,15 @@ Using the variable:
var(--custom-name)
```
### Solution
In the ```:root``` selector we need to declare the ```--penguin-belly``` variable and give it the value of ```pink```:
```css
:root {
--penguin-belly: pink;
}
```
### Sources