Skip to content

Commit 4112226

Browse files
committed
Add pseudo usage documentation
1 parent 765b524 commit 4112226

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,32 @@ will be processed to:
8282
}
8383
```
8484

85+
## Pseudo class and elements
86+
87+
```css
88+
.foo {
89+
--foo-color: #ff0000;
90+
color: var(--foo-color);
91+
}
92+
93+
.foo:hover {
94+
--foo-color: #00ff00;
95+
}
96+
```
97+
98+
will be processed to:
99+
100+
```css
101+
.foo {
102+
color: #ff0000;
103+
}
104+
105+
.foo:hover {
106+
color: #00ff00;
107+
}
108+
```
109+
110+
85111

86112
## Nested rules
87113

0 commit comments

Comments
 (0)