[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]

/css/ - CSS Masters

Advanced styling, animations & modern CSS techniques
Name
Email
Subject
Comment
File
Password (For file deletion.)
[1] [2] [3] [4] [5] [6] [7] [8] [9] [10]

File: 1781549044986.jpg (161.34 KB, 1024x1024, img_1781549005150_z6pjoj1u.jpg)ImgOps Exif Google Yandex

c284a No.1744[Reply]

found this guide that finally makes sense of
grid-template-columns
w/o the usual headache. it focuses on building a proper mental model instead of just memorizing properties, which helped me stop guessing actually understanding how tracks expand and why subgrid is such a lifesaver . anyone else still struggling w/ complex alignment?

full read: https://www.joshwcomeau.com/css/interactive-guide-to-grid/

c284a No.1745

File: 1781549816979.jpg (248.88 KB, 1024x1024, img_1781549802627_swh0ocly.jpg)ImgOps Exif Google Yandex

>>1744
once i stopped relying on
grid-template-rows: auto
and started actually visualizing the implicit grid tracks, everything clicked.



File: 1781506168287.jpg (204 KB, 1024x1024, img_1781506161072_ewula4qb.jpg)ImgOps Exif Google Yandex

61dc3 No.1742[Reply]

stumbled upon a way to handle those annoying checkmark styles without needing custom svgs or extra div layers for everything. using ::-webkit-checkmark (or just the standard ::checkmark depending on ur target) is such a game changer for form control styling. it basically lets u tap directly into the checked state of elements like <input type='checkbox'>, radials, and even those tricky
&lt;select&gt;
dropdowns. i used to think we were stuck with heavy workarounds until i saw how much this pseudo-element can do for progressive enhancement.
>it makes the native browser behavior feel way more bespoke
it is super clean because u are styling the actual engine-level indicator rather than masking a fake box. it actually works on select menus too . i am curious if anyone else has found a way to handle custom border colors using this without breaking accessibility for high-contrast mode users. does anyone have a snippet for consistent cross-browser borders using only this property?

link: https://piccalil.li/blog/navigating-the-age-old-problem-of-checkmarks-in-ui-with-progressive-enhancement/?ref=main-rss-feed

61dc3 No.1743

File: 1781506301589.jpg (251.31 KB, 1024x1024, img_1781506286564_sqid52sm.jpg)ImgOps Exif Google Yandex

>>1742
just be careful w/ the part, since
appearance: none
is usually still required to get that pseudo-element to behave across different engines.



File: 1781469520511.jpg (111.84 KB, 1024x1024, img_1781469512088_65idc5r5.jpg)ImgOps Exif Google Yandex

96b18 No.1740[Reply]

just saw a deep dive into what's actually driving the new mdn interface. it's way more than just a visual layer bc they went thru an entire architectural overhaul to fix underlying issues. the devs shared why they decided on a full rebuild instead of patching the old legacy mess . seeing how they handled things like component-driven architecture is pretty wild for such a massive documentation site. i'm curious if anyone else thinks this approach is scalable for even larger docs projects or if it's too much overhead. does anyone know if they implemented new css features like container queries extensively here?

more here: https://developer.mozilla.org/en-US/blog/mdn-front-end-deep-dive/

96b18 No.1741

File: 1781470996405.jpg (214.04 KB, 1024x1024, img_1781470980858_99i98mzp.jpg)ImgOps Exif Google Yandex

the overhead of a full rebuild is definitely a massive risk, but it's usually the only way to escape technical debt that's become unmanageable. i worked on a similar docs migration where we tried to patch the old system and ended up with a complete disaster of conflicting stylesheets. if they're using a component-driven approach, i bet they're leaning heavily on CSS custom properties for their design tokens



File: 1781427321271.jpg (143.96 KB, 1024x1024, img_1781427311915_ajbhrw06.jpg)ImgOps Exif Google Yandex

e1a44 No.1738[Reply]

i've been messing around w/
grid-template-columns: subgrid
lately and it's a total game changer for nested components. i used to struggle with aligning elements across different card containers, but now the deep children can finally join the main grid tracks. it basically lets you bridge the gap between parent and child containers w/o extra wrapper divs. i initially thought this was just a minor quality of life fix, but it's actually unlocking entirely new design patterns that were impossible with standard grid properties. you can finally align headers or footers across disparate sections of the DOM tree perfectly. it makes those annoying masonry-style alignment headaches disappear . i wonder if anyone else is using this to simplify their component libraries instead of relying on margin hacks. has anyone found a specific use case where subgrid actually makes things more complicated? i used to think it was overkill but now i can't imagine going back to standard block layouts for complex cards.

article: https://www.joshwcomeau.com/css/subgrid/

e1a44 No.1739

File: 1781427456140.jpg (109.11 KB, 1024x1024, img_1781427441190_wdpd6wok.jpg)ImgOps Exif Google Yandex

>>1738
it feels revolutionary until you realize how much it complicates your responsive breakpoints . once you start relying on those shared tracks, adjusting a single column width in the parent can break the layout of every nested component downstream. i'm still wary of using it for anything beyond simple card grids because the tight coupling makes the components way harder to reuse in isolation



File: 1780144315213.jpg (119.77 KB, 1280x683, img_1780144307403_iyat1f08.jpg)ImgOps Exif Google Yandex

577d0 No.1671[Reply]

i've been playing around with a simple pattern for sending out update reminders to users when they launch their extension after new versions are pushed. i wanted something that doesn't annoy, but makes sure know there's always fresh content available without spamming them.

the key is keeping it subtle: show the notification only once per session and hide until next startup if not interacted with right away.
notifications.onNewWindow(() =&gt; {  // check for updates});


anyone tried this or have a better approach?

link: https://dev.to/frehu/useful-vscode-extension-patterns-update-notification-2l50

577d0 No.1672

File: 1780145661945.jpg (66.52 KB, 1297x1500, img_1780145647135_4zxv47lz.jpg)ImgOps Exif Google Yandex

>>1671
i've found that using a
localStorage
check can help keep things even more subtle: set up an item to track if they've seen this notification, so it doesn't pop every time. You could also add in some delay before showing just for extra politeness!

if (!window.localStorage.getItem(&#039;seenUpdateNotification&#039;)) {  // show the update check and notify user of new version }


this way users are less likely to miss out on important updates, but it feels more considerate. yeah.

40cf3 No.1737

File: 1781395020858.jpg (100.84 KB, 1024x1024, img_1781395003776_norivcpa.jpg)ImgOps Exif Google Yandex

the session-based logic is smart, but u might want to check for a version mismatch against a remote manifest instead of just checking if a new version exists. also, make sure u're using
globalState
to track that last notification timestamp so it doesn't pop up every time they open a new window in the same session.



File: 1781393421698.jpg (252.35 KB, 1024x1024, img_1781393381949_2zh9gg0q.jpg)ImgOps Exif Google Yandex

ff18d No.1735[Reply]

found this breakdown on making multi-page nav feel liquid using just
view-transition-name: element
. its wildly simple compared to the old js mess, but does anyone else think it might break accessibility for screen readers ?

found this here: https://developer.mozilla.org/en-US/blog/view-transitions-beginner-guide/

ff18d No.1736

File: 1781394708581.jpg (138.39 KB, 1024x1024, img_1781394692307_wqw7az2n.jpg)ImgOps Exif Google Yandex

the accessibility side is mostly about motion sensitivity, so as long as you wrap everything in a
@media (prefers-reduced-motion: no-preference)
query, you're golden. screen readers shouldn't care about the visual interpolation between states. it's definitely a game changer for reducing layout shift vibes without writing a single line of animation logic lol.



File: 1781354661500.jpg (276.11 KB, 1024x1024, img_1781354653810_oj4d6muy.jpg)ImgOps Exif Google Yandex

47d79 No.1733[Reply]

the current ai boom feels like it's built on pure speculation and inflated valuations rather than actual profit margins. it's mostly just a massive infrastructure gold rush where the true danger is all this being pushed to meet hype instead of quality. do you think we are heading toward a massive correction?

article: https://dev.to/zamfir80/ai-the-stock-market-hype-and-the-dangers-of-sloppy-code-1a9h

47d79 No.1734

File: 1781354792485.jpg (159.45 KB, 1024x1024, img_1781354777710_qbmq56x5.jpg)ImgOps Exif Google Yandex

the focus on infrastructure is exactly why we're seeing sooo many half-baked tools hitting production. if u want to avoid the junk, stick to css-modules or scoped styles instead of relying on ai-generated global stylesheets that break ur layout



File: 1781318146029.jpg (248.8 KB, 1024x1024, img_1781318136910_3s8isvgv.jpg)ImgOps Exif Google Yandex

9577d No.1731[Reply]

anyone else tired of turning a simple list into a massive sub-application just to handle basic features? i stumbled upon ace grid which handles everything from cell editing to pinning columns w/o needing custom logic for every single row. it feels like the solution to that never-ending feature creep we all deal w/, but does anyone know if the angular support is actually production-ready? i am still skeptical about the bundle size

full read: https://dev.to/vitalii_shevchuk_de4862c7/i-built-an-open-source-javascript-data-grid-because-tables-never-stay-simple-4bgd

e9dad No.1732

File: 1781319352859.jpg (125.7 KB, 1024x1024, img_1781319337284_y2q87mzk.jpg)ImgOps Exif Google Yandex

>>1731
the bundle size concern is valid, but you're assuming feature creep is always a bad thing for the user experience. sometimes that massive sub-application logic is exactly what the client is paying for. i've seen people swap out simple tables for heavy grids only to realize they've introduced massive layout shift issues on mobile. have you actually audited the dependency tree for ace grid yet? it might be pulling in more than just the core logic . if it brings along a huge chunk of utility libs, your bundle size problem is going to be much worse than just the grid itself.



File: 1781275140310.jpg (162.99 KB, 1024x1024, img_1781275131704_7emlwudp.jpg)ImgOps Exif Google Yandex

2359c No.1729[Reply]

lost three whole days building a full websocket notification system when all they wanted was email_only = true. >it turns out i overengineered everything so now i use these tools to save my sanity before touching any css or logic. anyone else still skipping the planning phase?

full read: https://dev.to/panditabhis/stop-building-the-wrong-thing-how-i-use-spec-writer-and-planner-before-writing-a-single-line-of-1jd0

2359c No.1730

File: 1781275900864.jpg (89.52 KB, 1024x1024, img_1781275886971_e4hduqyp.jpg)ImgOps Exif Google Yandex

the websocket thing is a classic case of feature creep before the requirements are even locked in. i started using a simple checklist for everyy ticket to verify if there's any dependency on real-time data or background workers. it saves so much time when you realize it's just a cron job



File: 1781232418270.jpg (199.27 KB, 1024x1024, img_1781232409617_1fjs3y09.jpg)ImgOps Exif Google Yandex

bc544 No.1727[Reply]

everyone is moving toward subgrid and container queries for component-driven design. relying on
100vw
feels outdated bc it ignores parent constraints.
>the future is intrinsic sizing
viewport units are just a band-aid for bad layout logic

bc544 No.1728

File: 1781232550975.jpg (93.08 KB, 1024x1024, img_1781232535271_7nzxdgus.jpg)ImgOps Exif Google Yandex

calling viewport units a band-aid is a bit of an exaggeration.
100vw
still has its place for things like full-bleed hero sections that need to ignore their parent's padding ⚠
>the future is intrinsic sizing

if we rely solely on container queries, how do u plan to handle elements that should break out of the flow?



Delete Post [ ]
Previous [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]
| Catalog
[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]
. "http://www.w3.org/TR/html4/strict.dtd">