Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

:hover and :active as overlays #36

Open
naasking opened this issue Feb 28, 2017 · 0 comments
Open

:hover and :active as overlays #36

naasking opened this issue Feb 28, 2017 · 0 comments

Comments

@naasking
Copy link

Picnic CSS uses a neat trick to avoid having to specify explicit colours for elements that change on hover (see also the docs). Basically, you use an inset box shadow with a partial transparency value.

This way, I could include natuive css as-is and just specify my own palette where I want, and the overlays will just work.

@naasking naasking changed the title Hover overlays :hover and :active as overlays Feb 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant