From 57c26e3b4ab38c57de3e04ca24e511d67a781419 Mon Sep 17 00:00:00 2001 From: Rokt33r Date: Sat, 5 Dec 2015 19:12:56 +0900 Subject: [PATCH] =?UTF-8?q?Markdown=20style=E3=82=92=E5=B0=91=E3=81=97?= =?UTF-8?q?=E6=94=B9=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- browser/styles/mixins/marked.styl | 58 ++++++++++++++++++------------- 1 file changed, 34 insertions(+), 24 deletions(-) diff --git a/browser/styles/mixins/marked.styl b/browser/styles/mixins/marked.styl index 38f43318..1a5c44be 100644 --- a/browser/styles/mixins/marked.styl +++ b/browser/styles/mixins/marked.styl @@ -1,36 +1,38 @@ marked() - h1, h2, h3, h4, h5, h6, p - &:first-child - margin-top 0 hr border-top none border-bottom solid 1px borderColor - margin 15px 0 + margin 20px 0 + h1, h2, h3, h4, h5, h6 + margin 0 0 20px + font-weight 600 + * + h1, * + h2, * + h3, * + h4, * + h5, * + h6 + margin-top 25px h1 font-size 2em border-bottom solid 2px borderColor - margin 0.33em auto 0.67em + line-height 2.333em h2 - font-size 1.5em - margin 0.42em auto 0.83em + font-size 1.66em + line-height 2.07em h3 - font-size 1.17em - margin 0.5em auto 1em + font-size 1.33em + line-height 1.6625em h4 - font-size 1em - margin 0.67em auto 1.33em + font-size 1.15em + line-height 1.4375em h5 - font-size 0.83em - margin 0.84em auto 1.67em + font-size 1em + line-height 1.25em h6 - font-size 0.67em - margin 1.16em auto 2.33em - h1, h2, h3, h4, h5, h6 - font-weight 700 - line-height 1.8em + font-size 0.8em + line-height 1em + + * + p, * + blockquote, * + ul, * + ol, * + pre + margin-top 15px p - line-height 1.8em - margin 15px 0 25px + line-height 1.9em + margin 0 0 20px img max-width 100% strong @@ -41,15 +43,17 @@ marked() text-decoration line-through blockquote border-left solid 4px brandBorderColor - margin 15px 0 25px + margin 0 0 20px padding 0 25px ul list-style-type disc padding-left 35px - margin-bottom 35px + margin-bottom 20px li display list-item line-height 1.8em + &>li>ul, &>li>ol + margin 0 &>li>ul list-style-type circle &>li>ul @@ -57,10 +61,12 @@ marked() ol list-style-type decimal padding-left 35px - margin-bottom 35px + margin-bottom 20px li display list-item line-height 1.8em + &>li>ul, &>li>ol + margin 0 code font-family Monaco, Menlo, 'Ubuntu Mono', Consolas, source-code-pro, monospace; padding 2px 4px @@ -70,15 +76,19 @@ marked() color black text-decoration none background-color #F6F6F6 + margin-right 2px + * + code + margin-left 2px pre padding 5px border solid 1px borderColor border-radius 5px overflow-x auto - margin 15px 0 25px + margin 0 0 15px background-color #F6F6F6 line-height 1.35em &>code + margin 0 padding 0 border none border-radius 0