]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1139150: Support wrapping quoted comments in MarkDown
authorAlbert Ting <altlist@gmail.com>
Thu, 19 Mar 2015 07:39:53 +0000 (15:39 +0800)
committerByron Jones <glob@mozilla.com>
Thu, 19 Mar 2015 07:39:53 +0000 (15:39 +0800)
r=glob,a=glob

Bugzilla/Markdown.pm
skins/standard/global.css

index e9b0d1a17acc07f8e084687442b412570610fe4a..7b5d475f82d38003ca650f7cdbd362ba84625deb 100644 (file)
@@ -409,7 +409,7 @@ sub _DoBlockQuotes {
                         $pre =~ s/^  //mg;
                         $pre;
                     }egs;
-            "<blockquote>\n$bq\n</blockquote>\n\n";
+            "<blockquote class=\"markdown\">\n$bq\n</blockquote>\n\n";
         }egmx;
 
     return $text;
index 6e3b41fd75732fa17df41ffbada5b5bf6232bab4..3941808becb5f59a6020b4f4892c601412a261ab 100644 (file)
@@ -418,6 +418,17 @@ pre.bz_comment_text, .uneditable_textarea, tbody.file pre {
 
 /** End Comments **/
 
+/** Markdown **/
+blockquote.markdown {
+    border-left: 0.2em solid #CCC;
+    color: #65379C;
+    padding: 0 1em;
+    margin-left: 0.5em;
+    margin-bottom: 0em;
+    white-space: normal;
+}
+/** End Markdown **/
+
 .bz_default_hidden, .bz_tui_hidden, .bz_hidden_field, .bz_hidden_option {
     /* We have !important because we want elements with these classes to always
      * be hidden, even if there is some CSS that overrides it (we use these