Roma Komarov on Nostr: Do you think `var(--foo)` is too verbose in #CSS? With custom functions, you could do ...
Do you think `var(--foo)` is too verbose in #CSS?
With custom functions, you could do
@function --foo() {
result: var(--foo);
}
And then call `--foo()` instead, saving you 3 precious symbols.
(I'm sorry)
Published at
2025-02-17 11:01:39Event JSON
{
"id": "ce7463f5073f8802c105a94f0327e8e171f049d087d66470eb6ec3e4257235a5",
"pubkey": "1ea5c2d0e935fb9fa76516688fbe2515d64704ee93ac3abf4198b15a125376e6",
"created_at": 1739790099,
"kind": 1,
"tags": [
[
"t",
"css"
],
[
"proxy",
"https://front-end.social/users/kizu/statuses/114018883960937256",
"activitypub"
]
],
"content": "Do you think `var(--foo)` is too verbose in #CSS?\n\nWith custom functions, you could do\n\n @function --foo() {\n result: var(--foo);\n }\n\nAnd then call `--foo()` instead, saving you 3 precious symbols.\n\n(I'm sorry)",
"sig": "4d0a043ce105d26b2b23dfbf11a910b1ac15eb1479e43110b052f10d1685d10ca2937a16bcf449e2ea8f9498a35a31518fb60eff796520d4ca58ef2331391c03"
}