From 96e5fcb2218027b7988712b46419fa4b2db98e60 Mon Sep 17 00:00:00 2001 From: Mango0x45 Date: Sun, 2 May 2021 14:33:58 +0200 Subject: Center the layout --- style.css | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/style.css b/style.css index 86e6e10..e3f34d6 100644 --- a/style.css +++ b/style.css @@ -1,4 +1,5 @@ :root { + --screen-width: 70%; --slider-color: #FFFFFF; --slider-bg-on-color: #2196F3; --slider-bg-off-color: #CCCCCC; @@ -25,7 +26,7 @@ body { margin-bottom: 20px; margin-left: auto; margin-right: auto; - max-width: 70%; + max-width: var(--screen-width); padding-left: 30px; padding-right: 30px; } @@ -52,6 +53,7 @@ h1 { font-size: 2em; position: relative; top: 0.33em; + width: var(--screen-width); } h1, h3 { -- cgit v1.2.3