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

adjust styles for comment with markdown

Yuki Takei 7 лет назад
Родитель
Сommit
6ac0abaef1
1 измененных файлов с 8 добавлено и 1 удалено
  1. 8 1
      resource/styles/scss/_wiki.scss

+ 8 - 1
resource/styles/scss/_wiki.scss

@@ -152,6 +152,10 @@ div.body {
     h1, h2, h3, h4, h5, h6 {
       margin-top: 1.6em * $ratio;
       margin-bottom: .8em * $ratio;
+
+      &:first-child {
+        margin-top: 15px;
+      }
     }
 
     h1 {
@@ -178,8 +182,11 @@ div.body {
     }
 
     ul, ol {
+      padding-left: 15px;
+      margin: 10px 0;
+
       li {
-        line-height: 1.8em * $ratio;
+        line-height: 1.1em;
       }
     }