File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 32
32
33
33
< div >
34
34
< style >
35
- .me { font-family : 'Noto Sans' , sans-serif; background : hsl (264 62% 20% ); border : none; border-radius : 12px ; box-shadow : 0 2px 5px # 00000044 ; padding : 10px 20px ; color : # fff ; margin : 20px ;
36
- /* CSS Nesting works! */
35
+ /* One selector, flat style. */
36
+ .me { font-family : 'Noto Sans' , sans-serif; background : hsl (264 62% 20% ); }
37
+ /* One selector, nested style. */
38
+ .me { border : none; border-radius : 12px ; box-shadow : 0 2px 5px # 00000044 ; padding : 10px 20px ; color : # fff ; margin : 20px ;
37
39
& span { background : hsl (264 90% 90% ); color : hsl (264 30% 40% ); padding : 16px 20px ; border-radius : 8px ; box-shadow : 0 0 5px hsl (0 0% 0% / 20% );
38
40
& ::before { content : '🔮' ; padding : 0 1ch 0 0 ; }
39
41
}
40
42
}
41
- /* Flat style can be more readable! 1 selector per line. */
43
+ /* One selector, flat style can be more readable! */
42
44
.me ol { padding : 5px 0 ; }
43
45
.me ol li { list-style : disc; padding : 4px ; border-radius : 12px ; margin : 4px 20px }
44
46
/* ✨ .this and .self alias .me ! */
@@ -100,7 +102,7 @@ <h2>Responsive Design 🔛 Resize the window!</h2>
100
102
< br />
101
103
102
104
< h2 > HTMX Test</ h2 >
103
- < script src ="https://unpkg.com/htmx.org@1.9.5 "> </ script >
105
+ < script src ="https://unpkg.com/htmx.org@1.9.5 " defer > </ script >
104
106
< div > Swapped DOM elements are styled instantly when they arrive.</ div >
105
107
< button garlic hx-get ="https://gnat.github.io/css-scope-inline/example.html " hx-select ="button[garlic] " hx-swap ="afterend ">
106
108
< style >
You can’t perform that action at this time.
0 commit comments