From 2f0b58ce527c95ed606d978cc8fba1c894dbda14 Mon Sep 17 00:00:00 2001 From: Stefan Imhoff Date: Sun, 2 Oct 2022 17:13:45 +0200 Subject: [PATCH] fix: paddings in PDF and colors of window navigation --- Shibui.iatemplate/Contents/Info.plist | 2 +- .../Contents/Resources/styles/style.css | 31 ++++++++++++++++--- 2 files changed, 28 insertions(+), 5 deletions(-) diff --git a/Shibui.iatemplate/Contents/Info.plist b/Shibui.iatemplate/Contents/Info.plist index 0b4e0ee..453f3ac 100644 --- a/Shibui.iatemplate/Contents/Info.plist +++ b/Shibui.iatemplate/Contents/Info.plist @@ -11,7 +11,7 @@ CFBundleName Shibui CFBundleShortVersionString - 1.0.1 + 1.0.2 CFBundleVersion 1 IATemplateDocumentFile diff --git a/Shibui.iatemplate/Contents/Resources/styles/style.css b/Shibui.iatemplate/Contents/Resources/styles/style.css index 34c2db4..aebaae1 100644 --- a/Shibui.iatemplate/Contents/Resources/styles/style.css +++ b/Shibui.iatemplate/Contents/Resources/styles/style.css @@ -16,6 +16,14 @@ html { scroll-behavior: smooth; } +html.night-mode { + color: #c9d1d9; +} + +html:not(.night-mode) { + color: #24292f; +} + *, *:before, *:after { @@ -33,10 +41,15 @@ body { font-family: var(--font-family-base); font-weight: var(--font-weight-normal); line-height: var(--line-height-2); - margin-inline: auto; padding-inline-end: var(--horizontal-padding); padding-inline-start: var(--horizontal-padding); - width: 88vw; +} + +@media screen { + body { + background-color: var(--color-bg); + color: var(--color-fg); + } } @supports (padding: constant(safe-area-inset-left)) and @@ -65,8 +78,8 @@ body { @media screen { body { - background-color: var(--color-bg); - color: var(--color-fg); + margin-inline: auto; + width: 88vw; } } @@ -278,6 +291,16 @@ pre { white-space: pre; } +@media print { + body { + --horizontal-padding: 75px; + } + + body pre code { + white-space: pre-wrap; + } +} + p code, li code, samp {