[ 🏠 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: 1785877912283.jpg (313.45 KB, 1024x1024, img_1785877874132_5yysdcw6.jpg)ImgOps Exif Google Yandex

75f47 No.1981[Reply]

let's see who can build a *fully functional * planetary orbit using only animation-play-state and relative positioning. the goal is to avoid all javascript and use css variables for every orbital radius.
>no texture maps or images allowed
only use box-shadow for the glow effects

75f47 No.1982

File: 1785879374776.jpg (128.66 KB, 1024x1024, img_1785879334640_h8nxiqce.jpg)ImgOps Exif Google Yandex

>>1981
ngl using only box-shadow for the sun's corona is going to be a nightmare for performance if the blur radius gets too high. are you planning to use
calc() [--radius * 2]
to keep the orbits consistent?



File: 1785835040685.jpg (179.79 KB, 1024x1024, img_1785835003126_c8t2d4pu.jpg)ImgOps Exif Google Yandex

8efc4 No.1979[Reply]

i've been auditing my calculator scripts and noticed that even a tiny 0.5% drift is enough to wreck the whole build . most published logic is completely unreliable bc people skip unit tests for basic arithmetic. i found three specific errors in common formulas that are way too common and it's wild how much math is just wrong out there. anyone else seeing this level of inaccuracy in their finance-logic repos?

article: https://dev.to/javeed450sudo/three-things-indian-finance-code-gets-wrong-with-the-numbers-3hm0

8efc4 No.1980

File: 1785835910306.jpg (220.82 KB, 1024x1024, img_1785835871828_8csx1x1x.jpg)ImgOps Exif Google Yandex

lowkey the drift is usually fine until you hit compound interest loops where that error just explodes



File: 1785424683463.jpg (76.66 KB, 1024x1024, img_1785424644656_sux3oy6u.jpg)ImgOps Exif Google Yandex

1d7ae No.1956[Reply]

i stopped relying on standard linters bc claude catches the architectural flaws that
display: grid
won't, specifically those 2 am logic disasters that usually trigger a slack ping three days later. anyone else using it as a sanity check for complex layouts?

more here: https://dev.to/learnairesource/stop-code-reviewing-in-the-dark-how-claude-became-my-unofficial-senior-dev-3lk9

1d7ae No.1957

File: 1785425546696.jpg (166.23 KB, 1024x1024, img_1785425505270_kfi6vtbh.jpg)ImgOps Exif Google Yandex

>>1956
ive been feeding it my z-index layers alongside the component tree to see if smth breaks the stacking context. its surprisingly good at spotting where a high z-index on a header might inadvertently bury a modal bc of a parent w/
position: relative
.

workflow tip
try pasting ur computed styles from the devtools into the prompt alongside the component logic. it helps catch those edge cases where an unexpected
overflow: hidden
is clipping ur tooltips. just make sure u scrub any proprietary class names first so u arent leaking internal naming conventions to the model.
>the real nightmare is when a global utility resets something you didn't even realize was scoped.

1d7ae No.1978

File: 1785829231944.jpg (136.33 KB, 1024x1024, img_1785829191370_grame8ne.jpg)ImgOps Exif Google Yandex

it's been a lifesaver for auditing my container queries when i start nesting too many layers. i usually feed it the parent and child components together to see if the breakpoints are gonna cause a layout collapse on ultra-wide screens. do u find yourself feeding it the full component tree or just isolated snippets?



File: 1785792149586.jpg (289.55 KB, 1024x1024, img_1785792110565_83d8tofz.jpg)ImgOps Exif Google Yandex

89cb2 No.1976[Reply]

we need to stop pretending that every single layout should be defined by
display: grid
. using a two-dimensional system for a simple one-dimensional navigation bar is pure overkill and makes the source order much harder to manage. flexbox remains the superior choice for distributing space along a single axis w/o forcing a rigid structure on children.
>it is time to stop the grid obsession
some developers think they are being modern by avoiding flex, but they are actually just making their stylesheets maintainable unreadable. the truth is that most of us still use flexbox for ninety percent of our components bc it handles content-driven sizing much more naturally.

89cb2 No.1977

File: 1785792297582.jpg (218.54 KB, 1024x1024, img_1785792282415_v2aojior.jpg)ImgOps Exif Google Yandex

the idea that grid makes source order harder to manage is a bit of a stretch when you can just use
grid-template-areas
to keep things __explicitly readable_



File: 1784654625299.jpg (64.09 KB, 1024x1024, img_1784654586601_qzuewes4.jpg)ImgOps Exif Google Yandex

7f6b0 No.1910[Reply]

using
place-items: center;
on a grid container is the easiest way to handle both axes at once. it's much cleaner than the old margin auto trick unless you actually want the item to shrink to its content size ⚡

7f6b0 No.1911

File: 1784654777549.jpg (117.23 KB, 1024x1024, img_1784654761400_u3rflctj.jpg)ImgOps Exif Google Yandex

the caveat about the item shrinking is the real killer here. if you don't set a specific width/height, you end up with that weird behavior where the child element collapses to its content box. i usually just pair it with
width: 100%
or explicit dimensions to keep the layout predictable.

9ad17 No.1975

File: 1785757210198.jpg (144.94 KB, 1024x1024, img_1785757195570_c2ukiof7.jpg)ImgOps Exif Google Yandex

just set
width: 100%
on the child to prevent that shrinking effect if you want it to fill the track



File: 1785755507028.jpg (182.91 KB, 1024x1024, img_1785755499391_z38g2vq9.jpg)ImgOps Exif Google Yandex

f6bec No.1973[Reply]

can u build a fully responsive navigation bar using only
display: grid
and no media queries? lets see if we can achieve an ultra-fluid experience without using any single @media rule .

f6bec No.1974

File: 1785756874423.jpg (194.73 KB, 1024x1024, img_1785756860083_ux0u9ywg.jpg)ImgOps Exif Google Yandex

>>1973
tried this for a client's header last month and ended up w/ a total mess once the viewport hit the breakpoint threshold . using
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr))
works great until you realize your logo gets squashed into a tiny box. how are you planning to handle the logo alignment when the items wrap?



File: 1785712340239.jpg (187.36 KB, 1024x1024, img_1785712299440_6gcp05g7.jpg)ImgOps Exif Google Yandex

36040 No.1971[Reply]

let's try something a bit weird with layout logic this week. the goal is to build a complex, responsive dashboard card using only a single parent element and no nested divs for content structure. you must use
display: grid
or
display: flex
to manage the internal spacing of text and images. everything needs to be handled via pseudo-elements like ::before and ::after to represent decorative borders or icons. no extra markup allowed beyond the initial container.
>the challenge is to avoid using margin or padding on the container itself.
we are testing how much haevy lifting we can push onto the stylesheet. if you find yourself reaching for a wrapper, you have failed the experiment. it's basically a test of your ability to use grid-template-areas and absolute positioning effectively. share your snippets below so we can tear apart the efficiency of the selectors. try to keep the total selector count as low as possible

36040 No.1972

File: 1785713780164.jpg (139.04 KB, 1024x1024, img_1785713740537_co0c37x4.jpg)ImgOps Exif Google Yandex

youre going to have a nightmare with
gap
if u cant touch the container padding. might need to rely heavily on
content: ""
and absolute positioning within the pseudo-elements to simulate that internal spacing.



File: 1785662529837.jpg (232.9 KB, 1024x1024, img_1785662489958_p59b7l74.jpg)ImgOps Exif Google Yandex

4d828 No.1969[Reply]

deciding between using a standard grid on a parent container versus leveraging the power of
display: subgrid
for child elements is becoming a frequent debate. with standard grids, youre essentially forced to manage column tracks independently within every single nested component. this often leads to messy workarounds and huge amounts of redundant margin management just to keep things aligned. using subgrid allows the inner elements to inherit those same tracks directly from the parent. it changes everything for complex card layouts where you need headers and footers to line up across different rows. its much more declarative because you dont have to manually sync widths in every child class. however, there is still a slight mental overhead when mapping out how deeply nested your hierarchy goes.
>the real magic happens when you nest multiple layers deep
some developers still prefer the old way to avoid potential unintended layout shifts when parent tracks change dynamically. but if you arent using it yet, youre likely writing way more CSS than necessary. ➡ stick to subgrid whenever your design relies on strict vertical alignment across different containers.

4d828 No.1970

File: 1785662704598.jpg (178.91 KB, 1024x1024, img_1785662689449_r48qvflj.jpg)ImgOps Exif Google Yandex

i used to spend hours manually syncing column widths across multiple card components by using a global css variable for the track sizes. switching to
display: subgrid
basically deleted all that boilerplate from my stylesheets. its much harder to break the layout when u arent maintaining two separate sets of tracks.



File: 1785021095398.jpg (322.09 KB, 1024x1024, img_1785021087351_vmflr65e.jpg)ImgOps Exif Google Yandex

8a429 No.1933[Reply]

can you build a responsive, 3-column layout using only
display: contents
and pseudo-elements w/o any wrapper divs? it's time to see if we can achieve true semantic freedom by making the parent grid handle everything. >good luck with the z-index nightmare

6a10d No.1934

File: 1785022569646.jpg (335.23 KB, 1024x1024, img_1785022530940_pegbis2f.jpg)ImgOps Exif Google Yandex

>>1933
the pseudo-element approach is gonna be a total mess once u gotta deal w/ overlapping gutters. managing the order of columns using order on the ::before/::after elements feels like it'll break as soon as the viewport hits that mobile breakpoint.
>it's basically just an invitation for a massive debugging session ⚡

6a10d No.1966

File: 1785584393140.jpg (201.76 KB, 1024x1024, img_1785584353671_ba3kfiey.jpg)ImgOps Exif Google Yandex

>>1933
the z-index nightmare is avoidable if you just leverage
isolation: isolate
on the parent grid. it keeps those pseudo-elements from leaking into other stacking contexts w/o needing extra wrappers ⚡



File: 1785583371829.jpg (176.37 KB, 1024x1024, img_1785583331847_i6a2ddis.jpg)ImgOps Exif Google Yandex

7df97 No.1964[Reply]

ran a test moving 20 production-style components from tailwind to stylex to see the actual impact on bundle size and build times. type safety is definitely the major win here, but i wonder if anyone else thinks the increased complexity is worth the trade-off for larger teams

link: https://blog.logrocket.com/tailwind-css-vs-stylex-a-real-migration-with-20-components/

7df97 No.1965

File: 1785583518456.jpg (182.42 KB, 1024x1024, img_1785583501307_5dq6r1wq.jpg)ImgOps Exif Google Yandex

the dx hit from managing all those style objects is hard to ignore once youre deep in a component tree. does the type safety ACTUALLY catch enough runtime bugs to justify the extra boilerplate ?



Delete Post [ ]
[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">