kizu, to CSS
@kizu@front-end.social avatar

New post: “Recent CSS Bookmarks 16”

https://blog.kizu.dev/recent-css-bookmarks-016/

Another big batch of bookmarks: more than a month worth of them.

As usual, with that number of them (32!), I grouped them into eight sections: Colors and Themes, CSS Layouts, Typography, Future CSS, Selectors, Shapes and Effects, Everything Else and My Articles.

5t3ph, to CSS
@5t3ph@front-end.social avatar

Soooo... who is attending Day, the Accessibility Club Summit, or both?

hamatti, to CSS
@hamatti@mastodon.world avatar

If you're only gonna watch one thing this weekend, watch this amazing talk about the history of styling in the web and the guiding principles of how browsers work with regards to styling by @mia from last week's 11ty conference.

https://www.youtube.com/watch?v=uaN9kY8lKPU

a11yclub, to CSS
@a11yclub@mastodon.social avatar

Just in: Alongside @karlgroves and @erikKroes, @5t3ph will also be offering a workshop in Amsterdam on 9 June:

Beyond : Requirements for Accessible Components

Participation in half-day workshops costs from € 25, full-day workshops from € 50. Further workshops can be added at any time. Get your tickets: https://ti.to/tollwerk/accessibility-club-summit-2024

More info: https://accessibility.club/event/accessibility-club-summit-2024#schedule-2024-06-09

xeophin, to CSS
@xeophin@swiss.social avatar

Don't set fantasy weight values in your @font-face definitions. It will fuck up the fallback algorithms should your font lack some symbols.

Written from a company who's definition for the regular weight is set to 100

virtulis, to CSS
@virtulis@loud.computer avatar

Just found a #CSS trick that's so simple and useful it should be common knowledge, and yet I can't find any mention of it.

Sometimes you would really prefer that, if a sentence doesn't fit on the current line, it would just go on the next line as a whole.

The usual hack for this is to put it in a span with white-space: nowrap. This is obviously a very bad idea, because it can and will break layouts.

A better option? display: inline-block. Yeah, that's literally the whole pro gamer move.

Each one of these sentences is an inline-block. It breaks inside when it doesn't fit, but goes on the next line when it does.

How the hell did I not know this.

kizu, to Typography
@kizu@front-end.social avatar

We really need to gather various #typography related #CSS properties that are scattered across different browsers without full support (or with just partial support) and make it into an #interop2025 focus area.

Like ascent-override (please, Safari!)

Or font-size-adjust (come on, Chrome!)

Or… initial-letter (hey, Firefox!), though, there are also so many ::first-letter issues!

Or text-box-trim & text-box-edge (ok, these are only there in Safari TP)

And so on, and so forth.

leaverou, to CSS
@leaverou@front-end.social avatar

🔥 New blog post!

“On compliance vs readability: Generating text colors with CSS”
https://lea.verou.me/blog/2024/contrast-color/

This has been in the making for over a month! 😮‍💨

It includes:
🔥 New #CSS Technique: How can we use widely supported CSS features to automatically pick a text color that is readable over an arbitrary background?
🔥 Original research: What lightness ranges correspond to what color contrast compliance & readability buckets? How are these affected by additional constraints (gamut, chroma, hue)?

Luke, (edited ) to random
@Luke@typo.social avatar

Anyone know of a code editing environment that live updates the preview based off of the you're currently typing? No 'save' action needed?

CSSEdit / Espresso is too old.
• Mac, please
• PHP pages

vanilla, to CSS
@vanilla@social.spicyweb.dev avatar

Finally. 😂

(We love ya 3, but it's high time we were talking about CSS4, CSS5, and beyond!)

https://thathtml.blog/2024/05/get-ready-for-css-6/

mobileatom, to CSS
@mobileatom@flipboard.com avatar

CSS3? Pfff. Get ready for CSS6! #CSS

https://thathtml.blog/2024/05/get-ready-for-css-6/?utm_source=flipboard&utm_medium=activitypub

Posted into Responsive Design, UX, UI, and more @responsive

mobileatom, to CSS
@mobileatom@flipboard.com avatar
lonekorean, to CSS
@lonekorean@front-end.social avatar

Are folks using things like margin-inline as shorthand for left/right and margin-block as shorthand for top/bottom?

Or do you avoid that because of writing-mode/direction/text-orientation?

Or are those not really a concern in your usage?

moh_kohn, to CSS
@moh_kohn@mastodon.scot avatar

Can I detect clamp support using @supports?

mia, (edited ) to CSS
@mia@front-end.social avatar

Are there issues or surprises you've run into when using #CSS container queries in practice? Let us know, and we'll try to cover them in the @OddBird Winging It live stream tomorrow!

https://www.youtube.com/watch?v=Ci2DLDQYup0

Nico3333fr, to CSS French
@Nico3333fr@mastodon.social avatar

En fait, l'IA, c'est surtout un accélérateur à conneries.

Tu discutes #CSS sérieusement avec des gens respectables, et le soir tu poses des paroles débiles sur un rock généré et ça donne ça https://suno.com/song/38862858-9034-4781-9fc8-6f6394f25e46

symfonystation, to Symfony
@symfonystation@newsletter.mobileatom.net avatar
mia, (edited ) to CSS
@mia@front-end.social avatar

Unexpected things can happen when you add containment (some elements completely collapse)! @stacy and I will discuss #CSS Container Queries in the real world on @OddBird's Winging It livestream this Thursday:

May 16 at 1pm ET/11am MT

https://www.youtube.com/watch?v=Ci2DLDQYup0

Send us your questions in advance or join us during the live stream!

css, to CSS
@css@front-end.social avatar

💡 CSS Tip!

Turn a simple input into single-digit inputs using a few lines of CSS. Useful for One-Time Password fields.
✅ No extra element (only one input element)
✅ Less than 15 CSS declarations
✅ Optimized with CSS variables

Demo: https://codepen.io/t_afif/full/XWwbMNO via :codepen: @codepen

Online Version: https://css-tip.com/single-digit-inputs/

Showing the result of the linked demo. A One-Time password field using a single input element.

havn, to CSS
@havn@mas.to avatar

Can someone explain to me why we don’t have media queries for browser engines in ? Just pride?

I get that we, in a perfect world, wouldn't need it - because the standards were strong enough. But I live in the real world, and would prefer not to write shit like this:

--variable: 0.17rem;
@supports (text-wrap: pretty) {
--variable: 0.07rem;
}
@supports (-moz-appearance: none) {
--variable: 0.11rem;
}

Advice for doing this better is appreciated!

yuanchuan, to CSS
@yuanchuan@vis.social avatar

Chrome has a different behaviour from FF and Safari.

They used be the same. I'm not sure if the spec changes or Chrome has a bug in recent releases

https://codepen.io/yuanchuan/pen/bGydpjP

Source code grid { display: grid; width: 600px; height: 200px; background: ; grid-template-columns: repeat(10, 1fr); } grid > div { border: 2px solid ; width: 50%; aspect-ratio: 1; }

5t3ph, to CSS
@5t3ph@front-end.social avatar

After a 2-month hiatus (bloops) the Modern CSS newsletter will be dropping an epic issue tomorrow 👀

If you haven't kept on the latest in news lately, this is the issue to watch out for!

https://moderncss.dev/newsletter

jan_j, to CSS
@jan_j@chaos.social avatar
sarajw, to CSS
@sarajw@front-end.social avatar
potatomeow, to CSS
@potatomeow@fosstodon.org avatar

it seems ascii art renders differently on different browser fonts, kinda breaks the graphics... looks like isn't as simple as i thought

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