Skip to content
This repository was archived by the owner on Dec 21, 2021. It is now read-only.

Commit ef36b0c

Browse files
committed
Update documentation
1 parent 315993c commit ef36b0c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,19 @@
1212
margin-right: 10px;
1313
}
1414

15+
.example:dir(ltr) {
16+
margin-left: 10px;
17+
}
18+
1519
/* becomes */
1620

1721
[dir="rtl"] .example {
1822
margin-right: 10px;
1923
}
24+
25+
[dir="ltr"] .example {
26+
margin-left: 10px;
27+
}
2028
```
2129

2230
If your [browserslist] already supports the `:dir` pseudo-class, this plugin
@@ -176,7 +184,7 @@ require('postcss-dir-pseudo-class')({
176184

177185
/* becomes */
178186

179-
:root .example {
187+
:not([dir="rtl"]) .example {
180188
margin-left: 10px;
181189
}
182190

0 commit comments

Comments
 (0)