svn: /web/php/trunk/styles/ doc.css

[email protected] (Hannes Magnusson)
Newsgroups php.webmaster
Message-ID <[email protected]>
bjori                                    Thu, 30 Dec 2010 10:00:53 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=306849

Log:
- Sorted the stylesheet a bit to make it easier to figure out which rules are
aimed at what
- Add margin for paragraphs, but not for notes/warnings/caution/tips
- Added a caution clone of notes/warnings/tips with orange header
- Treat synopsis as examples, and apache configs as well
- Spread some love around uls

Changed paths:
    U   web/php/trunk/styles/doc.css

Modified: web/php/trunk/styles/doc.css
===================================================================
--- web/php/trunk/styles/doc.css	2010-12-30 08:01:42 UTC (rev 306848)
+++ web/php/trunk/styles/doc.css	2010-12-30 10:00:53 UTC (rev 306849)
@@ -1,3 +1,7 @@
+/* vim: set et ts=4 sw=4 fdm=marker: : */
+
+
+/* {{{ The Quick TOC reference top on man pages */
 aside#quicktoc {
     padding: 10px;
     width: 125px;
@@ -5,20 +9,35 @@
     position: fixed;
     right: 0px;
 }
+/* }}} */
+
+/* {{{ General styles (p, parameters, initializers, ...) */
+.docs p {
+    margin: 0.7em 0;
+}
+.docs .methodname b {
+    color: #000;
+}
+
+.docs .parameter {
+    color: #604080;
+    font-weight: bold;
+}
+
 .docs i .parameter {
     font-style: normal;
 }

-.docs .refentry .methodsynopsis {
-    padding: 10px 20px;
-    margin: 1em 2em 1.3em;
-    border-top: 3px solid #ddd;
-    background: #efefef;
-    color: #666;
-    font-family: monospace;
+.docs .initializer {
+    color: #000;
 }
+/* }}} */

+
+
+/* {{{ Warning and notes */
 .docs div.warning,
+.docs div.caution,
 .docs div.tip,
 .docs blockquote.note {
     padding: 10px 20px;
@@ -37,40 +56,33 @@
     border-top: 3px solid #ff4d4d;
     background-color: #EFEFEF;
 }
-.docs blockquote.note, .docs div.warning, .docs div.tip {
+.docs div.caution {
+    border-top: 3px solid #F90;
+    background-color: #EFEFEF;
+}
+.docs blockquote.note, .docs div.warning, .docs div.caution, .docs div.tip {
     font-size: 1em;
     margin-right: 0.8em;
 }
-.docs div.warning b.warning, .docs div.tip b.tip {
+.docs div.warning b.warning, .docs div.caution b.caution, .docs div.tip b.tip {
     float: left;
     margin-right: 0.8em;
 }
-
-.docs .methodname b {
-    color: #000;
+.docs blockquote.note p, .docs div.warning p, .docs div.caution p, .docs div.tip p {
+    margin: 0;
 }
+/* }}} */

-.docs .parameter {
-    color: #604080;
-    font-weight: bold;
+.docs .refentry .methodsynopsis {
+    padding: 10px 20px;
+    margin: 1em 2em 1.3em;
+    border-top: 3px solid #ddd;
+    background: #efefef;
+    color: #666;
+    font-family: monospace;
 }

-.docs .initializer {
-    color: #000;
-}
-
-.docs th {
-    text-align: left;
-}
-
-.docs td, .docs th {
-    padding: 2px 5px;
-}
-
-.docs .refentry .description p {
-    margin: 0.7em 0;
-}
-
+/* {{{ Parameter listing */
 .docs .refentry .parameters dt {
     font-size: 1.2em;
 }
@@ -82,15 +94,19 @@
 .docs .refentry .parameters p {
     margin: 0.7em 0;
 }
+/* }}} */



+/* {{{ Examples (highlighting is in theme.css) */
 .docs .phpcode,
 .docs div.htmlcode,
 .docs div.inicode,
 .docs div.lscode,
 .docs div.shellcode,
 .docs div.HTTPcode,
+.docs div.apache-confcode,
+.docs pre.synopsis,
 .docs .screen {
     border: 1px solid #E2E1D5;
     background-color: #EFEFEF;
@@ -101,9 +117,18 @@
     margin: 15px;
     border-top: 1px solid #0a0;
 }
+/* }}} */


+/* {{{ Tables */
+.docs th {
+    text-align: left;
+}

+.docs td, .docs th {
+    padding: 2px 5px;
+}
+
 .docs .doctable {
     margin: 3px 30px;
     width: 100%;
@@ -120,5 +145,18 @@
 .docs .doctable td:last-child {
     border: 0px;
 }
+/* }}} */

+/* {{{ lists */
+ul.itemizedlist {
+    padding: 10px;
+    margin: 10px;
+    list-style-type: circle;
+}
+ul.simplelist {
+    padding: 10px;
+    margin: 10px;
+    list-style-type: disc;
+}
+/* }}} */
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.