[armedbear-cvs] r13543 - public_html

mevenson at common-lisp.net mevenson at common-lisp.net
Sun Aug 28 08:25:33 UTC 2011


Author: mevenson
Date: Sun Aug 28 01:25:32 2011
New Revision: 13543

Log:
Number the FAQ questions and answers via CSS.

Added:
   public_html/faq-style.css
Modified:
   public_html/faq.shtml
   public_html/style.css

Added: public_html/faq-style.css
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ public_html/faq-style.css	Sun Aug 28 01:25:32 2011	(r13543)
@@ -0,0 +1,20 @@
+/* Use CSS2 to automatically number the FAQ questions and answer */
+ol#toc {
+    counter-reset: question;
+}
+ol#toc  li {
+    list-style: none;
+}
+ol#toc > li  li:before {
+    content: counter(question) ". "; 
+    counter-increment: question;
+}
+
+div#general {
+    counter-reset: answer;
+}
+div#general h3:before {
+    content: counter(answer) ". "; 
+    counter-increment: answer
+}
+

Modified: public_html/faq.shtml
==============================================================================
--- public_html/faq.shtml	Sun Aug 28 00:46:16 2011	(r13542)
+++ public_html/faq.shtml	Sun Aug 28 01:25:32 2011	(r13543)
@@ -5,6 +5,7 @@
 <head>
   <title>FAQ: ABCL - Common Lisp on the JVM</title>
   <link rel="stylesheet" type="text/css" href="style.css" />
+  <link rel="stylesheet" type="text/css" href="faq-style.css" />
   <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
 </head>
 

Modified: public_html/style.css
==============================================================================
--- public_html/style.css	Sun Aug 28 00:46:16 2011	(r13542)
+++ public_html/style.css	Sun Aug 28 01:25:32 2011	(r13543)
@@ -84,3 +84,4 @@
   color:             #fff;
   padding-left:       2ex;
 }
+




More information about the armedbear-cvs mailing list