aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/css
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2017-07-01 02:46:05 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2017-07-01 02:46:05 +0300
commitd051bf2c3fdc5b542b168996b33b4bd555fc46e8 (patch)
tree253380abbde2ec2cb2101ec7732369a282ea9b76 /css
parentfooter update (diff)
downloadegor-tensin.github.io-d051bf2c3fdc5b542b168996b33b4bd555fc46e8.tar.gz
egor-tensin.github.io-d051bf2c3fdc5b542b168996b33b4bd555fc46e8.zip
lighter background-color of <pre> and <code>
Diffstat (limited to '')
-rw-r--r--css/common/misc.css14
1 files changed, 14 insertions, 0 deletions
diff --git a/css/common/misc.css b/css/common/misc.css
index c6cbd9d..95b80bf 100644
--- a/css/common/misc.css
+++ b/css/common/misc.css
@@ -1,6 +1,20 @@
+/* Utility classes to prevent blocks from expanding unreasonably. */
.wide-enough {
max-width: 400px;
}
.wider {
max-width: 600px;
}
+/* Lighter background for <pre> and <code> elements. */
+pre {
+ font-size: inherit;
+ background-color: #fbfbfb;
+}
+.highlight {
+ background-color: #fbfbfb !important;
+}
+code {
+ color: inherit;
+ background-color: #fbfbfb;
+ font-size: inherit;
+}