mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-10 00:12:09 +00:00
CSS: use absolute units for side margins
Side margins created to prevent mis-taps on scrollbars or swipe-backs for going back should not scale with zoom; that would make reading while zoomed in impossible.
This commit is contained in:
parent
88ca957941
commit
01c99e2b59
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ html {
|
|||
* I followed Google's a11y recommendations of "at least 8px space
|
||||
* between tappables" by creating margins/paddings between nav links;
|
||||
* re-use that same amount of space here. 1em + .25em = 1.25em */
|
||||
padding: 0 1.25em;
|
||||
padding: 0 24px;
|
||||
}
|
||||
|
||||
/* 45em is too wide for long body text.
|
||||
|
|
Loading…
Reference in a new issue