Skip to content

Commit a32da2d

Browse files
committed
Use a font stack to make the text look better
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
1 parent c133460 commit a32da2d

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

style.css

+18
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,24 @@
22

33
body {
44
text-align: center;
5+
6+
/**
7+
* System font stack for sans-serif fonts
8+
*
9+
* `-apple-system`('San Francisco' font) – Support: Safari 9+ macOS and iOS, Firefox macOS
10+
* `BlinkMacSystemFont` ('San Francisco' font) – Chrome 48+ macOS and iOS
11+
* `Segoe UI` – Windows Vista & newer
12+
* `Roboto` – Android 4.0
13+
* `Lato` – Wikimedia Design choice, OFL licensed
14+
* `Helvetica, Arial, sans-serif` – (Generic) Web fallback
15+
*
16+
* Note that CSS Fonts Module Level 4's `system-ui` value has resulted in
17+
* unresolved side-effects in certain OS/language combinations as of
18+
* now and is therefore not included.
19+
*
20+
* Ref: https://phabricator.wikimedia.org/T175877
21+
*/
22+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Lato, Helvetica, Arial, sans-serif;
523
}
624

725
.bg-primary {

0 commit comments

Comments
 (0)