diff options
author | Mango0x45 <thomasvoss@live.com> | 2021-05-02 14:33:58 +0200 |
---|---|---|
committer | Mango0x45 <thomasvoss@live.com> | 2021-05-02 14:33:58 +0200 |
commit | 96e5fcb2218027b7988712b46419fa4b2db98e60 (patch) | |
tree | b46f5e4b11303b4f45a0210112e3bcfdaa884670 | |
parent | 9386f05a4f3ce171cf54943c1c1a7a74c808cb91 (diff) |
Center the layout
-rw-r--r-- | style.css | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 { |