-
Notifications
You must be signed in to change notification settings - Fork 29
Use a font stack to make the text look better #37
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
Conversation
The font stack has been borrowed from the recent font stack upgrade that is being made to Wikipedia sites[1]. It looks a lot better that how it was before on the devices that have been tested: 1. An Android phone 2. Firefox and Chrome on Ubuntu This resolves an item in commons-app#28. [1]: https://phabricator.wikimedia.org/T175877
The change could be seen live at https://sivaraam.gitlab.io/commons-app.github.io |
Is this not already done by Bootstrap? Renders the same for me on your version (uses Roboto Light, which I expect as I'm on Linux and don't have other defaults installed). https://getbootstrap.com/docs/4.1/content/reboot/#native-font-stack |
You are right about that. One difference I see in the font stack of bootstrap and the one that I've added is the 'Lato' font. I don't have the other defaults mentioned in the bootstrap reboot installed so it's defaulting to 'sans-serif' for me (which doesn't look very great). So, I was exploring about improving it (unaware of the native font stack of Bootstrap) and came to know about the Wikimedia font stack and used it. As a result the site looked great (at least for me)! That's because of the Lato (which I have installed). I'm including the screen shots just for the comparison. Currently, I'm not sure about what to do here. I'm okay with either merging or closing this. Though I say this, I have a slight preference for using the Wikimedia font stack 😉 Update: Sorry for the late reply. Was a little busy with other things. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah okay, I think it makes sense to make it consistent with the Wikimedia font stack.
I don't think I have merge permissions on this repo, but am approving. I'm happy for you to merge this (@misaochan can you give me merge access for future PRs?).
Thanks! I've just added a note about why we override the bootstrap's font-stack. |
The font stack has been borrowed from the recent font stack upgrade that
is being made to Wikipedia sites1.
It looks a lot better that how it was before on the devices that have been
tested:
This resolves an item in #28.