From 41869f7bd8a5cc50c14e4d7fc8e134c525b3aed8 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Mon, 7 Nov 2022 21:17:37 -0600 Subject: [PATCH] Fix theme centering on iOS --- .../Resources/Appanoose.nnwtheme/stylesheet.css | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/Shared/Resources/Appanoose.nnwtheme/stylesheet.css b/Shared/Resources/Appanoose.nnwtheme/stylesheet.css index 3cb33d027..e47730139 100644 --- a/Shared/Resources/Appanoose.nnwtheme/stylesheet.css +++ b/Shared/Resources/Appanoose.nnwtheme/stylesheet.css @@ -1,6 +1,8 @@ /* Shared iOS and macOS CSS rules. Platform specific rules are at the bottom of this file. */ body { + margin-left: auto; + margin-right: auto; word-wrap: break-word; max-width: 44em; } @@ -428,11 +430,10 @@ a.footnote:hover, @supports (-webkit-touch-callout: none) { body { - margin-top: 3px; - margin-bottom: 20px; - margin-left: 20px; - margin-right: 20px; - + padding-top: 3px; + padding-bottom: 20px; + padding-left: 20px; + padding-right: 20px; word-break: break-word; -webkit-hyphens: auto; -webkit-text-size-adjust: none; @@ -482,10 +483,8 @@ a.footnote:hover, @supports not (-webkit-touch-callout: none) { body { - margin-top: 20px; - margin-bottom: 20px; - margin-left: auto; - margin-right: auto; + padding-top: 20px; + padding-bottom: 20px; padding-left: 48px; padding-right: 48px; font-family: -apple-system;