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

This commit is contained in:
Gregory Gubarev
2018-10-23 17:51:36 +04:00
committed by Kristofer Koishigawa
parent 31c269563a
commit 217ed50827

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