Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a base font size #689

Merged
merged 1 commit into from
Apr 28, 2017
Merged

Conversation

rap2hpoutre
Copy link
Contributor

@rap2hpoutre rap2hpoutre commented Apr 28, 2017

I just added a base font size, because it seems there is none right now and it results in a weird display on different browser for the inline code. Here is a screenshot of firefox (same with chrome):

capture d ecran 2017-04-28 a 16 37 57

You can see the rustc and cargo new are really smaller and there is no reason(?). I think a base font size for the site may be better. Here is a screenshot with base font-size:

capture d ecran 2017-04-28 a 16 46 09

It seems more readable. Sorry if this PR is useless (I'm not sure it's my first PR here and I'm not a CSS master)

@carols10cents
Copy link
Member

This PR is not useless! I'm not a CSS or typography expert either, so I did a little research... it looks like the recommended practice for body font size has changed over the years and browser versions, but this Google PageSpeed Insights reference updated in 2015 at least recommends exactly what you've done here ❤️

BUT.... there's a catch. I see that your screenshots include content from doc.crates.io. And I regret to inform you...

Our princess is in another castle

The content for doc.crates.io actually lives in cargo's repo for Reasons™, and this is terrible because we have to keep the HTML, docs menu, and CSS in sync between the two repos :(

Someday hopefully we'll figure out a solution for this, but for now, could you also submit this same change to all.css in cargo's repo as well? Sorry sorry sorry

@carols10cents carols10cents merged commit 6fe9c31 into rust-lang:master Apr 28, 2017
bors added a commit to rust-lang/cargo that referenced this pull request Apr 29, 2017
Added a base font size

See rust-lang/crates.io#689 (ping @carols10cents)

A base font size was added to crates.io, here is the same addition for docs.crate.io
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants