PostCSS Input Style
PostCSS plugin that adds new pseudo elements to inputs for easy cross-browser styling of their inner elements. Currently the only input supported is Range, more will be added as more vendor-specific pseudo selectors are made available.
Part of Rucksack - CSS Superpowers
Input
Output
Notes on output:
-
Selectors are not grouped because if a browser finds a single selector it doesn't understand in a group, the whole group is ignored (see Selectors Level 3)
-
-[vendor]-appearance: none;
is added so your custom styles apply. On Chrome and Safari this means you must style both::track
and::thumb
, since the appearance must be set on the root element as well -
The additional
::-moz-focus-outer
rule removes the inconsistent dotted focus outline on firefox.
Usage
See PostCSS docs for examples for your environment.
MIT © Sean King