From 6233f79f14dc51c295dd053be4e02eccc85ec4bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=AEnoisawe?= <3evasion@gmail.com> Date: Sun, 5 Nov 2017 20:13:56 +0100 Subject: More settings --- style.css | 42 ++++++++++++++++++++++++++++++++++-------- 1 file changed, 34 insertions(+), 8 deletions(-) diff --git a/style.css b/style.css index 9776a8c..75babcf 100644 --- a/style.css +++ b/style.css @@ -1,3 +1,13 @@ +/* + Spacing +*/ + +div { + --spacing: .25em; +} + + + /* Separator */ @@ -10,7 +20,7 @@ li:first-child:after { content: ''; border-right: 2px solid; transition: border-right 50ms; - margin-right: .25em; + margin-right: var(--spacing); } /* Hover effects */ @@ -20,12 +30,29 @@ ul:hover li:first-child:after { border-right: 4px solid; } +/* Link separator */ + +div { + --link-separator: '|'; +} /* Colors */ +/* Background */ + +body { + background-color: #2a2a2a; +} + +/* Text */ + +div { + --text-color: white; +} + /* Heading */ h1 { @@ -72,7 +99,6 @@ li:first-child { body { font-family: 'Ubuntu Mono', sans-serif; - background-color: #2a2a2a; margin: 0; overflow: hidden; } @@ -89,7 +115,7 @@ a { } li { - color: white; + color: var(--text-color); display: inline-block; position: relative; font-size: 2em; @@ -115,14 +141,14 @@ li:first-child, h1 { } li:nth-child(2) { - margin-left: .25em; + margin-left: var(--spacing); } li:not(:first-child) + li:before { - content: '|'; - margin-left: .25em; - margin-right: .25em; - color: white; + content: var(--link-separator); + margin-left: var(--spacing); + margin-right: var(--spacing); + color: var(--text-color); } div { -- cgit v1.2.1-18-gbd029