21
21
``` html
22
22
<div >
23
23
<style >
24
- . me { background : red ; } /* ✨ . this and . self also work! */
25
- . me button { background : blue ; } /* style child elements inline! */
24
+ me { background : red ; } /* ✨ this & self also work! */
25
+ me button { background : blue ; } /* style child elements inline! */
26
26
</style >
27
27
<button >I'm blue</button >
28
28
</div >
@@ -53,7 +53,7 @@ Use whatever you'd like, but there's a few advantages with this approach over Ta
53
53
* No chance of [ deprecations] ( https://windicss.org/posts/sunsetting.html ) . 18 lines is infinitely maintainable.
54
54
* Get the ultra-fast "inspect, play with styles, paste" workflow back.
55
55
* No suffering from FOUC (a flash of unstyled content).
56
- * Zero friction movement of styles between inline and ` .css ` files. Just replace ` . me`
56
+ * Zero friction movement of styles between inline and ` .css ` files. Just replace ` me `
57
57
* No special tooling or plugins to install. Universal vanilla CSS.
58
58
59
59
## ⚡ Workflow Tips
@@ -76,10 +76,10 @@ Tailwind verbosity goes up with more child elements.
76
76
<!-- CSS Scope Inline -->
77
77
<div >
78
78
<style >
79
- . me { background : red ; }
80
- . me div { background : green ; }
81
- . me div [n1 ] { background : yellow ; }
82
- . me div [n2 ] { background : blue ; }
79
+ me { background : red ; }
80
+ me div { background : green ; }
81
+ me div [n1 ] { background : yellow ; }
82
+ me div [n2 ] { background : blue ; }
83
83
</style >
84
84
red
85
85
<div >green</div >
@@ -120,9 +120,9 @@ Tailwind verbosity goes up with more child elements.
120
120
<!-- CSS Scope Inline -->
121
121
<div >
122
122
<style >
123
- . me { margin :8px 6px ; }
124
- . me div a { display :block ; padding :8px 12px ; margin :10px 0 ; background :var (--color-1 ); border-radius :10px ; text-align :center ; }
125
- . me div a :hover { background :var (--color-1-active ); color :white ; }
123
+ me { margin :8px 6px ; }
124
+ me div a { display :block ; padding :8px 12px ; margin :10px 0 ; background :var (--color-1 ); border-radius :10px ; text-align :center ; }
125
+ me div a :hover { background :var (--color-1-active ); color :white ; }
126
126
</style >
127
127
<div ><a href =" #" >Home</a ></div >
128
128
<div ><a href =" #" >Team</a ></div >
0 commit comments