From 074180782399888d4d6696f13cbf95818b40bf3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=AEnoisawe?= <3evasion@gmail.com> Date: Thu, 21 Dec 2017 08:28:25 +0100 Subject: Simplified markup --- index.html | 34 +++++++++++++++++----------------- style.css | 18 +++++++++--------- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/index.html b/index.html index 7256cbf..3163da3 100644 --- a/index.html +++ b/index.html @@ -12,39 +12,39 @@ diff --git a/style.css b/style.css index 8b34f27..a5b2b05 100644 --- a/style.css +++ b/style.css @@ -87,7 +87,7 @@ ul:nth-child(5) { Amount of chars in longest category name + 1 */ -li:first-child { +li { width: 8ch; } @@ -98,7 +98,7 @@ li:first-child { */ body { - font-family: 'Ubuntu Mono', sans-serif; + font-family: 'Ubuntu Mono', monospace; margin: 0; overflow-x: hidden; text-align: center; @@ -119,7 +119,7 @@ ul { padding-left: 0; } -li { +li, a { color: var(--text-color); display: inline-block; position: relative; @@ -128,17 +128,17 @@ li { transition: color 200ms; } -li:hover, li:first-child { +a:hover, li { color: inherit; } -li:first-child:after { +li:after { position: absolute; right: 0; height: 1em; } -li:first-child, h1 { +li, h1 { pointer-events: none; -webkit-user-select: none; -moz-user-select: none; @@ -146,11 +146,11 @@ li:first-child, h1 { user-select: none; } -li:nth-child(2) { - margin-left: var(--spacing); +li { + margin-right: var(--spacing); } -li:not(:first-child) + li:before { +a + a:before { content: var(--link-separator); margin-left: var(--spacing); margin-right: var(--spacing); -- cgit v1.2.1-18-gbd029