Roma Komarov on Nostr: Over the past few years, I wanted to be able to select a value from a list in #CSS by ...
Over the past few years, I wanted to be able to select a value from a list in #CSS by toggling a single custom property.
We have the “space toggle” for booleans, and hopefully, one day, we’ll get style queries, but what about today?
In my new article — “Cyclic Dependency Space Toggles” I present you with the technique I recently discovered.
I can't wait to see what you would do with it!
https://kizu.dev/cyclic-toggles/
Published at
2023-06-14 09:02:35Event JSON
{
"id": "3e3f9cdc798f8bf2e28ca27f6a721a093b0f4c285dfbc014f341b65e0df31c9e",
"pubkey": "1ea5c2d0e935fb9fa76516688fbe2515d64704ee93ac3abf4198b15a125376e6",
"created_at": 1686733355,
"kind": 1,
"tags": [
[
"t",
"css"
],
[
"mostr",
"https://front-end.social/users/kizu/statuses/110541757216108825"
]
],
"content": "Over the past few years, I wanted to be able to select a value from a list in #CSS by toggling a single custom property.\n\nWe have the “space toggle” for booleans, and hopefully, one day, we’ll get style queries, but what about today?\n\nIn my new article — “Cyclic Dependency Space Toggles” I present you with the technique I recently discovered.\n\nI can't wait to see what you would do with it!\n\nhttps://kizu.dev/cyclic-toggles/\n\nhttps://cdn.masto.host/frontendsocial/media_attachments/files/110/541/711/000/541/021/original/6e0f3c5c294cf888.jpg",
"sig": "d2010bae1d84451c70924d7d2a994b2b9d87abf290d81cfab8579d34f437558050f15e6209256faa27fd40a74fb9fe3477ea8613be46a3cd64b3c71cc9248d9e"
}