benschwarz / developers.whatwg.org

Used to create the contents of developers.whatwg.org
http://developers.whatwg.org/
198 stars 39 forks source link

monospaced text renders somewhat smaller than the rest #17

Closed jrus closed 13 years ago

jrus commented 13 years ago

Code samples and so forth render in 12px Bitstream Vera Sans (or a list of other fonts), whereas the rest of the body text is 17px Georgia. Ideally, the two fonts should have about the same x-height, so they look reasonable next to each other on the same line.

benschwarz commented 13 years ago

I do tend to agree—However, this was done in an effort to steal back from horizontal space as some text examples are up to 160 characters wide. Decreasing the font-size really reduces the appearances of text-wrapping.

I'll leave this issue open as I'm going to reconside the .warning, .note and .example styles. Perhaps something for code, pre will fall out of that work.

benschwarz commented 13 years ago

p > code { font-size: 1em; } will do the job

benschwarz commented 13 years ago

Refactor of relative font-sizes. Basic rejigging. Closed by cda5e576084d137b79010d5115810841be411ce1, Closed by cda5e576084d137b79010d5115810841be411ce1, Closed by cda5e576084d137b79010d5115810841be411ce1