material-ui icon indicating copy to clipboard operation
material-ui copied to clipboard

Rem

Open whodidthis opened this issue 11 years ago • 6 comments

Not sure if brought up before but I was thinking using rem instead of pixels might be closer to android's dp sizing. Then you could use media query break points, set up a suitable font size at root and everything would scale. It's not going to be as accurate as android's dp but would help a lot. Current px values would work as fallback.

whodidthis avatar Jan 13 '15 00:01 whodidthis

I definitely agree with this suggestion. I prefer thinking in relative sizes rather than in pixels, especially since responsive design became popular. A good article I read on the subject a while back: http://csswizardry.com/2011/12/measuring-and-sizing-uis-2011-style/

a1russell avatar Mar 14 '15 10:03 a1russell

I just opened a pull request for this: #433.

a1russell avatar Mar 16 '15 16:03 a1russell

@whodidthis @a1russell does #248 help?

shaurya947 avatar Nov 11 '15 22:11 shaurya947

@shaurya947 Are you asking if em is preferable to px in lieu of rem, I'd say yes; however, I would still have preferred rem. But I'm not going to re-do #433 if that's what you're asking. It was a lot of work, and it got me nothing.

a1russell avatar Nov 12 '15 01:11 a1russell

My bad @a1russell, I actually meant to link to #2039.

Sorry to hear that buddy! Let's just see where 2039 goes, and if we need to make any changes to it..

shaurya947 avatar Nov 12 '15 16:11 shaurya947

@shaurya947: Ah, okay, gotcha. Looks like #2039 is similar to what I was trying to achieve, at least for one component. I haven't looked at this project since my PR was rejected, though, so I'm not sure if it covers everything. But it does look to be a step in the right direction. Best of luck!

a1russell avatar Nov 12 '15 20:11 a1russell