nerdculture.de is one of the many independent Mastodon servers you can use to participate in the fediverse.
Be excellent to each other, live humanism, no nazis, no hate speech. Not only for nerds, but the domain is somewhat cool. ;) No bots in general. Languages: DE, EN, FR, NL, ES, IT

Administered by:

Server stats:

1.2K
active users

#ClipPath

1 post1 participant0 posts today

Know how border-image & border-radius don't play nice together?

(interactive codepen.io/thebabydino/pen/jxZ)

#tinyCSStip there's a workaround IF corner radius ≤ border-width: use inset() clip-path + a round value!

clip-path: inset(0 round $r)

@codepen demo: codepen.io/thebabydino/pen/qBE

(and yes, this is a tip I first shared on twitter over half a decade ago x.com/anatudor/status/12199161 )

Re x.com/meodai/status/1800098657

If you ever want to create a regular/ star-shaped #polygon, I made a #Sass #mixin that generates them years ago
codepen.io/thebabydino/pen/PRM

A heavily commented & more modern version of the regular poly mixin codepen.io/thebabydino/pen/mEg

Bonus: chubby stars mixin codepen.io/thebabydino/pen/KLy

Example of a @codepen demo using such a regular polygon mixin to create three rolling hexagons: codepen.io/thebabydino/pen/LYz

#CSS#geometry#maths