add h1 count
[libreriscv.git] / local.css
index 36119bd7a17a94864b331b0b0a2cae89d598df68..eafa5b89c02ffd2f3218ddf6a66ff2cf71d427c5 100644 (file)
--- a/local.css
+++ b/local.css
@@ -1,13 +1,12 @@
 body{
        font-family:arial,sans-serif; 
-       margin-left: 10px;
-       margin-right: 10px;
        margin-top: 20px;
        margin-bottom: 40px;
+    margin-left: 0px;
+    margin-right 0px;
     background-color: #fff8ff;
     color: #00000;
     width: 100%;
-    padding-right: -20px;
 }
 .actions{
        font-family:arial,sans-serif; 
@@ -15,11 +14,8 @@ body{
        text-align: left;
 }
 #content{
-       margin-left: 10px;
-       margin-right: 10px;
        text-align: left;
     width: 100%;
-    padding-right: -20px;
 }
 .pagedate{
        font-family: times;
@@ -44,16 +40,79 @@ p{
 ol{
        margin-left: 2em;
 }
+/* Counter Headings */
+body {
+counter-reset : h1;
+    }
+
+h1 {
+counter-reset : h2;
+    }
+
+h2 {
+counter-reset : h3;
+    }
+
+h3 {
+counter-reset : h4;
+    }
+
+h4 {
+counter-reset : h5;
+    }
+
+h5 {
+counter-reset : h6;
+    }
+
+#content h1:before {
+content : counter(h1,decimal) ". ";
+counter-increment : h1;
+    }
+
+#content h2:before {
+content : counter(h1,decimal) ". " counter(h2,decimal) ". ";
+counter-increment : h2;
+    }
+
+#content h3:before {
+content : counter(h1,decimal) ". " counter(h2,decimal) "." counter(h3,decimal) ". ";
+counter-increment : h3;
+    }
+
+#content h4:before {
+content : counter(h1,decimal) ". " counter(h2,decimal) "." counter(h3,decimal) "." counter(h4,decimal) ". ";
+counter-increment : h4;
+    }
+
+#content h5:before {
+content : counter(h1,decimal) ". " counter(h2,decimal) "." counter(h3,decimal) "." counter(h4,decimal) "." counter(h5,decimal) ". ";
+counter-increment : h5;
+    }
+
+#content h6:before {
+content : counter(h1,decimal) ". " counter(h2,decimal) "." counter(h3,decimal) "." counter(h4,decimal) "." counter(h5,decimal) "." counter(h6,decimal) ". ";
+counter-increment : h6;
+    }
+
+h1.nocount:before, h2.nocount:before, h3.nocount:before, h4.nocount:before, h5.nocount:before, h6.nocount:before {
+content : "";
+counter-increment : none;
+    }
+
+
 /* Headings */
 
-.pageheader { min-height: 100px; overflow: auto; }
+.pageheader { min-height: 100px; overflow: none; width: 95%; margin: 4px; }
 .header {
     height: 50px;
     background: #4b6983;
-    border: 2px solid #7590ae; 
+    /*border: 2px solid #7590ae; */
     color: #ffffff; 
     font-family: sans-serif;
     width: 100%;
+    margin: 4px;
+    padding: -4px;
 }
 .header a { margin-right: 1ex; color: #ffffff; font-family: sans-serif;}
 
@@ -115,8 +174,8 @@ form{
        padding-bottom: 2em;
 }
 textarea{
-       font-family: "Inconsolata", "monaco", "droid sans mono",fixed;
-       font-size: .9em;
+       /*font-family: "Inconsolata", "monaco", "droid sans mono",fixed;*/
+       /*font-size: .9em;*/
         border: solid 1px;
        width: 100%;
        margin-bottom: 10px;