From 1a8ce154b6213cafae6e9504ede69329b3bddd86 Mon Sep 17 00:00:00 2001 From: Gabriel Date: Sun, 21 Jan 2024 00:18:09 -0500 Subject: [PATCH] mobile friendly --- static/theme.css | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/static/theme.css b/static/theme.css index 0f9b81e..05db13d 100644 --- a/static/theme.css +++ b/static/theme.css @@ -35,8 +35,19 @@ header { padding-bottom: 0.5rem; } +@media screen and (orientation:portrait) { + header img { + display: none + } + header { + font-size: 14px; + line-height: 18px; + } +} + a { color: var(--theme-accent); + word-wrap: break-word; } header a { @@ -46,6 +57,7 @@ header a { header>* { margin-left: 0.25rem; margin-right: 0.25rem; + border: 0 transparent; } header nav { @@ -89,6 +101,13 @@ article { max-width: 90vw; } +@media screen and (orientation:portrait) { + article { + font-size: 16px; + line-height: 19px; + } +} + article h3, section h3, article h4, @@ -160,8 +179,7 @@ article code>span { } code, -pre, -a { +pre { word-wrap: break-word; white-space: break-spaces; }