[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [29305] trunk/blender/source/blender/ python/doc/blender-org/static/default.css_t: == Sphinx theme ==

Alex Sytnik the.smerch at gmail.com
Mon Jun 7 15:57:15 CEST 2010


Revision: 29305
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=29305
Author:   smerch
Date:     2010-06-07 15:57:15 +0200 (Mon, 07 Jun 2010)

Log Message:
-----------
== Sphinx theme ==

Fixes and improvements:

1. Added indentation for code-blocks inside function, module, attribute.
2. Added line-height 150% to Warinigs inside function, module, attribute.
3. Class level Notes now dislplayed similar to class level Warnings.
4. Added css formating for code-block included into Warning.
5. Added css formationg for lists included into class, function, method, attribute objects.
6. Class level Warning/Notes indentation fixed.
7. Display of class level Warning/Notes tags fixed.
8. Class level Warnings are now displayed without 'Warning:' tag.
9. All paragraphs that belongs to function/method/attribute (which considered as Description) are now displayed with the same color.
10.Note/Warning tags now have the same color as the it's content.
11.Warning text are now bold.
12.For Methods/Functions only Parameter(s) render in blu (those must come first though).
13.Removed margin between "field-list" table and it's sibling.
14.Adjusted padding for "admonition" divs.
15.According to #15 adjusted bottom margin of dl element.
16.Warning and Note colors now a bit lighter.
17.According to #16 adjusted background for literal element inside Note.
18.Removed backrounds from notes/warnings.
19.Warning text color adjusted.
20.Added css hack for see also to hide "<>".
21.Warnings, Notes and SeeAlsos inside class/function/method etc will not break the text flow and unified with its content.
22.Literal's backgound that resides inisde warning and note blocks ajusted according to the type of block.
23.Fixed link to wiki in the page header was missing a "index.php/" /mindrones
24.Background for highlight is a bit darker now.

P.S. as always mindrones do his best at bug finding/testing and improvement proposals.

Modified Paths:
--------------
    trunk/blender/source/blender/python/doc/blender-org/static/default.css_t

Modified: trunk/blender/source/blender/python/doc/blender-org/static/default.css_t
===================================================================
--- trunk/blender/source/blender/python/doc/blender-org/static/default.css_t	2010-06-07 12:11:57 UTC (rev 29304)
+++ trunk/blender/source/blender/python/doc/blender-org/static/default.css_t	2010-06-07 13:57:15 UTC (rev 29305)
@@ -402,6 +402,88 @@
     content: ":";
 }
 
+dl div.admonition {
+    border:medium none;
+    margin:0;
+    padding:2px 5px 2px 0;
+}
+
+dl.class > dd > div.warning p.admonition-title,
+dl.class > dd > div.note p.admonition-title {
+    display:none;
+}
+
+dl.class > dd > div.admonition.warning p,
+dl.class > dd > div.admonition.note p {
+    margin:0;
+}
+
+dl.class > dd > div.admonition.warning,
+dl.class > dd > div.admonition.note {
+    margin-bottom:12px;
+}
+
+dl div.admonition.note p.admonition-title, dl div.admonition.warning p.admonition-title {
+    color:inherit;
+}
+
+dl div.admonition.warning p {
+    font-weight:bold;
+    line-height:150%;
+}
+
+dl div.admonition.warning p * {
+    font-weight:normal;
+}
+
+dl div.admonition p.admonition-title {
+    color:#555555;
+    display:block;
+    float:left;
+    margin:0;
+    padding-right:12px;
+    text-align:right;
+    width:90px;
+}
+
+dl div.admonition p.admonition-title+p, dl div.admonition p {
+    display:block;
+    margin:0 0 0 102px;
+}
+
+dl div.note {
+    background:none;
+    color:#E8E481;
+}
+
+dl div.warning {
+    background:none;
+    color:#FC3030;
+}
+
+dl div.seealso {
+    background:none;
+}
+
+dl div.admonition.seealso p+p {
+    color:#222;
+}
+
+dl div.seealso a {
+    margin-left:-1.3ex;
+}
+
+div.admonition.warning pre {
+    background: #0F0704;
+    color: #fc3030;
+}
+
+div.admonition pre {
+    margin: 6px 0;
+    overflow: visible;
+    white-space: pre-wrap;
+}
+
 pre {
     padding: 10px;
     background-color: #000;
@@ -424,7 +506,7 @@
     font-weight:bold;
 }
 
-dl.function table.field-list td.field-body, dl.method table.field-list td.field-body {
+dl.function table.field-list tr:first-child td.field-body, dl.method table.field-list tr:first-child td.field-body {
     color: #728c96;
 }
 
@@ -433,7 +515,8 @@
     display: block;
 }
 
-dl.function>dd>p,dl.method>dd>p,dl.attribute>dd>p {
+dl.function>dd>p,dl.method>dd>p,dl.attribute>dd>p,
+dl[class]>dd>ol,dl[class]>dd>ul {
     color: #999;
 }
 
@@ -449,7 +532,7 @@
     color: #82a3c7;
 }
 
-dl.class>dd>p {
+dl.class>dd>p,dl.class>dd>ol,dl.class>dd>ul {
     color: #637b96;
 }
 
@@ -457,7 +540,9 @@
     color: #fcb100;
 }
 
-dl.function>dd>p:first-child,dl.method>dd>p:first-child,dl.attribute>dd>p:first-child {
+dl.function>dd>p,dl.method>dd>p,dl.attribute>dd>p,
+dl.function>dd>p+ol,dl.method>dd>p+ol,dl.attribute>dd>p+ol,
+dl.function>dd>p+ul,dl.method>dd>p+ul,dl.attribute>dd>p+ul {
     color: #cb8f00;
 }
 
@@ -491,6 +576,10 @@
     background:inherit;
 }
 
+dl {
+    margin-bottom: 25px;
+}
+
 dd {
     margin: 3px 0 10px 15px;
 }
@@ -513,6 +602,15 @@
     background: #444;
 }
 
+dl .warning tt {
+    background:#0F0704;
+    display:block;
+}
+
+dl .note tt {
+    background:#2C2A1B;
+}
+
 table.indextable tr.cap {
     background-color: transparent;
 }
@@ -521,6 +619,10 @@
     width:90px;
 }
 
+dd table {
+    margin-bottom: 0;
+}
+
 table.field-list th {
     color:#555;
     padding:0;
@@ -535,5 +637,18 @@
 table.field-list td.field-body ul.first {
     padding-left:0;
     list-style:none;
+    margin-left:0;
 }
 
+dl.function>dd>ol, dl.method>dd>ol, dl.attribute>dd>ol,
+dl.function>dd>ul, dl.method>dd>ul, dl.attribute>dd>ul,
+dl.function>dd>div[class|="highlight"], dl.method>dd>div[class|="highlight"],
+dl.attribute>dd>div[class|="highlight"] {
+    margin-left:102px;
+}
+
+dl.function>dd>ol, dl.method>dd>ol, dl.attribute>dd>ol,
+dl.function>dd>ul, dl.method>dd>ul, dl.attribute>dd>ul,
+dl.class>dd>ol, dl.class>dd>ul {
+    padding-left:20px;
+}





More information about the Bf-blender-cvs mailing list