1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-23 21:02: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:
Rohan Kumar 2022-05-07 22:22:11 -07:00
parent 88ca957941
commit 01c99e2b59
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479

View file

@ -56,7 +56,7 @@ html {
* I followed Google's a11y recommendations of "at least 8px space * I followed Google's a11y recommendations of "at least 8px space
* between tappables" by creating margins/paddings between nav links; * between tappables" by creating margins/paddings between nav links;
* re-use that same amount of space here. 1em + .25em = 1.25em */ * 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. /* 45em is too wide for long body text.