public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [wwwdocs] Introduce standard CSS for quoting e-mails
@ 2016-01-22  5:38 Gerald Pfeifer
  0 siblings, 0 replies; only message in thread
From: Gerald Pfeifer @ 2016-01-22  5:38 UTC (permalink / raw)
  To: gcc-patches

...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>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-01-22  5:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-22  5:38 [wwwdocs] Introduce standard CSS for quoting e-mails Gerald Pfeifer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).