From 512368ede01217dc99f5ffaf0742a7b55c204f02 Mon Sep 17 00:00:00 2001 From: intergrav Date: Wed, 10 Jul 2024 01:24:13 -0400 Subject: [PATCH] feat: improvements to header --- dev.css | 33 +++++++++++++++------------------ 1 file changed, 15 insertions(+), 18 deletions(-) diff --git a/dev.css b/dev.css index d657172..3ce54c7 100644 --- a/dev.css +++ b/dev.css @@ -238,35 +238,42 @@ blockquote *:last-child { margin-top: 0rem; margin-bottom: 0rem; } + + header > *:first-child { + margin-top: 0; + padding-top: 0; + } + + header > *:last-child { + margin-bottom: 0; + padding-bottom: 0; + } } @media (min-width: calc((750px + 4rem) + ((250px + 2rem)*2))) { header { - padding: 2rem 2rem; + padding: 2rem; padding-right: 0; margin: 0; position: fixed; top: 0; left: calc(50% - ((750px + 4rem) / 2) - (250px + 2rem)); width: 250px; + height: 100%; } header nav { display: flex; flex-direction: column; + border-top: 1px solid var(--dc-bg-3); + padding-top: 1rem; + margin-top: 0.5rem; } header nav a::before { content: "• "; color: var(--dc-tx-2); } - - header * { - padding-top: 0.25rem; - padding-bottom: 0.25rem; - margin-top: 0rem; - margin-bottom: 0rem; - } } header h1, @@ -278,16 +285,6 @@ header h6 { border-bottom: 0; } -header > *:first-child { - margin-top: 0; - padding-top: 0; -} - -header > *:last-child { - margin-bottom: 0; - padding-bottom: 0; -} - a button, button, input[type="submit"], -- 2.51.2