This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[wwwdocs] Move formatting for <h1> to CSS (and add some color)
- From: Gerald Pfeifer <gerald at pfeifer dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 5 Apr 2011 15:58:30 +0200 (CEST)
- Subject: [wwwdocs] Move formatting for <h1> to CSS (and add some color)
Isn't CSS nice? So much easier than doing things the classic way,
even when the latter used macros. :-)
Applied, and gcc.gnu.org regenerated.
Gerald
Index: gcc.css
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc.css,v
retrieving revision 1.9
diff -u -r1.9 gcc.css
--- gcc.css 4 Apr 2011 23:27:39 -0000 1.9
+++ gcc.css 5 Apr 2011 13:53:24 -0000
@@ -9,6 +9,8 @@
a:visited { color: #0000bb; text-decoration: none; }
a:hover { color: orange; text-decoration: none; }
+h1 { color: #FF8C00; text-align:center;" }
+
dl.news dt { font-weight:bold; }
dl.news dd { margin-left:3ex; }
Index: style.mhtml
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/style.mhtml,v
retrieving revision 1.111
diff -u -r1.111 style.mhtml
--- style.mhtml 4 Apr 2011 23:58:25 -0000 1.111
+++ style.mhtml 5 Apr 2011 13:53:24 -0000
@@ -91,14 +91,6 @@
<verbatim>- GNU Project - Free Software Foundation (FSF)</title></verbatim>
</define-container>
-;;; Redefine the <h1> tag to add our own style.
-
-<define-container h1>
-<verbatim><h1 align="center"></verbatim>
-%body
-<verbatim></h1></verbatim>
-</define-container>
-
;;; Redefine the <body> tag introducing our own color scheme and adding an
;;; "about" link and a "last modified" at the bottom.