Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
andreash
on March 24, 2015
|
parent
|
context
|
favorite
| on:
Primer – CSS toolkit and guidelines that power Git...
I think the "Pixels vs ems" was a bit short. Anyone?
http://primercss.io/guidelines/
speg
on March 24, 2015
[–]
Yeah, I thought rems were the new thing?
mdo
on March 24, 2015
|
parent
[–]
All of GitHub is basically in pixels, save for our Markdown styles—for easy modification across devices, we use `em`s. It'd be a huge project to update that to `rem`s anytime soon.
andreash
on March 24, 2015
|
root
|
parent
[–]
If you'd make it from scratch today, what technique would you use? html {font-size:62.5% } with REM?
mdo
on March 24, 2015
|
root
|
parent
[–]
Set an HTML font-size—likely 16px—and use body { font-size: 1rem; }. Allows for easy media query scaling of type.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: