This javascript generates fake classes in the browser for any defined styles containing pseudo-classes like :focus or :hover.
You can use these classes in your styleguide to show styles that else would been hidden or need to be defined separately in your general production stylesheet.
- include the javascript-file at the bottom of your html-file.
- use fake-classes on your elements
fake-hover
for hovering state of an elementfake-focus
to show what an element looks when it is focusedfake-target
to show what an element looks when it is targetedfake-active
for the active state of a linkfake-visited
for the visited state of a linkfake-valid
for the valid state of an input elementfake-invalid
for the visited state of an input element
- set a data attribute
data-debug="true"
on the script tag and see some debug output.
For an example look at tests/index.html
MIT License