Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
hebelehubele
1 day ago
|
parent
|
context
|
favorite
| on:
CSS now has an if() conditional function
You can do without javascript. Checkbox `:checked` + `label` trick for toggling states still works.
See:
https://codepen.io/abdus/pen/bNpQqXv
bradly
22 hours ago
[–]
Thanks, I’ll check this out!
reply
hebelehubele
14 hours ago
|
parent
[–]
Here's a version with a 3-way theme selector (light / system / dark) using radio inputs.
https://codepen.io/abdus/pen/yyOQpvE
reply
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
See: https://codepen.io/abdus/pen/bNpQqXv