Postcss-hocus
Postcss-hocus fixes a tiny but annoying part of CSS: That you have to repeat yourself whenever you want to specify both :hover
and :focus
. Instead, you can write a:hocus:
/* before */ /* after */
Additionally, you can write a:pocus so also include the :active style:
/* before */ /* after */
Usage
Add postcss-hocus using npm:
npm install postcss-hocus --save-dev
Then add in your PostCSS Config:
;