From fd850e00db835d2b84c59014c3b1021fea2294fc Mon Sep 17 00:00:00 2001 From: Israel Madueme Date: Fri, 10 Aug 2018 08:57:01 -0400 Subject: Bug 1456878 - Support markdown comments --- skins/standard/global.css | 44 ++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 42 insertions(+), 2 deletions(-) (limited to 'skins') diff --git a/skins/standard/global.css b/skins/standard/global.css index e7028f892..bf95dd84f 100644 --- a/skins/standard/global.css +++ b/skins/standard/global.css @@ -909,7 +909,12 @@ input.required, select.required, span.required_explanation { } #comment { - margin: 0px 0px 1em 0px; + margin: 0px 0px 0.5em 0px; +} + +#comment-markdown-tip { + display: flex; + align-items: center; } /*******************/ @@ -1411,7 +1416,8 @@ table.edit_form hr { left: 16px; } -.bz_comment_text span.quote, .bz_comment_text span.quote_wrapped { +.bz_comment_text span.quote, .bz_comment_text span.quote_wrapped, +div.bz_comment_text pre { background: #eee !important; color: #444 !important; display: block !important; @@ -1421,6 +1427,40 @@ table.edit_form hr { padding: 5px !important; } +/* Markdown comments */ +div.bz_comment_text { + white-space: normal; + padding: 0 8px 0 8px; + font-family: inherit !important; +} + +div.bz_comment_text code { + color: #444; + background-color: #eee; + font-size: 13px; + font-family: "Fira Mono","Droid Sans Mono",Menlo,Monaco,"Courier New",monospace; +} + +div.bz_comment_text table { + border-collapse: collapse; +} + +div.bz_comment_text th, div.bz_comment_text td { + padding: 5px 10px; + border: 1px solid #ccc; +} + +div.bz_comment_text hr { + display: block !important; +} + +div.bz_comment_text blockquote { + background: #fcfcfc; + border-left: 5px solid #ccc; + margin: 1.5em 10px; + padding: 0.5em 10px; +} + .bz_comment_tags { background: #eee; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1); -- cgit v1.2.3-24-g4f1b