Просмотр исходного кода

Merge pull request #2061 from weseek/support/modify-lineheight-of-pre

add style
N1koge 6 лет назад
Родитель
Сommit
8d669ff642
1 измененных файлов с 5 добавлено и 1 удалено
  1. 5 1
      src/client/styles/scss/_wiki.scss

+ 5 - 1
src/client/styles/scss/_wiki.scss

@@ -11,7 +11,11 @@ div.body {
 
 .wiki {
   font-size: 15px;
-  line-height: 1.8em;
+
+  // override line-height except hljs and child of it.
+  :not(pre*) {
+    line-height: 1.8em;
+  }
 
   h1,
   h2,