aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMango0x45 <thomasvoss@live.com> 2021-05-02 14:33:58 +0200
committerMango0x45 <thomasvoss@live.com> 2021-05-02 14:33:58 +0200
commit96e5fcb2218027b7988712b46419fa4b2db98e60 (patch)
treeb46f5e4b11303b4f45a0210112e3bcfdaa884670
parent9386f05a4f3ce171cf54943c1c1a7a74c808cb91 (diff)
Center the layout
-rw-r--r--style.css4
1 files changed, 3 insertions, 1 deletions
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 {