Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Allow for platform-specific font sizes #476

Merged
merged 5 commits into from
Mar 21, 2012
Merged

Conversation

joelrbrandt
Copy link
Contributor

@peterflynn

Addresses issue #440

Adding support for platform-specific fonts (and other css) by adding a "platform-mac" or "platform-win" class to the body tag.


pre {
line-height: 15px;
}
}

.code-font-win() {
.code-font();
font-size: 13px;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add a comment here explaining the platform diff? E.g. "13px renders at basically the same size as 14px on Win but fixes glyph clipping issues (#440). But 13px is too small on Mac to use there."

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea. Done.

@peterflynn
Copy link
Member

Looks good other than that one comment nit. I tested on Win and verified that it does indeed fix the bug.

@peterflynn
Copy link
Member

Merging...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants