[foundation-web] bylaws: Updated CSS to make the HTML render nicely in Firefox



commit 915936e69b4d6dbcb368a047f5f52b5da1168798
Author: Tobias Mueller (ideabox) <tobiasmue gnome org>
Date:   Tue Apr 2 03:39:23 2013 +0200

    bylaws: Updated CSS to make the HTML render nicely in Firefox
    
    While the previous version worked in Epiphany, it didn't in Firefox.
    This version works in both. And it looks semantically better.

 foundation.gnome.org/about/bylaws.css  |   21 +++++++++++----------
 foundation.gnome.org/about/bylaws.html |   21 +++++++++++----------
 2 files changed, 22 insertions(+), 20 deletions(-)
---
diff --git a/foundation.gnome.org/about/bylaws.css b/foundation.gnome.org/about/bylaws.css
index 7c21c6b..259d037 100644
--- a/foundation.gnome.org/about/bylaws.css
+++ b/foundation.gnome.org/about/bylaws.css
@@ -1,23 +1,24 @@
     body {
-        counter-reset: mySectionCounter, mySubSectionCounter;
-    }
-    h1 {
-        counter-increment: mySectionCounter;
-        counter-reset: mySubSectionCounter;
-    }
-    h1:after {
+        counter-reset: mySectionCounter;
     }
+
     h1:before {
+      counter-increment: mySectionCounter;
       content: 'ARTICLE ' counter(mySectionCounter, upper-roman) ' - ';
     }
 
-    h5:after {
+    h1 {
+        counter-reset: mySubSectionCounter;
     }
 
-    h2 {
-        counter-increment: mySubSectionCounter;
+    h1:after {
     }
 
     h2:before {
+      counter-increment: mySubSectionCounter;
       content: 'Section ' counter(mySectionCounter, decimal) '.' counter(mySubSectionCounter, decimal) ': ';
     }
+
+    h2 {
+    }
+
diff --git a/foundation.gnome.org/about/bylaws.html b/foundation.gnome.org/about/bylaws.html
index 5eb7cb0..fd9bd58 100644
--- a/foundation.gnome.org/about/bylaws.html
+++ b/foundation.gnome.org/about/bylaws.html
@@ -8,29 +8,30 @@
 <style type="text/css">
 
     body {
-        counter-reset: mySectionCounter, mySubSectionCounter;
-    }
-    h1 {
-        counter-increment: mySectionCounter;
-        counter-reset: mySubSectionCounter;
-    }
-    h1:after {
+        counter-reset: mySectionCounter;
     }
+
     h1:before {
+      counter-increment: mySectionCounter;
       content: 'ARTICLE ' counter(mySectionCounter, upper-roman) ' - ';
     }
 
-    h5:after {
+    h1 {
+        counter-reset: mySubSectionCounter;
     }
 
-    h2 {
-        counter-increment: mySubSectionCounter;
+    h1:after {
     }
 
     h2:before {
+      counter-increment: mySubSectionCounter;
       content: 'Section ' counter(mySectionCounter, decimal) '.' counter(mySubSectionCounter, decimal) ': ';
     }
 
+    h2 {
+    }
+
+
 </style>
 </head>
 <body>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]