Ana Tudor 🐯 on Nostr: #tinyCSStip Want the shadow of an element or some other visual to be a ...
#tinyCSStip
Want the shadow of an element or some other visual to be a semitransparent version of the `currentColor`?
Use `color-mix()`!
Cross-browser, btw. 😼
#css #coding #frontend #webDev #webDevelopment
Published at
2023-07-10 08:20:22Event JSON
{
"id": "7d0574198c40b848a9c17656f53b9e7a6ac46503cc162afda37f2195751455ca",
"pubkey": "708789c2b324d71ee51c3818622526e1eda1f6ebd9a9ffeba1f09554be3a2562",
"created_at": 1688977222,
"kind": 1,
"tags": [
[
"t",
"tinyCSStip"
],
[
"t",
"css"
],
[
"t",
"coding"
],
[
"t",
"frontend"
],
[
"t",
"webdev"
],
[
"t",
"webdevelopment"
],
[
"mostr",
"https://mastodon.social/users/anatudor/statuses/110688811266535252"
]
],
"content": "#tinyCSStip\n\nWant the shadow of an element or some other visual to be a semitransparent version of the `currentColor`?\n\nUse `color-mix()`!\n\nCross-browser, btw. 😼\n\n#css #coding #frontend #webDev #webDevelopment\n\nhttps://files.mastodon.social/media_attachments/files/110/688/808/509/934/627/original/8a868fbe96e9aa54.png",
"sig": "4fd0fa86abf522fba214d8f4e1e5bdbe74947770ff789dbdb06c0a0d81fb9f23ef4d8f5f4458cc74c03f2d73a5ed1539dd45e68be98c7448811ebd1331f75848"
}