doortts doortts 2017-09-16
markdown: Adjust comment margin and elements alignment
@303b4c3169435b5eceab122cdd2affa0776daa94
app/assets/stylesheets/less/_markdown.less
--- app/assets/stylesheets/less/_markdown.less
+++ app/assets/stylesheets/less/_markdown.less
@@ -45,6 +45,7 @@
 
   > ul {
     margin-top: 14px;
+    margin-bottom: 7px;
   }
 
   a {
app/assets/stylesheets/less/_page.less
--- app/assets/stylesheets/less/_page.less
+++ app/assets/stylesheets/less/_page.less
@@ -2980,13 +2980,7 @@
 
                 .comment-body {
                     font-size: 1.1em;
-                    padding:15px 20px;
-                    :first-child {
-                        margin-top: 0;
-                    }
-                    :last-child {
-                        margin-bottom: 0;
-                    }
+                    padding: 5px 20px;
                 }
 
             }
@@ -3203,9 +3197,6 @@
     .border-radius(0 0 3px 3px);
     background: #FAFAFA;
     padding: 15px 20px;
-    :first-child {
-        margin-top: 0;
-    }
 }
 
 .write-comment-box {
Add a comment
List