home.social

#flexbox — Public Fediverse posts

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

fetched live
  1. Fun with #CSS, this time: flex and the CSS "order" property. How nice is that?

    I have a list of <div>s, think of something like a TODO list. If an item is marked, I want it shown towards the end of the list. In former times we would have re-arranged the DOM order. This time I add the "marked" class to the div and

    .marked {
    order: 1;
    }

    The default "order" value is 0, so all ".marked" items follow all non-marked items without fumbling with the DOM.

    #flex #flexbox

  2. Waaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa, 😠

    I want all buttons by default to have

    min-width: 40px;

    for fat fingers on mobiles. If the button text is longer, I assumed the larger width prevails. But no, if a the containing flex gets narrow, the button goes down to 40px.

    Some sloppers say

    min-width: max(40px, min-content);

    which sounds logical, but is "invalid property" (firefox, chrome).

    Ideas?

    #javascript #css #flexbox #button

  3. Warum ist die @jadyn und @nominom eigentlich dadrüber verwirrt das ich eine Auto #Flexbox habe neben der „Büro“/Hackspace und Zuhause Flexbox?

    #Network #Internet #BGP #SinglemodeUltras

  4. FlexBox is an experimental Jetpack Compose container that lays out items in a single direction, dynamically resizing, wrapping, and aligning them to optimally fill the available space. We just launched new documentation for this feature last week:

    developer.android.com/develop/

    #androidDev #JetpackCompose #FlexBox

  5. Пример оптимизации интерфейса динамического списка в мобильном приложении, сделанном на 1С при помощи HTML + CSS

    Добрый день! Хочу привести пример небольшой оптимизации интерфейса (frontend) мобильного приложения, сделанного на 1С. Разницу вы сами можете проверить, скачав приложение и переключив флаг в настройках "Оформление HTML".

    habr.com/ru/articles/1002726/

    # #мобильное_приложение #html #css #flexbox #frontend #backend

  6. @bazkie I'm not sure how ironic your comment is meant to be (it would be justified if it were :-)), but this has been possible with #flexbox since 2015. It's even easier with #grid, though. #CSS is getting so nice now, that I'm tempted to do vanilla/raw CSS on the next big project. Haven't done that in decades.

  7. So I saw a demo in the @codepen Spark and I liked the idea, but it was too JS-heavy for my taste, plus I would have preferred the rotation animations to be "hinged" around the top/ bottom edge depending on direction.

    So I did it with pure #CSS on scroll codepen.io/thebabydino/pen/JoK

    cc @bramus

    #cssScrollAnimation #scrollEffect #code #cssTransforms #cssTransform #css3D #3D #coding #frontend #cssLayout #web #dev #webDev #webDevelopment #cssGrid #cssFlex #flexbox #cssVariables #cssTransition

  8. 𝗖𝗦𝗦 𝗟𝗮𝘆𝗼𝘂𝘁 𝗚𝗲𝗻𝗲𝗿𝗮𝘁𝗼𝗿:

    #CSS #Grid #Flexbox #Template #Layout

    thewhale.cc/posts/css-layout-g

    Create flexible and responsive designs in no time using these CSS grid and flexbox-based templates.

  9. #flexbox help, my brain can't parse this:

    Two columns; overall height should be determined by the left-hand column. Right hand column contains two items stacked vertically. The bottom one is often quite long, but it should *scroll* rather than extend beyond the bottom of the left column content.

    Can anyone point me at the combo of magical flexbox words to do that?

  10. I thought the bright and friendly #blog design was fine, which is why it went online. But deep down, something else seemed to disagree, and it was becoming increasingly apparent. So I let that guide me to see what the end result would be.

    Even simpler #HTML and #CSS, without #grid or #flexbox. Single-column again, but above all, dark. I like the dark mode, and it actually fits the orientation much better.

    No, it's not online yet 😉 First, there are over 200 files to edit 🥵

  11. Das helle und freundliche #Blog-Design fand ich in Ordnung, weshalb es ja auch online ging. Doch tief in mir war da wohl etwas anderer Meinung und hat sich immer stärker ins Bewusstsein gedrängt. Also habe ich mich davon leiten lassen, um zu sehen, was am Ende herauskommt.

    Noch simpleres #HTML und #css, ohne #grid oder #flexbox. Wieder einspaltig, doch vor allem dunkel. Mir gefällt der Dark-Mode und passt im Grunde auch viel besser zur Ausrichtung.

    Nein, ist noch nicht online 😉 Erst einmal gilt es, über 200 Dateien zu bearbeiten 🥵

  12. On the article referenced in mastodon.design/@julieblanc/11, @julieblanc quoted a #TAG commentary
    "Overall, we think #Masonry, #Grid, and wrapping #Flexbox should be incorporated into a unified set of properties. #Chrome’s [New Masonry Layout] proposal splits apart property sets too eagerly, but even the #WebKit [using CSS Grid] proposal seems to miss a chance to develop more-general properties. (…) #CSS currently has 3 layout modes (…): Grid, Multicol, and wrapping Flexbox. This is already causing a lot of author confusion, and Masonry attempts to add a 4th mode. As a general principle, having vastly different ways to accomplish slightly different things is a usability #antipattern. We urge the [CSS] W[orking] G[group] to explore ways to unify these so that authors can port more knowledge from one to the other (even if they are implemented as separate code paths internally). (Issue #1003 on w3ctag/design-reviews, comment on Nov 20, 2024, by #JeffreyYasskin /@jyasskin)

  13. I still like to go to #YouTube for #tutorials. No idea why I didn't do that for #css #grid and #flexbox until now. I made up for this omission yesterday. Oh dear, the result was devastating. I'm obviously lucky that my tinkering worked. This delays the restart of the blog even further, because of course I can't leave it at that.

  14. Für #Tutorials steuere ich nach wie vor gerne #YouTube an. Keine Ahnung, warum ich das für #css #grid und #flexbox bisher nicht machte. Das Versäumnis habe ich gestern nachgeholt. Oje, das Ergebnis war niederschmetternd. Ich habe offenbar Glück, dass mein Gebastel funktioniert. Damit verzögert sich der Neustart des Blogs noch weiter, denn das kann ich natürlich nicht so stehen lassen.