Custom CSS Extensions - tomhodgins/process-css-demo GitHub Wiki
These CSS extensions work by parsing a CSS stylesheet and processing each top-level rule. If it finds something it's looking for it will either transform the information from CSS into CSS output, or if it's a feature that requires JavaScript at runtime in order to support, it will automatically generate and output all of the runtime information required to support the features used.
This package uses anesthetic to support nesting CSS rules inside custom properties, more info in the anesthetic README
-
@--resetCSS→CSS -
@--variationCSS→CSS -
@--elementCSS→JS -
@--min-widthCSS→CSS -
@--max-widthCSS→CSS -
@--documentCSS→JS -
@--propertyCSS→JS -
@--importantCSS→CSS -
@--rewrite-selectorCSS→CSS -
@--custom-unitsCSS→CSS
:--self-
:--firstCSS→JS -
:--lastCSS→JS -
:--has()CSS→JS -
:--string-match()CSS→JS -
:--regexp-match()CSS→JS -
:--overflowed()CSS→JS -
:--tag-name()CSS→JS -
:--xpath()CSS→JS
-
/--previous/CSS→JS -
/--elder/CSS→JS -
/--parent/CSS→JS -
/--closest/CSS→JS
-
--clamped-font-sizeCSS→JS
-
--base64-encode()CSS→CSS -
--svg-encode()CSS→CSS -
--mimic()CSS→JS
-
--ew,--eh,--emin,--emaxElement-percentage units CSS→JS -
--sw,--shScroll-percentage units CSS→JS
-
!--immutableproperty values CSS→JS