Tired of whatever silly color I've picked? Rotate the overall hue by hovering the site title!

Boolean arithmetic is pretty neat

Let's say you've got to position some element at the top of a page but that its top property will have to vary depending on the existence a couple other items that might also be up there. For instance, you want to position: sticky a menu bar but you have to contend with the possible presence of an announcement banner as well as the WP admin bar.

Keep on readin' on Boolean arithmetic is pretty neat

Published
Categorized as Code Tagged ,

Add domain name to every site's root class list

As a purveyor of userstyles, I found myself wanting to change a tiny thing here or there on various sites without giving them each their own tiny stylesheet. I also didn't want to start adding random selectors to a global stylesheet and identifying them by comment; I wanted to identify sites by their domain, e.g. html.apnews-com and keep all styles for that site nested underneath. In order to do this, I think a userscript needs to be involved.

Keep on readin' on Add domain name to every site's root class list

Dulling bright colors in Gmail

One thing I don't need first thing in the morning or last thing at night is to be visually accosted by emails that include absurdly-colored elements. A couple of the newsletters I subscribe to use ridiculous shades of red-orange, and with my gaming PC and its contrasty gaming monitor and some slightly boosted digital vibrance to make colors pop a bit, scrolling through these newsletters can physically hurt.

Keep on readin' on Dulling bright colors in Gmail