I found https://buildexcellentwebsit.es extremely insightful and inspiring! It pushed me to finally completely restructure my personal website’s #CSS, after many years of mess.
Unfortunately, though, I find the massive use of all those calc() and clamp() functions to be quite heavy in terms of performance… #Lighthouse gave the website a very bad performance score (see screenshot). It even seems that while scrolling the page it lags (😳) even if it’s super simple and built with pure #HTML and CSS!
Do you have any ideas or suggestions? 🤔
Thank you so much for all the interesting things you share! ❤️🚀
(The current unstable development version of my website is at https://dev.tommi.space/, I am using the homepage as reference)
I’ve browsed several online grid generators and watched several videos, I have yet to find a solution for a grid with items that have a 1/1 aspect ratio image, & featured cards that span multiple columns, AND be responsive w/o media queries.
With the featured card that spans 2 or 3, inevitably end up with squished card (see pic) on mobile.
…it looks like Kevin has already solved why this is happening at small sizes and he added media queries to fix it (column span forces multiple columns @ 28min mark), but as we make our layouts more adaptable and less reliant on queries, I'm curious to see if it can be solved:
…And just to round out the scenario, it looks like some of the image alignment can be simplified using the recently supported #subgrid of CSS (like four months ago!).
If you ever feel lost in the #CSS weeds, wrestling with the cascade, or you just want to improve your workflow with modern, efficient, and maintainable stylesheets, then this workshop with @mia is for you!
Cascading Style Systems: Resilient & Maintainable CSS
Mon & Tue, Feb 26 – Mar 12, 2024
Hosted by @smashingconf
If there's native CSS masonry support in browsers, it would look like this. Only Safari Technology Preview supports it now https://caniuse.com/?search=masonry
Phanpy site, showing grid of media posts from #PixelArt hashtag timeline from mastodon.social. This time it's rendered with masonry layout, which also can auto-adjust the number of columns as the viewport width is resized.
Challenging #css question for folks. I have a grid with a header and content, the content is scrollable. I need to add padding that's equal to the height of the header to the content. I need it on the first render as well. I feel like I saw some #CSSGrid hackery that allowed something like this, but curious if #frontend folks might have any ideas.
A grid view was my first goal for https://schizo.social. #Mastodon clients all have so much dead-space, and I have wide screens so I want the content to fill them. I use social media for novelty, and without an algorithm it takes a LOT of scrolling to find anything interesting in the federated feed.
But the content of statuses varies a lot, so using a #CSS#Grid to achieve it leaves wide gaps in the rows. The only solution for that is to truncate the content with max-heights (there's a #masonry mode for #CSSGrid but it's only supported by #firefox and then only with an about:config flag).
So I went with #columns instead which are widely supported and achieve the masonry effect. The problem with those is that content is laid out chronologically down the #column, not across the rows.
It is only implemented in Firefox (behind a flag) and #Safari 17 (Technical Preview) at the moment, though (one more reason to ditch Chr**e and Ed*e if you ask me).
I've built a #transpiler in #Rust, compiled it to #WASM and integrated it into a #Vue app! :awesome:
It's called selecuery.✨
It can transpile X++ select statements into query expressions. If you think "X++" is a typo and you don't have any idea of what I'm talking about, don't worry.😄
Have a look at the video below.
This project is dear to my heart! ❤️ I've started it 2019 for learning #RustLang.
I think, I've been transpiled during this project as well.🤪
Look at this - there is no #JavaScript involved in those animations whatsoever (except for adding the CSS class that does the animation).
So beautiful!😍
I've struggled quite a bit with the following:
use different delay values for the item's scale animation, but do not delay the scale when hovered. The solution has been to wrap the item into an additional element and animate those when hovered. 💡
📣 CSS in Depth, 2nd edition, is officially underway! 📖
This will include tons of the improvements CSS has seen in the past five years, along with several chapters taking a deep look at the latest/upcoming tech for code organization (Goodbye, BEM!)