summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac2021-07-05 16:07:05 +0530
committerArun Isaac2021-07-05 16:08:42 +0530
commitb273bf2b0af96ae66a86c52e788576e42e73c116 (patch)
tree9efe5c2f335d2187edb52a09a6488f186d514dff
parent5d2368bad49a2663b9753bf559dc28caedb6aea6 (diff)
downloadccwl-b273bf2b0af96ae66a86c52e788576e42e73c116.tar.gz
ccwl-b273bf2b0af96ae66a86c52e788576e42e73c116.tar.lz
ccwl-b273bf2b0af96ae66a86c52e788576e42e73c116.zip
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.
-rw-r--r--website/style.css8
1 files changed, 6 insertions, 2 deletions
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. */