by tambourine_man · 8y ago · 0 comments
Also, from a previous comment of mine:
“Problem is, defining quantity in the class name doesn’t work. .m10 may be fine for desktop but not for mobile. Then you’ll have media queries which define .m10 as margin: 5px or something, which is nuts. You could go for unspecified .mSmall etc, but in real life, things tend to be more specific and messier, in my experience.”
You can easily do something like 'w-10 sm:w-5', and it'll add a media-query based class.
The solution is pointed above, even more classes for responsiveness.
I'm experimenting with using 'em' and % everywhere, base font size with 'vmin' and scaling font size with %. Works pretty well for scroll-less apps.
Don't go overboard, but a little offset can go a long way