Highlight: Keep highlighted code tags at 1.05em font-size.

This commit is contained in:
Maciej Smolinski
2016-08-03 08:00:23 +02:00
parent 5aa889a63a
commit f2c77b6c0e
+6 -6
View File
@@ -373,15 +373,15 @@ pre, code, code.hljs {
font-family: monospace;
border-radius: 3px;
background: #f0f0f0;
}
/* Non-syntax highlighted code tag to be slightly bigger so it outstands in text */
code:not(.hljs) {
font-size: 1.05em;
}
/* Syntax highlighted code tag to get some padding and keep font-size */
code.hljs {
/* Don't increase the size of code in pre tag, pre tag already did it.
Otherwise code size would be even bigger (1.05em * 1.05em = 1.1025em) */
pre code {
font-size: 1em;
}
code.hljs {
padding: 1em;
}