From 211fcc11a0ff29632093e50da3c9d0c68e3ff7c8 Mon Sep 17 00:00:00 2001 From: Marty Sluijtman Date: Mon, 21 Aug 2023 03:41:41 +0200 Subject: [PATCH] Variables exist for a reason --- static/style.css | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/static/style.css b/static/style.css index 9c3aca5..accfae4 100644 --- a/static/style.css +++ b/static/style.css @@ -1,11 +1,14 @@ +:root{ + --fg:#E60073; +} ::selection{ color: black; - background-color: #E60073; + background-color: var(--fg); } body { background: black; - color: #E60073; + color: var(--fg); font-family: monospace; font-size: 1.2em; margin:0; @@ -16,13 +19,13 @@ summary{cursor:pointer;} summary:hover{ filter: url(#chroma); color: black; - background-color: #E60073; + background-color: var(--fg); } summary:hover:active{ filter: url(#chromaClick) } a{ - color: #E60073; + color: var(--fg); text-decoration: none; } @@ -36,14 +39,14 @@ a::before{ content: '['; } a:hover{ color: black; - background-color: #E60073; + background-color: var(--fg); position:relative; filter: url(#chroma); } a:hover::selection{ background-color: black; - color: #E60073; + color: var(--fg); } .postImage a::before{ content: none; } @@ -76,7 +79,7 @@ a.anchor{visibility: hidden; text-decoration: none;} h1:target::before,h2:target::before,h3:target::before,h4:target::before,h5:target::before,h6:target::before{content:"> "; } h1:hover>a,h2:hover>a,h3:hover>a,h4:hover>a,h5:hover>a,h6:hover>a{visibility:visible;} h1:target>a,h2:target>a,h3:target>a,h4:target>a,h5:target>a,h6:target>a{color:black; visibility:visible;} -:target{color:black; background-color: #E60073;} +:target{color:black; background-color: var(--fg);} footer{ text-align: center;