aardrian, to random
@aardrian@toot.cafe avatar

Tip: Firefox gives placeholder text an opacity of .54 (so black text passes WCAG contrast checks at 4.5:1 with ).

Which means if you use placeholder and you choose to set a color, you need to also set opacity:

::placeholder {  
 opacity: 1;  
 color: #777391;  
}  

Alternatively (and preferably), never use placeholder text.

yatil,
@yatil@yatil.social avatar

@aardrian I wrote about this on my* former other website: https://www.w3.org/WAI/tutorials/forms/instructions/#styling

  • totally not mine.
belldotbz, to random
@belldotbz@mastodon.social avatar

📝 New on Piccalilli: CSS inheritance

Inheritance truly is a superpower and it’s what makes developing on the web a joy if you embrace it. In this quick post, I’m going to convert you into a super fan.

https://piccalil.li/blog/css-inheritance/

aardrian,
@aardrian@toot.cafe avatar
KissAnne, to China
@KissAnne@mastodon.social avatar

The wax barber in - parturi tekee Kiinassa vahasta kampauksia

A barber uses wax to create hairstyles

Sexabled, to makeup German
@Sexabled@troet.cafe avatar

Darf ich vorstellen? Ich, nach fünf Minuten in einer 90° Sauna. Kein , kein , einfach die buchstäblich nackte Wahrheit.⬇️

kubikpixel, to CSS German
@kubikpixel@chaos.social avatar

Oha, das ist ja ein cooles . Habe es erst jetzt entdeckt und der zum Anwenden im HTML Vorlagen ist so schön schlank, sprich nicht vorhanden. Auf dem ersten Blick mag ich es und muss es dringend ausprobieren.
Warum sind die meisten populären Tools dem gegenüber fett?

https://picocss.com

schizanon, to webdev

Something I love about the web is how it still surprises me with new features all the time.

Like since when have we had an API for applying CSS highlights to text using JS to define the highlighted areas?

https://developer.mozilla.org/en-US/docs/Web/API/CSS_Custom_Highlight_API

The3DRoom, to homeassistant

Not sure when this happened (possibly the most recent update) but the 🍄 Mushroom Title card now accepts font-family styling from Card_Mod
Never used to work (despite trying many, many methods).

Just adds that final bit of consistency 😍

ppk, to random
@ppk@front-end.social avatar

I have a note

:part() for options in select

It seems to indicate that you can use the :part() pseudo for styling options in select boxes.

But my Google Fu is failing me miserably and I can't find anything online.

Does anyone know what I'm talking about? Or is this note just wrong?

tbroyer,
@tbroyer@piaille.fr avatar

@ppk You may have mis-noted select instead of selectmenu: https://open-ui.org/components/selectmenu/#styling-parts-of-the-control

postroutine, to django French

With Django CreateView, in the template render, how can I set the form fields HTML class ?

CodenameTim,
@CodenameTim@fosstodon.org avatar
Jan, to random

Black White Dahlia on Redbubble

In this captivating close-up, we are presented with the exquisite beauty of a white dahlia flower. The delicate petals of the dahlia bloom take center stage, showcasing their pure white color and intricate details. Each petal is meticulously rendered, capturing the softness and texture that make the flower so enchanting. The dahlia’s petals radiate a subtle […]

https://outpostbrons.nl/?p=116

  • All
  • Subscribed
  • Moderated
  • Favorites
  • anitta
  • ethstaker
  • DreamBathrooms
  • InstantRegret
  • magazineikmin
  • tester
  • khanakhh
  • everett
  • thenastyranch
  • Youngstown
  • slotface
  • tacticalgear
  • kavyap
  • osvaldo12
  • JUstTest
  • mdbf
  • GTA5RPClips
  • ngwrru68w68
  • provamag3
  • Durango
  • rosin
  • cisconetworking
  • normalnudes
  • modclub
  • megavids
  • cubers
  • Leos
  • lostlight
  • All magazines