« get me outta code hell

Make narrow-width size look nicer - scratchrlol - Simple HTML-based Scratch client
summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorrie <towerofnix@gmail.com>2018-11-14 16:49:43 -0400
committerFlorrie <towerofnix@gmail.com>2018-11-14 16:49:43 -0400
commit9d06adb6966a4c7ad1c7605f49c2cf30755bc928 (patch)
tree51f64b13a9b5e2de09eb7b4d919a25ece7e16371
parent54179415b7a4835903fbcb129159266a73733fdc (diff)
Make narrow-width size look nicer
I.e. if the width is less than 20cm, make sure there's still some
padding on the edges.

I'd like to figure out how to use left/right margins instead of padding
here (since margin seems to semantically make more sense), but I don't
think there's a way to do anything like "margin: max(8px, auto)";
I'd have to use a container element around all content (including the
header!) to apply both margins.
-rw-r--r--style.css1
1 files changed, 1 insertions, 0 deletions
diff --git a/style.css b/style.css
index 5d629e2..f39dcf7 100644
--- a/style.css
+++ b/style.css
@@ -2,6 +2,7 @@ body {
   max-width: 20cm;
   margin-left: auto;
   margin-right: auto;
+  padding: 0 8px;
 }
 
 li {