From f08b98f39489fb52e3475e14c858186958bfb681 Mon Sep 17 00:00:00 2001 From: vrifox Date: Sat, 29 Jul 2023 21:02:58 +0200 Subject: [PATCH] Improve Mobile Friendlyness + Accessibility (#5) Reviewed-on: https://code.cozy.town/cozytown/website/pulls/5 Co-authored-by: vrifox Co-committed-by: vrifox --- themes/cozy-hugo/assets/css/main.scss | 6 +++++- themes/cozy-hugo/layouts/_default/baseof.html | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/themes/cozy-hugo/assets/css/main.scss b/themes/cozy-hugo/assets/css/main.scss index da58f5b..73ba2a9 100644 --- a/themes/cozy-hugo/assets/css/main.scss +++ b/themes/cozy-hugo/assets/css/main.scss @@ -29,10 +29,13 @@ html { body { background-color: var(--background); color: var(--text); + display: flex; font-family: 'Lucida Console', 'Courier New', monospace; + flex-direction: column; hyphens: auto; line-height: 1.8; margin: 0; + align-items: center; } a { color: var(--text); @@ -58,6 +61,7 @@ header { overflow: hidden; position: relative; text-align: center; + width: 100%; h1 { font-size: 3.6em; line-height: .9em; @@ -121,8 +125,8 @@ header { } .width-1200 { - margin: 0 auto; max-width: 1200px; + width: calc(100% - 4rem); } main { diff --git a/themes/cozy-hugo/layouts/_default/baseof.html b/themes/cozy-hugo/layouts/_default/baseof.html index 762be0a..305f27d 100644 --- a/themes/cozy-hugo/layouts/_default/baseof.html +++ b/themes/cozy-hugo/layouts/_default/baseof.html @@ -1,5 +1,5 @@ - + {{ partial "head.html" . }}