From b273bf2b0af96ae66a86c52e788576e42e73c116 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Mon, 5 Jul 2021 16:07:05 +0530 Subject: website: Highlight code snippets. * website/style.css (code): Set background color to the same gray as pre code snippets. Pad 0.2 em on the left and the right. --- website/style.css | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'website') diff --git a/website/style.css b/website/style.css index d99533a..497ad76 100644 --- a/website/style.css +++ b/website/style.css @@ -10,13 +10,17 @@ h1, h2, h3 { line-height: 1.2; } -pre { +pre, code { background-color: #f0f0f0; +} + +pre { padding: 1em; } code { - font-style: italic; + padding-left: 0.2em; + padding-right: 0.2em; } /* Make the svg badges clickable. */ -- cgit v1.2.3