3 ms·
I recently implemented layers on my site https://daniel.do/ https://daniel.do/ and honestly found it really helpful in terms of explicitly organizing specificit
by dimmke 4y ago
I recently implemented layers on my site https://daniel.do/ https://daniel.do/ and honestly found it really helpful in terms of explicitly organizing specificity.
It also gives you a much clearer idea of where in your styling stack something is coming from.
> Container queries
Have you ever built a piece of functionality that goes on pages you don't control? For instance, I built software that displayed a map on people's pages. but I don't know the width of the map itself. They could be displaying it on the full width of their page or in a container. Media queries don't work in this scenario. Making the map correctly responsive forced me to use JavaScript to get the element's width.
The other solution people have for this is iframes, which suck too.
Just because you don't have a need for something doesn't mean nobody does.
- willio58 4y agoI’m building a CMS and container queries will make the components I build sooo much better.