From 9a796e0b2a9c14e354855252c4bdc1efff29fbe8 Mon Sep 17 00:00:00 2001 From: Midgard <2885-Midgard@users.noreply.framagit.org> Date: Tue, 9 Jun 2020 13:46:48 +0200 Subject: [PATCH] Add kbd style, correct margin --- public/main.css | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/public/main.css b/public/main.css index b9b10ee..002777a 100644 --- a/public/main.css +++ b/public/main.css @@ -24,6 +24,14 @@ pre { white-space: pre-wrap; } +kbd { + padding: 0.3em 0.4em 0.2em; + border-radius: 0.5em; + background-color: #fff; + border-bottom: 1px solid #ddd; + vertical-align: middle; +} + body { @@ -55,7 +63,6 @@ main { footer { grid-area: footer; align-self: end; - margin-top: 2em; } @media (min-width:900px) or ((min-aspect-ratio:1/1) and (min-width:300px)) { @@ -230,6 +237,7 @@ body.blog { line-height: 1.5; max-width: 50em; background: #fff5f0; + margin-bottom: 2em; } @media (min-width:900px) or ((min-aspect-ratio:1/1) and (min-width:300px)) { .blog main { @@ -237,8 +245,6 @@ body.blog { } } - - main h1 { margin: 0.5em 0 0; }