Commits

Mike Bayer committed 6c85d5b

CSS tweaks to support version styling in the latest versions of sphinx

Comments (0)

Files changed (1)

doc/build/static/docs.css

 }
 
 
-div.admonition, div.topic, p.deprecated, p.versionadded, p.versionchanged {
+div.admonition, div.topic, .deprecated, .versionadded, .versionchanged {
     border:1px solid #CCCCCC;
     padding:5px 10px;
     font-size:.9em;
     box-shadow: 2px 2px 3px #DFDFDF;
 }
 
+/* grrr sphinx changing your document structures, removing classes.... */
+
+.versionadded .versionmodified,
+.versionchanged .versionmodified,
+.deprecated .versionmodified,
+.versionadded > p:first-child > span:first-child,
+.versionchanged > p:first-child > span:first-child,
+.deprecated > p:first-child > span:first-child 
+{
+    background-color: #ECF0F3;
+    color: #990000;
+    font-style: italic;
+}
+
+
 div.inherited-member {
     border:1px solid #CCCCCC;
     padding:5px 5px;
     box-shadow: 2px 2px 3px #DFDFDF;
 }
 
-p.versionadded span.versionmodified,
-p.versionchanged span.versionmodified,
-p.deprecated span.versionmodified {
-    background-color: #ECF0F3;
-    color: #990000;
-    font-style: italic;
-}
-
 div.warning .admonition-title {
     color:#FF0000;
 }