Highlight: Apply some defaults to hljs themes (background, border radius).

This commit is contained in:
Maciej Smolinski
2016-08-01 19:38:45 +02:00
parent 093b0c95e1
commit 0f618cd50f
+3 -7
View File
@@ -188,11 +188,8 @@ blockquote {
/* Code tags and pre tags alone to be monospaced */ /* Code tags and pre tags alone to be monospaced */
pre, code { pre, code {
font-family: monospace; font-family: monospace;
} border-radius: 3px;
background: #fcfcfc !important; /* required to override theme defaults */
/* Non-syntax highlighted code and pre tags to get default background */
pre, code:not([class*="lang-"]) {
background: #efefef;
} }
/* Non-syntax highlighted code tag to be slightly bigger so it outstands in text */ /* Non-syntax highlighted code tag to be slightly bigger so it outstands in text */
@@ -200,9 +197,8 @@ code:not([class*="lang-"]) {
font-size: 1.05em; font-size: 1.05em;
} }
/* Syntax highlighted code tag to get some padding, nice rounded corners and keep font-size */ /* Syntax highlighted code tag to get some padding and keep font-size */
code[class*="lang-"] { code[class*="lang-"] {
border-radius: 3px;
font-size: 1em; font-size: 1em;
padding: 1em; padding: 1em;
} }