Love it. Apply to any checkbox for a nice toggle button. Of course this exists already elsewhere, but it was fun to figure it out myself.
- radial-gradient for a filled circle
- positioned either left or right with calc
- scales with font-size
- nested css rules
- colors with alpha
- outline may actually be inside (lol)
- no JavaScript needed
One thing: alpha colors still look bad, but how to get a good contrast?
Copy&Paste CSS in ALT-text.
