fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2011-08-09 09:07 am

[dw-free] FAQ Reference text/link on Support requests unreadable in Gradation

[commit: http://hg.dwscoalition.org/dw-free/rev/d7195edcdfe8]

http://bugs.dwscoalition.org/show_bug.cgi?id=3805

Use a class to set the color, to ensure readability across site schemes.

Patch by [personal profile] ninetydegrees.

Files modified:
  • htdocs/support/see_request.bml
--------------------------------------------------------------------------------
diff -r 4ff0055a5c41 -r d7195edcdfe8 htdocs/support/see_request.bml
--- a/htdocs/support/see_request.bml	Tue Aug 09 16:46:21 2011 +0800
+++ b/htdocs/support/see_request.bml	Tue Aug 09 17:06:50 2011 +0800
@@ -635,10 +635,10 @@
             # faq question
             my $faq = LJ::Faq->load( $le->{faqid}, lang => $curlang );
             $faq->render_in_place;
-            $ret .= "<div style='display: table; padding: 3px; background: <?emcolor?>; border: 1px solid #000000; margin-left: auto; margin-right: auto;'>\n";
+            $ret .= "<div style='display: table; padding: 3px; margin-left: auto; margin-right: auto;'>\n";
             # whitespace between these two DIVs is necessary for proper
             # rendering in IE 5 for Mac OS < X
-            $ret .= "<div style='text-align:center; padding: 5px;'>";
+            $ret .= "<div class='highlight-box' style='text-align:center;'>";
             $ret .= "<b>$ML{'.faq.reference'}:</b><br /><a href='faqbrowse?faqid=$le->{faqid}&view=full'>" . $faq->question_html . "</a></div></div>\n";
         }
         $ret .= "<p align='left' style='margin-top: 0px; margin-bottom: 0px;'>$message</p>\n";
--------------------------------------------------------------------------------