From 96dc9b19b8626c9cfaf67967507308c95a1cf652 Mon Sep 17 00:00:00 2001 From: Alex Cabal Date: Tue, 20 Apr 2021 21:50:03 -0500 Subject: [PATCH] Add mobile improvements to manual CSS --- www/css/manual.css | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/www/css/manual.css b/www/css/manual.css index fa3dd868..ff95358b 100644 --- a/www/css/manual.css +++ b/www/css/manual.css @@ -149,7 +149,8 @@ code.marc{ border: 1px solid var(--border); background: #333; border-radius: .25rem; - white-space: nowrap; + white-space: normal; + word-break: break-all; padding: 0 .25rem; color: #fff; margin: 0 .2rem; @@ -549,10 +550,6 @@ figure.corrected code{ width: auto; } -.manual table td code.path{ - white-space: nowrap; -} - .manual aside.tip{ font-style: italic; margin: 1rem 0; @@ -771,3 +768,14 @@ main.manual aside.alert p{ margin-left: 2rem; } } + +@media(max-width: 500px){ + .manual h1, + .manual h2, + .manual h3, + .manual h4, + .manual h5, + .manual h6{ + word-break: break-all; + } +}