Files
grecia/app/assets/stylesheets
Javi Martín 1e80ab31ee Use relative units as base font size
Using pixels to define font sizes has an important problem: it ignores
user settings. No matter whether users set their font size to 16px (the
default font size in most browsers), to 18px (like I do) or to 32 px
(like users with huge screens or with a visual disability); the size
will not change.

Even if most browsers can zoom to somehow overcome this issue, it's
still annoying. And, in our case, we use relative units most of the time
but absolute units in some places. This leads to situations where some
of the text gets larger when users increase their font size while some
of the text remains the same. Sometimes this results in titles having a
smaller size than regular text below it.

The solution is using relative units everywhere. Quoting the Web
Accessibility Initiative guide for styles [1]:

> The user needs to be able to resize the text to 200% of its size
> anywhere on the page, without the text being cut off or overlapping
> other text. The font size should be defined in relative units, such as
> percentages, em or rem. It is not possible to zoom text set in pixels
> independently from the rest of the page in some browsers.

[1] https://www.w3.org/WAI/tutorials/page-structure/styling/
2021-06-17 01:41:40 +02:00
..
2021-06-14 13:48:45 +02:00
2021-06-02 16:15:00 +02:00
2018-06-06 12:00:39 +02:00
2017-09-20 19:26:43 +02:00
2021-06-02 16:15:00 +02:00
2021-06-02 17:06:40 +02:00
2021-03-24 15:48:24 +01:00
2019-02-02 19:18:26 +01:00
2017-10-17 13:26:27 +02:00
2021-02-14 18:56:52 +01:00