diff options
author | Israel Madueme <purelogiq@gmail.com> | 2018-08-10 14:57:01 +0200 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2018-08-10 14:57:01 +0200 |
commit | fd850e00db835d2b84c59014c3b1021fea2294fc (patch) | |
tree | b5529f9bf45bb2b8f66b19714d215f1ca6c06c94 /skins/standard | |
parent | 5a43b27f7940be9697f312c550fa2de11a9e14d7 (diff) | |
download | bugzilla-fd850e00db835d2b84c59014c3b1021fea2294fc.tar.gz bugzilla-fd850e00db835d2b84c59014c3b1021fea2294fc.tar.xz |
Bug 1456878 - Support markdown comments
Diffstat (limited to 'skins/standard')
-rw-r--r-- | skins/standard/global.css | 44 |
1 files changed, 42 insertions, 2 deletions
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); |