This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[wwwdocs] Convert navigation table to CSS
- From: Gerald Pfeifer <gerald at pfeifer dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sat, 25 Feb 2017 12:47:21 +0100 (CET)
- Subject: [wwwdocs] Convert navigation table to CSS
- Authentication-results: sourceware.org; auth=none
While converting the web pages to CSS last year -- not the least due
to the strict Content-Security-Policy put in place for gcc.gnu.org --
this was the last item on my list.
With the change below, https://www.gnu.org/software/gcc/ (which does
not have a strict Content-Security-Policy) and https://gcc.gnu.org/
now look the same again.
On the way I also slightly reduced padding left of the navigation bar,
and converted one instance of cellspacing="0" to the corresponding CSS.
Applied.
Gerald
Index: gcc.css
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc.css,v
retrieving revision 1.46
diff -u -r1.46 gcc.css
--- gcc.css 27 Jan 2017 16:21:40 -0000 1.46
+++ gcc.css 25 Feb 2017 11:33:09 -0000
@@ -32,6 +32,11 @@
td.status .regress { font-size: 80%; }
td.status dd { margin-left:3ex; }
+table.nav {
+ padding-left: 32px;
+ border-spacing: 0pt;
+}
+
table.navitem tr:nth-child(1) {
border-color: #3366cc;
border-style: solid;
Index: style.mhtml
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/style.mhtml,v
retrieving revision 1.132
diff -u -r1.132 style.mhtml
--- style.mhtml 4 Dec 2016 23:21:06 -0000 1.132
+++ style.mhtml 25 Feb 2017 11:33:09 -0000
@@ -93,8 +93,8 @@
<group
</td> <!-- end of main frame -->
- <td valign="top" style="padding-left: 36px;"> <!-- nav frame -->
- <table border="0" cellspacing="0" cellpadding="2" width="10em">
+ <td valign="top"> <!-- nav frame -->
+ <table class="nav" border="0" cellpadding="2" width="10em">
<tr><td><table class="navitem" cellspacing="0" width="100%">
<tr><td>About GCC</td></tr>