-
Hello, congrats on the awesome idea! I support yielding the minimal for the user as well. <!--- nth-of-type(even) --->
article:nth-of-type(even) {
display: flex;
flex-flow: column;
flex-direction: row-reverse;
}
<!--- ~ * --->
details[open] summary ~ * {
animation: open 0.3s ease-in-out;
}
<!--- ::-webkit-details-marker --->
details summary::-webkit-details-marker {
display: none;
} |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @ph4un00b, Thanks a lot! I am very glad that you like the idea! ❤️ I have made an example on codepen - https://codepen.io/Machy8/pen/wvXrxze A bit of explanation
In More about Components. Selectors
CSS
There are also custom selectors that have the same syntax as components but are used for selecting things like Hope this helps. If you have any other questions, let me know :)! |
Beta Was this translation helpful? Give feedback.
-
For later viewers: You might want to check out Syntax Cheat Sheet. |
Beta Was this translation helpful? Give feedback.
Hi @ph4un00b,
Thanks a lot! I am very glad that you like the idea! ❤️
I have made an example on codepen - https://codepen.io/Machy8/pen/wvXrxze
A bit of explanation
[li:nth-of-type(even)]{color:blue}
has this structure[<cssSelectors>]{<stylifySelectors>}
<cssSelectors>
: Are the same like in CSS. Except without space use_
and for a quote^
. You can use more like in CSS using,
.<stylifySelectors>
: Normal Stylify selectors. You can add more using;
that splits the content within the{}
&
characters always refers to upper level, like in SCSS[div]{font-size:24px}
=> CSS:[div]{font-size:24px} div {font-size:24px}
[div_&]{font-size:24px}
=>…