doortts doortts 2016-12-24
markdown: more robust & clean rendering css
@00f1f291e098aa7711735367a8dd4c1d61dffd4c
app/assets/stylesheets/less/_markdown.less
--- app/assets/stylesheets/less/_markdown.less
+++ app/assets/stylesheets/less/_markdown.less
@@ -17,7 +17,15 @@
   font-size: 1.15em;
   clear: both;
   overflow: auto;
-  font-family: "Apple SD Gothic Neo", "Noto Sans", "New Roboto", "Nanum Gothic", "Malgun Gothic", sans-serif;
+  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Malgun Gothic", "Helvetica Neue", "Apple SD Gothic Neo", "Nanum Barun Gothic Light", "Nanum Barun Gothic", sans-serif;
+  -webkit-font-smoothing: antialiased;
+  -webkit-text-size-adjust: 100%;
+  -webkit-font-feature-settings: "kern" 1;
+  -moz-font-feature-settings: "kern" 1;
+  -o-font-feature-settings: "kern" 1;
+  font-feature-settings: "kern" 1;
+  font-kerning: normal;
+
   word-wrap: break-word;
 
   ul, ol {
@@ -43,6 +51,11 @@
   li > p {
     margin-top: 0;
     margin-bottom: 5px;
+  }
+
+  ul > li > p {
+    margin-top: 16px;
+    margin-bottom: 16px;
   }
 
   a {
@@ -147,6 +160,9 @@
     color: #777;
   }
 
+  li > img {
+    max-width:80%;
+  }
   img{
     max-width:100%;
     margin:10px 0; padding: 10px;
app/assets/stylesheets/less/_reponsive.less
--- app/assets/stylesheets/less/_reponsive.less
+++ app/assets/stylesheets/less/_reponsive.less
@@ -19,6 +19,9 @@
         p, ul, ol {
             font-size: 16px !important;
         }
+        li > img {
+            max-width: 100% !important;
+        }
         img {
             padding: 0 !important;
             box-shadow: none !important;
app/assets/stylesheets/less/_variables.less
--- app/assets/stylesheets/less/_variables.less
+++ app/assets/stylesheets/less/_variables.less
@@ -9,8 +9,8 @@
 @base-webfont-path: "../images/webfont";
 
 // Typography
-@base-font-family:"Apple SD Gothic Neo", "Noto Sans", "New Roboto", "Helvetica Neue", "Helvetica", "Arial", "나눔고딕", "NanumGothic", "NanumGothic", "NanumGothicOTF", "맑은 고딕", "Nanum Barun Gothic Light", sans-serif;
-@fixed-font-family: "Consolas", "Menlo", "Monaco", "Ubuntu Mono",  "source-code-pro", monospace;
+@base-font-family: -apple-system, BlinkMacSystemFont, "Noto Sans", "New Roboto", "Helvetica Neue", "Helvetica", "Apple SD Gothic Neo", "Arial", "나눔고딕", "NanumGothic", "NanumGothic", "NanumGothicOTF", "맑은 고딕", sans-serif;
+@fixed-font-family: Consolas, "Menlo", "Monaco", "Ubuntu Mono",  "source-code-pro", monospace;
 
 @base-font-size  : 13px;
 @base-line-height: 18px;
Add a comment
List