mastodon.ie is one of the many independent Mastodon servers you can use to participate in the fediverse.
Irish Mastodon - run from Ireland, we welcome all who respect the community rules and members.

Administered by:

Server stats:

1.6K
active users

#codepen

0 posts0 participants0 posts today
Replied in thread

@fnohe It's actually fairly easy to create a #CssOnly dark mode: Two radio buttons let the user toggle between light/dark. In my stylesheet, I've added an `html:has(#dark-mode:checked)` rule which applies the dark theme. With more #CSS, only one button is visible at a time and both buttons look like regular ones (not like typical radio buttons). #WebDev

You can see it in action on blog.forgoodeyesonly.eu and forgoodeyesonly.eu.

I've published a #CodePen demo too: codepen.io/realpixelcode/pen/K

For Good Eyes Only BlogAll blog posts | For Good Eyes Only Blog
More from Pixelcode Apps :verified:
Replied in thread

@Crell

So on the chance you would tolerate a newbie question:

I just pulled up Codepen, & was able to dump the php code out of my html file into an html pen, & it comes up in the display window as it should. But it fails when I click "submit" bc apparently there's no way to create the php file?