As revealed by {T160474#3108335}, the Wikipedia.org page contains a very diverse list of font sizes:
(1rem = 16px)
font-size: 0; font-size: 0.6rem; (9.6px) font-size: 0.65rem; (10.4px) font-size: 0.684rem; (10.944px) font-size: 0.69rem; (11.04px) font-size: 0.7rem; (11.2px) font-size: 0.72rem; (11.52px) font-size: 0.75rem; (12px) font-size: 0.76rem; (12.16px) font-size: 0.8rem; (12.8px) font-size: 0.8125rem; (13px) font-size: 0.875rem; (14x) font-size: 0.975rem; (15.6px) font-size: 1rem; (16px) font-size: 1.875rem; (30px) font-size: 2rem; (32px) font-size: 70%; font-size: 75%; font-size: 85%; font-size: 110%; font-size: 125%; font-size: inherit; font-size: larger;
Note
The task sounds like it will bring major, disruptive changes to the users. Aside the most detail-oriented section of our users, it should not.
It will slightly change the overall look of the portal, but it should be minor, and for the better: we are not changing the page layout, just making the font sizes more consistent, for better readability. No text looking big is gonna look small, and no text looking small is gonna look big after these changes.
Suggested process
- Merge cleaning patch T160474: Convert inconsistent font sizes, margins, paddings units... to rem unit to rely only on rem typographic unit.
- Define the rem base. rem is a unit relative to the font size of the root element (<html>).
- Define a typographic scale in collaboration with Design / Wikimedia-Design / Wikimedia Design Style Guide that would work for the portal and other wikimedia projects. See https://design.wikimedia.org/style-guide/visual-style_typography.html#use-of-styles
- Virtually apply changes to the portal and share visual changes with the community.
- Deploy updated version of portal to production.
Outcome (desktop)
font-size definitions
- 3.2rem at h1
- 3rem at .central-textlogo
- 1.6rem for headlines
- 1.5rem for Wikipedia tagline (slogan) – exception that would need to increase logo size itself
- 1.4rem for toned-down important elements like language numbers
- 1.3rem for small and other smallest elements like license texts
- 75% for sup, sub resulting in as low as 10.5px. But those aren't used on Portals right now.