https://thebabydino.github.io/
ko-fi.com/anatudor
Because praise doesn't keep me afloat... but you can!
```
box-shadow: 0 1px 2px
rgb(from currentcolor r g b/ .65)
```
Cross-browser since September 2024.
#tinyCSStip #CSS
Want the shadow of an element or some other visual to be a semitransparent version of the `currentColor`?
Use `color-mix()`!
Cross-browser, btw. 😼
```
box-shadow: 0 1px 2px
rgb(from currentcolor r g b/ .65)
```
Cross-browser since September 2024.
#tinyCSStip #CSS
Instead of aligning gradients of div and its pseudos, it's using #CSS #masking and a simple #SVG #filter.
Instead of aligning gradients of div and its pseudos, it's using #CSS #masking and a simple #SVG #filter.
It's a really useful way to create a bunch of colors from just one color.
Now is time to take a look and use it in your projects!
Docs: developer.mozilla.org/en-US/docs/W...
Demo: patrickbrosset.com/lab/2024-02-...
It's a really useful way to create a bunch of colors from just one color.
Now is time to take a look and use it in your projects!
Docs: developer.mozilla.org/en-US/docs/W...
Demo: patrickbrosset.com/lab/2024-02-...
❇️ ko-fi.com/anatudor
❇️ www.patreon.com/c/anatudor
#CSS #SVG
❇️ ko-fi.com/anatudor
❇️ www.patreon.com/c/anatudor
#CSS #SVG
Talent500, who have a gold check account on twitter, copied a few bits of my article that I worked for 3 weeks on. Could not even be bothered to copy enough to get to a working solution, stopped at intermediary steps. And "forgot" to give credit.
Talent500, who have a gold check account on twitter, copied a few bits of my article that I worked for 3 weeks on. Could not even be bothered to copy enough to get to a working solution, stopped at intermediary steps. And "forgot" to give credit.
This is who it was:
This is who it was:
What's the point of setting background on an img anyway? 🤷
Well, it's useful if we want a border pattern only possible with multiple gradients (border-image only allows one)/ if we also want to have rounded corners (border-image + border-radius = 💩).
codepen.io/thebabydino/...
#CSS
What's the point of setting background on an img anyway? 🤷
Well, it's useful if we want a border pattern only possible with multiple gradients (border-image only allows one)/ if we also want to have rounded corners (border-image + border-radius = 💩).
codepen.io/thebabydino/...
#CSS
Can you guess without looking up?
www.youtube.com/watch?v=qc98...
Too cryptic?
www.youtube.com/watch?v=vYNA...
Not enough?
www.youtube.com/watch?v=CO8C...
Oh, come on!
www.youtube.com/watch?v=WBs3...
Can you guess without looking up?
www.youtube.com/watch?v=qc98...
Too cryptic?
www.youtube.com/watch?v=vYNA...
Not enough?
www.youtube.com/watch?v=CO8C...
Oh, come on!
www.youtube.com/watch?v=WBs3...
We can get the sign of the difference
--sgn: sign(100vw - var(-cutoff))
a bit value (0 if sign is -1 or 0, 1 otherwise)
--bit: round(down, .5*(1 + var(--sgn)))
finally
border-radius: calc(var(--bit)*8px)
#tinyCSStip #CSS
We can get the sign of the difference
--sgn: sign(100vw - var(-cutoff))
a bit value (0 if sign is -1 or 0, 1 otherwise)
--bit: round(down, .5*(1 + var(--sgn)))
finally
border-radius: calc(var(--bit)*8px)
#tinyCSStip #CSS
It doesn’t auto-translate:
adrianroselli.com/2019/11/aria...
It’s code smell:
ericwbailey.website/published/ar...
You can probably use better methods:
adrianroselli.com/2020/01/my-p...
#accessibility #a11y #ARIA
It doesn’t auto-translate:
adrianroselli.com/2019/11/aria...
It’s code smell:
ericwbailey.website/published/ar...
You can probably use better methods:
adrianroselli.com/2020/01/my-p...
#accessibility #a11y #ARIA
This is what subgrid was made for!
#CSS
This is what subgrid was made for!
#CSS
This is the one feature I'm really missing.
This is the one feature I'm really missing.
Thanks!
Thanks!