Re:Focus.py
by evmar on Tuesday May 15, 2012 @02:37AM
(#3975270)
This, like other github themes, has bad CSS that makes the monospaced text come out as serif on Linux. I know the github crew uses Macs but it makes me a little sad to see they don't test on the system that spawned their namesake. :(
[ Parent
| on HN ]
The problem comes from this:
code {
font-family: "Lucida Sans", Monaco, Bitstream Vera Sans Mono, Lucida Console, Terminal;
}
Which is simply a poorly made rule, regardless of browser and OS. If you don’t have any of the specified fonts, your browser will use its general default font, which is usually either “serif” or “sans-serif”.
Re:Focus.py
by mikegirouard on Tuesday May 15, 2012 @05:33AM
(#3975725)
I always try to have a simple "..., mono" suffix to my CODE and PRE rules for this reason alone.
For BODY or HTML (whichever contains my global font-family rule) I finish off the list with "..., sans-serif".
I've never had amazing luck w/typography outside of Mac/Win, but like you point out, its poor style to leave everyone else without even a base style to work with.
You are correct. I sent them a pull request for one of the other themes that has this problem but got no response.
Looks ok on Ubuntu: http://cl.ly/Ge6g
Using Linux Mint here and it looks fine. Maybe you should install some fonts.
The hash links for headings aren't working either. The page doesn't budge.
That seems to be because the headers don't have their attached anchor links. Not a linux only issue.