registerguard / raptor

The non-news sub-theme for The Register-Guard.
Apache License 2.0
0 stars 1 forks source link

Default Link Colors #15

Closed psullivan6 closed 10 years ago

psullivan6 commented 11 years ago

Setup the CSS for default link colors and backgrounds. Useful to create default link colors on :hover, etc... based on their current color. Ex: white links become black , black links become white, etc...

Example:

a.white_bg:hover { color: @black; background-color: @grayD;}
a.grayE_bg:hover { color: @black; background-color: @grayC;}

Original idea: The background color is +#222 from its current color, unless it's already too dark in which case it's -#222.

Problem: a link that is within another background div (or other element) that has a background applied to it. Is it worth creating default background-colors? hover-issue

psullivan6 commented 11 years ago

Use this list of pseudo classes: https://gist.github.com/psullivan6/5313656