You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need a way to group and differentiated atomized classes that are in unique media query groups. My idea here is to prefix it with the full name/details of the query, then an open curly brace, then the declaration name and value, then a closing curly brace.
The @document and @-moz-document rules can wrap an entire CSS file, so would need extra opening/closing curly braces as well in their encoded name.
These encoded classnames can get pretty long, but browsers allow class names to be any length (no limit), and also users are just gonna use the uglified version anyway.
The text was updated successfully, but these errors were encountered:
MDN lists these as all the At-rules, though this list may be incomplete:
@document
@-moz-document
@layer
@media
@supports
@charset
@import
@namespace
@font-feature-values
@keyframes
@page
@color-profile
@counter-style
@font-face
@property
@viewport
(deprecated)Some
@
rules can contain CSS classes, they have been noted in the table with "Atomize? Yes".For anything else, it should just pass through to the output CSS file untouched.
Example:
We need a way to group and differentiated atomized classes that are in unique media query groups. My idea here is to prefix it with the full name/details of the query, then an open curly brace, then the declaration name and value, then a closing curly brace.
The
@document
and@-moz-document
rules can wrap an entire CSS file, so would need extra opening/closing curly braces as well in their encoded name.Example:
These encoded classnames can get pretty long, but browsers allow class names to be any length (no limit), and also users are just gonna use the uglified version anyway.
The text was updated successfully, but these errors were encountered: