Added colour variables

This commit is contained in:
2026-02-07 23:40:17 +00:00
parent 83d66aa86a
commit 0e7d253f89

View File

@ -1,4 +1,10 @@
:root { :root {
--header-colour: #00000031;
--main-colour: #393e41;
--footer-colour: #00000031;
--text-colour: #f6f7eb;
--text-accent-colour: #e94f37;
--header-size: 100px; --header-size: 100px;
} }
@ -11,11 +17,11 @@ html, body {
} }
body { body {
background-color: #000000; color: var(--text-colour);
color: #FFFFFF;
font-family: sans-serif; font-family: sans-serif;
display: flex; display: flex;
flex-flow: column; flex-flow: column;
background-color: var(--main-colour);
} }
@ -27,6 +33,7 @@ header main footer {
header { header {
position: fixed; position: fixed;
top: 0; top: 0;
background-color: var(--header-colour);
} }
/* Required to set the width and height of the header, as `fixed` elements can't have their size set. */ /* Required to set the width and height of the header, as `fixed` elements can't have their size set. */
@ -39,11 +46,13 @@ main {
flex: 1 1 auto; flex: 1 1 auto;
margin-top: var(--header-size); margin-top: var(--header-size);
text-align: center; text-align: center;
background-color: var(--main-colour);
} }
footer { footer {
flex: 0 1 auto; flex: 0 1 auto;
display: flex; display: flex;
background-color: var(--footer-colour);
} }
footer > div { footer > div {