home.social

#mediaqueries — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #mediaqueries, aggregated by home.social.

  1. Les media queries CSS sont devenues très complètes et vont bien au delà de la détection de la largeur du navigateur.

    🔗 frontendmasters.com/blog/learn

    #CSS #mediaqueries

  2. ✍️ Le media queries in CSS
    Come applicare "if statements" al tuo foglio di stile CSS per adeguarlo a qualsiasi condizione...

    👉 selectallfromdual.com/blog/1575

    #controlloif #css #mediaqueries

  3. Worked on the Lunatics release page CSS a little.

    I had noticed that the page works very poorly on e-ink devices like my InkPad 3 Color reader's browser, because of the animated background effect, which I'm still pretty attached to.

    It moves pretty slowly, but it still created updates with constant flickering as my e-reader tried to keep up.

    Of course, the page is really designed to distribute or stream video, so it's normally intended for full-motion video browsers. The video is never going to work right on an e-reader.

    But there's also credits and other text information on the site.

    So, I looked up methods to fix this with CSS media queries, and I think it's fixed now.

    It now only animates if the browser reports media type "screen" and feature "update: fast".

    And this correctly suppresses animation now on my InkPad 3 Color e-reader. If you happen to have a similar device or other oddball browser, I'd be interested if the page is working for you.

    Still working on honoring other parameters like "prefers-reduced-motion", "prefers-color-scheme", and "prefers-contrast". I would like to get those working as well.

    Ultimately, I may add a Javascript button to change the behavior manually, but the page currently is HTML and CSS only to keep it lighter weight.

    I did also test it in a text-only browser, w3m, where it looks pretty correct. Haven't tried other ones.
    #LunaticsProject #WebDesign #CSS #MediaQueries #Testing

  4. Putting images on a webpage (I mean, optimized ones, with pictures, sources, sizes, srcsets, and all the tralala) is a real pain. Beyond the fact that I find perfectly weird to write #mediaqueries in the #HTML source, some #CSS sizing strategies require a level in mathematics that I'm far from having...

  5. I guess you know that the new range syntax allows media queries to be more concise. But IMO this isn’t even the best part. Let me explain:
    cssence.com/2024/superior-rang

    Also, if you ever wanted to do music selection based on viewport size 🤨, this article is for you.

    #CSS #Viewport #MediaQueries

  6. Safari *is* the new IE

    > If you want your breakpoints to scale along with the user’s font size, you should favor ems instead — but keep in mind you won’t get this benefit Safari unless the user has their minimum font size setting configured.

    Re-evaluating px vs em in Media Queries

    keithjgrant.com/posts/2023/05/

    #responsiveWebDesign #mediaQueries #safari #browser #web #webDev #CSS #FrontEnd #fonts #programming #webDesign #iOS #AAPL #Apple #mac #safariIsTheNewIE