Made the code easier to use as an imported stylesheet.