Browse Source

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

master
Maciej Smolinski 10 years ago
parent
commit
0f618cd50f
  1. 10
      resources/public/style.css

10
resources/public/style.css

@ -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;
} }

Loading…
Cancel
Save