From b8746835800cfec4cde04a3093c28c6393a663ad Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Mon, 12 Dec 2022 20:30:52 -0800 Subject: [PATCH] Add footer --- index.html | 26 ++++++++++++++++++++++++++ style.css | 42 +++++++++++++++++++++++++++++++++++------- 2 files changed, 61 insertions(+), 7 deletions(-) diff --git a/index.html b/index.html index f12768a..fa19318 100644 --- a/index.html +++ b/index.html @@ -80,6 +80,32 @@ + +

A newer version of this page is available.

diff --git a/style.css b/style.css index 35a39bc..d42f9aa 100644 --- a/style.css +++ b/style.css @@ -9,21 +9,29 @@ body { hyphens: auto; } -header { +header, footer { display: flex; align-items: center; - justify-content: space-between; inline-size: min(100% - 2rem, 1440px); padding-block: 1rem; margin-inline: auto; - margin-block-end: 1rem; position: relative; } -header::after { +header { + justify-content: space-between; + margin-block-end: 1rem; +} + +footer { + flex-direction: column; + gap: 8px; + margin-block-start: 1rem; +} + +header::after, footer::before { content: ""; position: absolute; - bottom: -4px; left: 5%; inline-size: 90%; block-size: 2px; @@ -40,6 +48,14 @@ header::after { hsl(0deg var(--shade))); } +header::after { + bottom: -4px; +} + +footer::before { + top: 4px; +} + header * { display: inline-flex; } @@ -53,16 +69,28 @@ a > svg { vertical-align: middle; } -a:has(#feed, #pencil, #github) { +header a:has(#feed, #pencil, #github) { display: none; } @media (min-width: 34.375rem) { - a:has(#feed, #pencil, #github) { + header a:has(#feed, #pencil, #github) { display: initial; } } +.footer-links { + display: flex; + justify-content: center; + gap: 8px; +} + +@media (min-width: 34.375rem) { + .footer-links { + display: none; + } +} + form > button { background: transparent; border: none; -- 2.47.3