From 11e5eed004add86a4e658b8acf62806842c06498 Mon Sep 17 00:00:00 2001 From: life Date: Wed, 25 Nov 2015 20:40:31 +0800 Subject: [PATCH] markdown ace editor default css --- public/themes/default.css | 17 ++++++++++++----- public/themes/includes/markdown.less | 18 ++++++++++++------ 2 files changed, 24 insertions(+), 11 deletions(-) diff --git a/public/themes/default.css b/public/themes/default.css index a13e63ef..56030fee 100644 --- a/public/themes/default.css +++ b/public/themes/default.css @@ -2940,7 +2940,7 @@ textarea#wmd-input { padding-top: 5px; } #wmd-input.ace_editor { - color: #2c3e50; + color: #000000; } #wmd-input.ace-tm { background-color: #ffffff; @@ -2961,8 +2961,15 @@ textarea#wmd-input { color: #000000; font-weight: bold; } +#wmd-input.ace-tm .ace_markup.ace_heading.ace_1, +#wmd-input.ace-tm .ace_markup.ace_heading.ace_2, +#wmd-input.ace-tm .ace_markup.ace_heading.ace_3, +#wmd-input.ace-tm .ace_markup.ace_heading.ace_4, +#wmd-input.ace-tm .ace_markup.ace_heading.ace_5 { + color: rgba(87, 108, 130, 0.6); +} #wmd-input.ace-tm .ace_markup.ace_list { - color: #576c82; + color: #000000; } #wmd-input.ace-tm .ace_constant.ace_language { color: rgba(87, 108, 130, 0.6); @@ -2998,15 +3005,15 @@ textarea#wmd-input { background: inherit; } #wmd-input.ace-tm .ace_strong { - color: #384654; + color: #000000; font-weight: bold; } #wmd-input.ace-tm .ace_emphasis { - color: #1a2026; + color: #000000; font-style: italic; } #wmd-input.ace-tm .ace_blockquote { - color: #003873; + color: #000000; } #wmd-input.ace-tm .ace_code { color: #1a2026; diff --git a/public/themes/includes/markdown.less b/public/themes/includes/markdown.less index 5f49567b..025e6d5b 100644 --- a/public/themes/includes/markdown.less +++ b/public/themes/includes/markdown.less @@ -28,6 +28,9 @@ @mdAceBlockquoteColor: #003873; @mdAceCursorColor: #243342; +@mdAceTextColor: #000; +@mdAceTagColor: rgba(87, 108, 130, 0.6); + textarea#wmd-input { color: #000 !important; } @@ -60,14 +63,17 @@ textarea#wmd-input { // background-color: rgba(89, 128, 166, 0.05); } &.ace-tm .ace_markup.ace_heading { - color: @mdAceHeadingColor; + color: @mdAceTextColor; font-weight: bold; + &.ace_1,&.ace_2,&.ace_3,&.ace_4,&.ace_5 { + color: @mdAceTagColor; + } } &.ace-tm .ace_markup.ace_list { - color: #576c82; + color: @mdAceTextColor; } &.ace-tm .ace_constant.ace_language { - color: rgba(87, 108, 130, 0.6); + color: @mdAceTagColor; font-weight: normal; } &.ace-tm .ace_meta.ace_tag { @@ -100,15 +106,15 @@ textarea#wmd-input { background: inherit; } &.ace-tm .ace_strong { - color: #384654; + color: @mdAceTextColor; font-weight: bold; } &.ace-tm .ace_emphasis { - color: #1a2026; + color: @mdAceTextColor; font-style: italic; } &.ace-tm .ace_blockquote { - color: @mdAceBlockquoteColor; + color: @mdAceTextColor; } &.ace-tm .ace_code { color: #1a2026;