This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[wwwdocs] Introduce standard CSS for quoting e-mails


...and use it for projects/beginner.html.  

Observe how flexible CSS is, and with how little and logical
annotation in the HTML file we can accomplish such effects!

This fixes the issue of the new setting of gcc.gnu.org blocking
local styles.

Applied.

Gerald

Index: gcc.css
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc.css,v
retrieving revision 1.27
diff -u -r1.27 gcc.css
--- gcc.css	20 Jan 2016 17:42:34 -0000	1.27
+++ gcc.css	22 Jan 2016 05:27:29 -0000
@@ -55,6 +55,9 @@
 .boldmagenta { font-weight:bold; color:magenta; }
 .boldred     { font-weight:bold; color:red; }
 
+/* Quote an e-mail.  The first <div> has the sender, the second the quote. */
+blockquote.mail div:nth-child(2) { border-left: solid blue; padding-left: 4pt; }
+
 /* Classpath versus libgcj merge status page. */
 
 .classpath-only         { background-color: #FFFFAA; }
Index: projects/beginner.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/projects/beginner.html,v
retrieving revision 1.62
diff -u -r1.62 beginner.html
--- projects/beginner.html	7 Apr 2015 10:31:18 -0000	1.62
+++ projects/beginner.html	22 Jan 2016 05:27:29 -0000
@@ -904,9 +904,9 @@
 
 <verbatim> <!-- Work around a MetaHTML 5.091 bug, where div is considered a builtin. -->
 
-<blockquote>
+<blockquote class="mail">
 <div>Michael Meissner:</div>
-<div style="border-left: solid blue; padding-left: 4pt">
+<div>
 Actually I would imagine gcse handles clobbers [inside parallels] just
 fine and dandy, since it uses <code>single_set</code> which strips off
 the clobbers/uses if there is only one set.  What it doesn't handle is
@@ -917,18 +917,18 @@
 and modulus in one step.</div>
 </blockquote>
 
-<blockquote>
+<blockquote class="mail">
 <div>Richard Henderson:</div>
-<div style="border-left: solid blue; padding-left: 4pt">
+<div>
 Those don't get created until combine.
 <p>No, the real problem is that gcse doesn't handle hard registers,
 so the clobber of hard register 17 (flags) squelches everything.</p>
 </div>
 </blockquote>
 
-<blockquote>
+<blockquote class="mail">
 <div>Daniel Berlin:</div>
-<div style="border-left: solid blue; padding-left: 4pt">
+<div>
 The comment above hash_scan_insn claims it doesn't handle clobbers in
 parallels, yet the code appears to.
 </div>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]