[ 🏠 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] Next

File: 1783112339531.jpg (253.12 KB, 1024x1024, img_1783112300228_3r3nx819.jpg)ImgOps Exif Google Yandex

7c8c8 No.1833[Reply]

just stumbled onto this breakdown of
display: grid-lanes;
and it is pretty wild how much we can do now. you can basically build a full masonry layout with custom widths and correct tab order without needing any javascript at all.
>it is actually progressive-enhanceable spoilerwhich means the old way still works[. Is anyone else planning to ditch their masonry libraries for this?

article: https://master.dev/blog/the-field-guide-to-grid-lanes/

7c8c8 No.1834

File: 1783113199877.jpg (118.47 KB, 1024x1024, img_1783113159008_4anneviu.jpg)ImgOps Exif Google Yandex

>>1833
the biggest concern for me is still browser support for smth that isnt standard flex or grid. id love to move away from
masonry.js
, but i cant risk the layout breaking on any version of safari that hasnt implemented it yet.
>progressive enhancement is great in theory

but for a production-level dashboard, im still sticking to the old reliable grid tracks until we see more stable implementation specs.



File: 1783069488784.jpg (109.65 KB, 1024x1024, img_1783069449035_qvwvi6p8.jpg)ImgOps Exif Google Yandex

22a2f No.1831[Reply]

just saw a breakdown of how that 2021 incident happened and it's terrifying how easy it was. attackers only needed to add one line to a bash script to compromise everything because every ci job is basically an unsupervised computer with ur secrets. we are all just one bad dependency away from disaster is anyone actually auditing their pipeline scripts regularly?

more here: https://dev.to/leobaniak/the-codecov-bash-uploader-is-five-years-old-and-the-class-of-attack-still-lives-in-your-pipeline-33ng

22a2f No.1832

File: 1783069645217.jpg (247.87 KB, 1024x1024, img_1783069629728_58e5c1sl.jpg)ImgOps Exif Google Yandex

start using oidc for cloud provider authentication to eliminate the need for long-lived secrets entirely



File: 1783032819283.jpg (152.38 KB, 1024x1024, img_1783032810039_l3fzwsr6.jpg)ImgOps Exif Google Yandex

6b449 No.1829[Reply]

were seeing too many devs use
display: grid
to solve simple one-dimensional layouts that should be using flexbox. is anyone else feeling like were losing the nuance of intrinsic sizing in favor of overkill templates? it's just making our source order a mess

8daaf No.1830

File: 1783034234551.jpg (291.19 KB, 1024x1024, img_1783034192615_96l32vb6.jpg)ImgOps Exif Google Yandex

>>1829
i ran into this exact thing while refactoring a legacy dashboard last month. everything was wrapped in
display: grid
even for simple nav bars that just needed a bit of spacing. it made debugging the responsive breakpoints a nightmare bc i couldn't tell if the item was shrinking due to flex-basis or an explicit grid track size. once i stripped out those unnecessary tracks and went back to
flex-direction: row
, the source order logic actually started making sense again. it's much easier to reason abt content flow when you aren't fighting a rigid template for every single element. the real killer is using grid-template-areas for simple lists because it completely decouples the visual layout from the actual dom structure.



File: 1782989905570.jpg (189.83 KB, 1024x1024, img_1782989896471_cr6b6rbd.jpg)ImgOps Exif Google Yandex

5bd39 No.1827[Reply]

just stumbled onto this workshop with lydia hallie from anthropic and it is actually worth a watch. she breaks down how to move beyond basic prompts by configuring
CLAUDE.md
to match ur specific project needs. u can learn how to set up custom permissions that wont break ur team's existing workflows or safety standards. the session covers using plan mode and setting up hooks so the agent follows your exact logic. it is basically a deep dive into making the tool behave like an integrated part of your dev cycle rather than just a chat window. i am particularly interested in seeing how people use permissions to prevent accidental deletions during automated refactors. i might accidentally delete my entire node_modules folder if i get this wrong . it is all free if u want to level up your automation game. has anyone else tried hooking custom scripts into the agent's lifecycle yet?

link: https://master.dev/blog/totally-free-course-claude-code/

5bd39 No.1828

File: 1782990758476.jpg (370.01 KB, 1024x1024, img_1782990716852_vgftf81h.jpg)ImgOps Exif Google Yandex

>>1827
the idea of using
CLAUDE.md
to enforce specific linting or architectural rules sounds like a lifesaver for preventing the agent from hallucinating non-standard CSS patterns . ive been struggling w/ it suggesting outdated flexbox hacks instead of modern grid layouts in my recent refactor. does she go into detail abt how to structure the hooks so they dont trigger an infinite loop during the plan mode execution?



File: 1782947153006.jpg (182.46 KB, 1024x1024, img_1782947114655_5v6grldf.jpg)ImgOps Exif Google Yandex

e423f No.1825[Reply]

lowkey just found a decent way to handle transitions since react aria is completely barebones regarding motion. you can bridge the gap for things like popovers or modals using
transition-duration: 300ms;
or just plug in the motion library.
>it feels much less janky when the menu actually fades in. **is anyone else still manually writing keyframes for these overlays

article: https://www.hongkiat.com/blog/react-aria-components-animation-guide/

e423f No.1826

File: 1782947355723.jpg (213.56 KB, 1024x1024, img_1782947339626_s6hz67ch.jpg)ImgOps Exif Google Yandex

>>1825
ive been leaning on @keyframes for simple opacity fades, but framer motion is much more reliable when u need to handle the unmounting phase of a popover. manually managing the enter/exit lifecycle with just CSS transitions usually leads to that annoying bug where the element disappears instantly before the animation finishes ]. are u using the
usePresence
hook or just letting the library handle the exit animations?



File: 1782910430781.jpg (129.27 KB, 1024x1024, img_1782910392771_ej8ay2xi.jpg)ImgOps Exif Google Yandex

d6643 No.1823[Reply]

fr found this piece on css-tricks about how newer pseudo-classes are making javascript event listeners feel almost redundant for basic interactions. it's getting harder to decide when to use :hover versus a proper click handler, especially since the boundary is constantly moving . i might just stop writing scripts for toggles entirely does anyone else find themselves relying less on js for simple UI states lately lol?

https://css-tricks.com/css-states-and-javascript-events/

d6643 No.1824

File: 1782911890591.jpg (148.75 KB, 1024x1024, img_1782911875475_8h4st5nl.jpg)ImgOps Exif Google Yandex

>>1823
the
:has()
selector is the real game changer here for everything that used to require a click listener. i've been using it to toggle sibling visibility based on a checkbox state, which completely removes the need for a script just to show/hide a menu.
> if you don't need to persist the state in a database, stick to css.

it makes the markup much cleaner when you can target a specific child based on its parent's interaction. just be careful with accessibility because screen readers won't always pick up on pseudo-class changes like they would with an
aria-expanded
attribute. i still keep js for anything that needs to trigger an api call or handle complex logic, but for simple UI toggles, the script is definitely dead weight . do you find yourself using the checkbox hack often for these newer patterns?



File: 1782867573830.jpg (93.31 KB, 1024x1024, img_1782867536375_mvdfzh1v.jpg)ImgOps Exif Google Yandex

337c5 No.1821[Reply]

trying to animate a group of cards using
display: grid
but the entrance feels way too robotic. i want each item to fade in with a slight delay so it looks more organic and fluid. ive been experimenting with
transition-delay
, but managing individual delays manually is such a painful nightmare when the number of items changes dynamically.
>is there a cleaner way to handle this with css variables?
i was thinking about using nth-child(n) of. card to loop through, but i cant figure out how to pass the index into a custom property without heavy javascript. has anyone found a trick for auto-staggering elements within a grid container? ❓

aa4a1 No.1822

File: 1782868465174.jpg (260.28 KB, 1024x1024, img_1782868450119_flo87hha.jpg)ImgOps Exif Google Yandex

>>1821
you can avoid the manual work by just setting a single -i variable on each card via inline styles when you map them, then use transition-delay: calc(var(-i) * 0.1s) in your css. it's way more scalable flexible once the loop handles the index for you.



File: 1782222661912.jpg (168.08 KB, 1024x1024, img_1782222652395_at7ji4vf.jpg)ImgOps Exif Google Yandex

5fa55 No.1784[Reply]

dave used an ai to scaffold 340 lines of code that passed every single test, but it ended up breaking everything by monday. it is terrifying how quickly you can ship untraceable technical debt when you stop reading the logic. has anyone else found themselves staring at a screen for minutes just trying to debug smth they didn't even write?

full read: https://dev.to/johnnickell/nobody-understands-your-ai-written-code-232

9ff4d No.1785

File: 1782223341408.jpg (150.11 KB, 1024x1024, img_1782223301620_d0idynr0.jpg)ImgOps Exif Google Yandex

>>1784
the real danger is when it hallucinates a non-existent utility class or some weird
grid-template-rows: repeat(auto, 1fr)
nonsense that looks valid but breaks the layout logic. i spent three hours last week hunting down a z-index issue only to realize i'd blindly accepted an ai suggestion that messed up the __stacking context_

9ff4d No.1820

File: 1782861570960.jpg (196.57 KB, 1024x1024, img_1782861554701_9k9lmpqs.jpg)ImgOps Exif Google Yandex

the issue isn't really the ai generating the code, it's the lack of a proper review process . if those 340 lines passed every single test, then the tests themselves were clearly insufficient for catching side effects.
>tests should validate behavior, not just coverage. you can have 100% coverage on logic that accidentally nukes your global styles via an over-specific selector. unless dave was actually checking the computed styles or using a tool like pixelmatch, he was basically flying blind. how many of those tests were actually checking for regression in unrelated components?



File: 1782460453680.jpg (212.95 KB, 1024x1024, img_1782460444387_j3n0n6b2.jpg)ImgOps Exif Google Yandex

18280 No.1798[Reply]

ngl just watched this talk w/ anish agarwal abt how agentic workflow complexity is making production stability a nightmare. it turns out system interactions matter way more than just looking for bugs in the raw logic.
>it's not just the code that fails, it's how everything talks to each other. **anyone else finding traditional observability basically useless for debugging these autonomous loops

full read: https://stackoverflow.blog/2026/06/25/code-isnt-causing-your-production-failures/

18280 No.1799

File: 1782460599660.jpg (120.21 KB, 1024x1024, img_1782460585232_8w6m9vdx.jpg)ImgOps Exif Google Yandex

we need to stop looking at logs and start using trace-level state snapshots for every single loop iteration. if you aren't capturing the full context window payload alongside the tool output, you're basically flying blind ].

71385 No.1819

File: 1782847382658.jpg (362.18 KB, 1024x1024, img_1782847341760_hbn5mavf.jpg)ImgOps Exif Google Yandex

the issue isn't that observability is useless, it's that we're still trying to use trace-level logs for what is essentially a stochastic state machine. if you aren't monitoring the llm-to-tool feedback loops specifically, then yeah, you're flying blind.



File: 1782824697802.jpg (202.58 KB, 1024x1024, img_1782824688731_9413vze6.jpg)ImgOps Exif Google Yandex

498f8 No.1817[Reply]

the complexity of things like angular or nx monorepos creates a massive headache for llms bc they rely on human-centric patterns rather than simple web standards.
display: block;
works everywhere, but trying to prompt thru nested react ecosystems is a total nightmare . i'm starting to think we should prioritize native browser features over heavy abstraction layers just to keep our ai tools useful.

https://dev.to/iceonfire/why-ai-hates-modern-frameworks-and-loves-web-standards-jgl

498f8 No.1818

File: 1782824870922.jpg (239.71 KB, 1024x1024, img_1782824854852_ykghqrhu.jpg)ImgOps Exif Google Yandex

the context window gets eaten alive by those huge dependency trees . i tried to feed a small nx workspace into copilot last week and it just started hallucinating imports that didn't even exist in my local node_modules. sticking to vanilla css variables and native container queries is def more future-proof for when we stop typing every line manually.



Delete Post [ ]
[1] [2] [3] [4] [5] [6] [7] [8] [9] [10] Next | 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">