From 28803f884e5bdea720e149d4493f28e59e0c09a6 Mon Sep 17 00:00:00 2001 From: Midgard <2885-Midgard@users.noreply.framagit.org> Date: Tue, 9 Jun 2020 19:37:00 +0200 Subject: [PATCH] Style for inline code --- public/main.css | 38 ++++++++++++++++++++++++++------------ 1 file changed, 26 insertions(+), 12 deletions(-) diff --git a/public/main.css b/public/main.css index 002777a..d8878fd 100644 --- a/public/main.css +++ b/public/main.css @@ -20,18 +20,6 @@ a:hover { text-decoration: none; } -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 { @@ -281,6 +269,32 @@ main header { font-size: 100%; } +kbd, code { + padding: 0.3em 0.4em 0.2em; + border-radius: 0.5em; + vertical-align: middle; + + font-family: "Source Code Pro", monospace; + font-size: 90%; + + white-space: pre-wrap; + white-space: break-spaces; +} +kbd { + background-color: #fff; + border-bottom: 1px solid #ddd; +} +code { + background-color: #efe5e0; + color: #222; +} +pre code { + padding: 0; + border-radius: 0; + background-color: transparent; + color: inherit; +} + #social {