diff mbox

[wwwdocs] Reduce use of MetaHTML for navigation

Message ID alpine.LSU.2.20.1604162359450.9804@anthias.pfeifer.com
State New
Headers show

Commit Message

Gerald Pfeifer April 17, 2016, 8:50 a.m. UTC
When I initially created this in the early 2000s, CSS did barely 
exist and was hardly used.  Now in 2016 it makes sense to use it
fully (a first phase of conversation happened a few years ago)
and reduce our dependency on MetaHTML even further.

And it even simplifies things, once again.

Applied.

Gerald

Instead of emulating CSS via MetaHTML, use real CSS for the 
navigation bar on the left of the main, java, and libstdc++ pages.
diff mbox

Patch

Index: gcc.css
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc.css,v
retrieving revision 1.40
diff -u -r1.40 gcc.css
--- gcc.css	10 Apr 2016 08:42:40 -0000	1.40
+++ gcc.css	16 Apr 2016 21:55:31 -0000
@@ -32,7 +32,7 @@ 
 td.status .regress { font-size: 80%; }
 td.status dd { margin-left:3ex; }
 
-.td_title {
+table.navitem tr:nth-child(1) {
   border-color: #3366cc;
   border-style: solid;
   border-width: thin;
@@ -40,8 +40,7 @@ 
   background-color: #0066dd;
   font-weight: bold;
 }
-
-.td_con {
+table.navitem tr:nth-child(2) {
   padding-top: 3px;
   padding-left: 8px;
   padding-bottom: 3px;
Index: style.mhtml
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/style.mhtml,v
retrieving revision 1.127
diff -u -r1.127 style.mhtml
--- style.mhtml	14 Feb 2016 14:22:18 -0000	1.127
+++ style.mhtml	16 Apr 2016 21:55:31 -0000
@@ -116,11 +116,11 @@ 
 
   <if <match <get-var env::PREPROCESS_FILE> "java/[^/]*.html">
    <group
-    <tr><td><table cellspacing="0" width="100%">
-    <tr <nav-title-style> ><td align="center" valign="middle">
+    <tr><td><table class="navitem" cellspacing="0" width="100%">
+    <tr><td align="center" valign="middle">
     <img src="gcj.jpg" alt="GCJ" width="136" height="98" />
     </td></tr>
-    <tr><td <nav-body-style> >
+    <tr><td>
     <p>
     <a href="index.html">GCJ Home</a><br />
     <a href="../">GCC Home</a><br />
@@ -137,9 +137,9 @@ 
 
   <if <match <get-var env::PREPROCESS_FILE> "libstdc../[^/]*.html">
    <group
-    <tr><td><table cellspacing="0" width="100%">
-    <tr><td <nav-title-style> >libstdc++ v3</td></tr>
-    <tr><td <nav-body-style> >
+    <tr><td><table class="navitem" cellspacing="0" width="100%">
+    <tr><td>libstdc++ v3</td></tr>
+    <tr><td>
     <a href="./">libstdc++ Home</a><br />
     <a href="../">GCC Home</a><br />
     <a href="https://gcc.gnu.org/onlinedocs/libstdc++/faq.html">FAQ</a><br />
@@ -149,9 +149,9 @@ 
    >
   >
 
-  <tr><td><table cellspacing="0" width="100%">
-  <tr><td <nav-title-style> >About GCC</td></tr>
-  <tr><td <nav-body-style> >
+  <tr><td><table class="navitem" cellspacing="0" width="100%">
+  <tr><td>About GCC</td></tr>
+  <tr><td>
   <a href="<get-var BACKPATH>gccmission.html">Mission Statement</a><br />
   <a href="<get-var BACKPATH>releases.html">Releases</a><br />
   <a href="<get-var BACKPATH>snapshots.html">Snapshots</a><br />
@@ -171,9 +171,9 @@ 
   </td></tr>
   </table></td></tr>
 
-  <tr><td><table cellspacing="0" width="100%">
-  <tr><td <nav-title-style> >Documentation</td></tr>
-  <tr><td <nav-body-style> >
+  <tr><td><table class="navitem" cellspacing="0" width="100%">
+  <tr><td>Documentation</td></tr>
+  <tr><td>
   <a href="https://gcc.gnu.org/install/">Installation</a><br />
   &middot;&nbsp;<a href="https://gcc.gnu.org/install/specific.html">Platforms</a><br />
   <a href="<get-var BACKPATH>onlinedocs/">Manual</a><br />
@@ -183,17 +183,17 @@ 
   </td></tr>
   </table></td></tr>
  
-  <tr><td><table cellspacing="0" width="100%">
-  <tr><td <nav-title-style> >Download</td></tr>
-  <tr><td <nav-body-style> >
+  <tr><td><table class="navitem" cellspacing="0" width="100%">
+  <tr><td>Download</td></tr>
+  <tr><td>
   <a href="<get-var BACKPATH>mirrors.html">Mirrors</a><br />
   <a href="https://gcc.gnu.org/install/binaries.html">Binaries</a>
   </td></tr>
   </table></td></tr>
 
-  <tr><td><table cellspacing="0" width="100%">
-  <tr><td <nav-title-style> >Sources</td></tr>
-  <tr><td <nav-body-style> >
+  <tr><td><table class="navitem" cellspacing="0" width="100%">
+  <tr><td>Sources</td></tr>
+  <tr><td>
   <a href="<get-var BACKPATH>svn.html">SVN read access</a><br />
   <a href="<get-var BACKPATH>svnwrite.html">SVN write access</a><br />
   <a href="https://gcc.gnu.org/wiki/GitMirror">Git read access</a><br />
@@ -201,9 +201,9 @@ 
   </td></tr>
   </table></td></tr>
 
-  <tr><td><table cellspacing="0" width="100%">
-  <tr><td <nav-title-style> >Development</td></tr>
-  <tr><td <nav-body-style> >
+  <tr><td><table class="navitem" cellspacing="0" width="100%">
+  <tr><td>Development</td></tr>
+  <tr><td>
   <a href="<get-var BACKPATH>develop.html">Development Plan</a><br />
   &middot;&nbsp;<a href="<get-var BACKPATH>develop.html#timeline">Timeline</a><br />
   <a href="<get-var BACKPATH>contribute.html">Contributing</a><br />
@@ -218,9 +218,9 @@ 
   </td></tr>
   </table></td></tr>
 
-  <tr><td><table cellspacing="0" width="100%">
-  <tr><td <nav-title-style> >Bugs</td></tr>
-  <tr><td <nav-body-style> >
+  <tr><td><table class="navitem" cellspacing="0" width="100%">
+  <tr><td>Bugs</td></tr>
+  <tr><td>
   <a href="<get-var BACKPATH>bugs/#known">Known bugs</a><br />
   <a href="<get-var BACKPATH>bugs/">How to report</a><br />
   <a href="https://gcc.gnu.org/bugzilla/">Bug&nbsp;tracker</a><br />