[Notice] Announcing the End of Demo Server [Read me]
doortts doortts 2018-07-06
css: Adjust markdown some css to match github
- remove image shadow
- remove image border (only in README)
- add bottom line of H2 header

See: Yona Github issue #402
@688b83a08456d7e7310d6c7b4d9c8d72f12e4e41
app/assets/stylesheets/less/_markdown.less
--- app/assets/stylesheets/less/_markdown.less
+++ app/assets/stylesheets/less/_markdown.less
@@ -90,6 +90,7 @@
     margin: 1em 0 5px;
     font-size:1.5em;
     width: 95%;
+    border-bottom: 1px solid #eaecef;
     .anchor();
   }
 
@@ -121,7 +122,7 @@
   }
 
   p {
-    margin : 15px 0;
+    margin : 10px 0;
     line-height: 1.6em;
   }
 
@@ -153,12 +154,12 @@
   li > img {
     max-width:80%;
   }
+  
   img{
     max-width:100%;
     margin:10px 0;
     padding: 5px;
     border:1px solid rgba(0,0,0,0.1);
-    .box-shadow(2px 2px 5px rgba(0,0,0,0.15));
     .box-sizing(border-box);
     max-height: 300px;
   }
app/assets/stylesheets/less/_page.less
--- app/assets/stylesheets/less/_page.less
+++ app/assets/stylesheets/less/_page.less
@@ -2632,6 +2632,17 @@
             font-size: 1.2em;
         }
     }
+
+    .markdown-wrap {
+        img {
+            box-sizing: content-box;
+            background-color: #fff;
+            border-style: none;
+            box-shadow: none;
+            margin: 5px 0;
+            padding: 0;
+        }
+    }
 }
 
 .project-overview-home {
Add a comment
List