a0244dc7fae1 initial-docs

docs: style tweaks
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Sat, 03 Jul 2010 16:18:48 -0400
parents 3a88cfd5c8b7
children 47104395a16d
branches/tags initial-docs
files docs/hgreview/static/review.css docs/hgreview/static/review.less

Changes

--- a/docs/hgreview/static/review.css	Sat Jul 03 16:18:43 2010 -0400
+++ b/docs/hgreview/static/review.css	Sat Jul 03 16:18:48 2010 -0400
@@ -115,6 +115,59 @@
   border: 0;
   padding: 0;
 }
+.document .documentwrapper .bodywrapper .clear-code-effects {
+  border: none;
+  background: none;
+  padding: 0;
+  line-height: 1;
+}
+.document .documentwrapper .bodywrapper h1 tt.docutils.literal span.pre {
+  margin: 0 0 0.75em;
+  font-size: 2em;
+}
+.document .documentwrapper .bodywrapper h2 tt.docutils.literal span.pre {
+  margin: 0 0 1em;
+  font-size: 1.5em;
+}
+.document .documentwrapper .bodywrapper h3 tt.docutils.literal span.pre {
+  margin: 0 0 1.286em;
+  font-size: 1.167em;
+}
+.document .documentwrapper .bodywrapper h4 tt.docutils.literal span.pre {
+  margin: 0 0 1.5em;
+  font-size: 1em;
+}
+.document .documentwrapper .bodywrapper h5 tt.docutils.literal span.pre {
+  margin: 0 0 1.8em;
+  font-size: .834em;
+}
+.document .documentwrapper .bodywrapper h6 tt.docutils.literal span.pre {
+  margin: 0 0 2em;
+  font-size: .75em;
+}
+.document .documentwrapper .bodywrapper h1 tt.docutils.literal,
+.document .documentwrapper .bodywrapper h2 tt.docutils.literal,
+.document .documentwrapper .bodywrapper h3 tt.docutils.literal,
+.document .documentwrapper .bodywrapper h4 tt.docutils.literal,
+.document .documentwrapper .bodywrapper h5 tt.docutils.literal,
+.document .documentwrapper .bodywrapper h6 tt.docutils.literal {
+  border: none;
+  background: none;
+  padding: 0;
+  line-height: 1;
+}
+.document .documentwrapper .bodywrapper h1 tt.docutils.literal span.pre,
+.document .documentwrapper .bodywrapper h2 tt.docutils.literal span.pre,
+.document .documentwrapper .bodywrapper h3 tt.docutils.literal span.pre,
+.document .documentwrapper .bodywrapper h4 tt.docutils.literal span.pre,
+.document .documentwrapper .bodywrapper h5 tt.docutils.literal span.pre,
+.document .documentwrapper .bodywrapper h6 tt.docutils.literal span.pre {
+  font-weight: bold;
+  border: none;
+  background: none;
+  padding: 0;
+  line-height: 1;
+}
 .document .sphinxsidebar {
   float: left;
   margin-left: -100%;
@@ -136,6 +189,19 @@
 .document .sphinxsidebar #searchbox .searchtip {
   display: none;
 }
+.document .sphinxsidebar .sphinxsidebarwrapper h4 {
+  margin-bottom: 0;
+}
+.document .sphinxsidebar .sphinxsidebarwrapper h3:nth-of-type(2) {
+  display: none;
+}
+.document .sphinxsidebar .sphinxsidebarwrapper ul.this-page-menu {
+  display: none;
+}
+.document .sphinxsidebar .sphinxsidebarwrapper ul li a span.pre {
+  font-size: 14px;
+  line-height: 24px;
+}
 .clearer {
   clear: both;
 }
@@ -146,12 +212,3 @@
   text-align: right;
   font-style: italic;
 }
-.sphinxsidebar .sphinxsidebarwrapper h4 {
-  margin-bottom: 0;
-}
-.sphinxsidebar .sphinxsidebarwrapper h3:nth-of-type(2) {
-  display: none;
-}
-.sphinxsidebar .sphinxsidebarwrapper ul.this-page-menu {
-  display: none;
-}
--- a/docs/hgreview/static/review.less	Sat Jul 03 16:18:43 2010 -0400
+++ b/docs/hgreview/static/review.less	Sat Jul 03 16:18:48 2010 -0400
@@ -119,6 +119,28 @@
                     padding: 0;
                 }
             }
+            .clear-code-effects {
+                border: none;
+                background: none;
+                padding: 0;
+                line-height: 1;
+            }
+            h1 tt.docutils.literal span.pre { margin: 0 0 0.75em; font-size: 2em; }
+            h2 tt.docutils.literal span.pre { margin: 0 0 1em; font-size: 1.5em; }
+            h3 tt.docutils.literal span.pre { margin: 0 0 1.286em; font-size: 1.167em; }
+            h4 tt.docutils.literal span.pre { margin: 0 0 1.5em; font-size: 1em; }
+            h5 tt.docutils.literal span.pre { margin: 0 0 1.8em; font-size: .834em; }
+            h6 tt.docutils.literal span.pre { margin: 0 0 2em; font-size: .75em; }
+            h1, h2, h3, h4, h5, h6 {
+                tt.docutils.literal {
+                    .clear-code-effects;
+
+                    span.pre {
+                        font-weight: bold;
+                        .clear-code-effects;
+                    }
+                }
+            }
         }
     }
     .sphinxsidebar {
@@ -146,6 +168,21 @@
                 display: none;
             }
         }
+        .sphinxsidebarwrapper {
+            h4 {
+                margin-bottom: 0;
+            }
+            h3:nth-of-type(2) {
+                display: none;
+            }
+            ul.this-page-menu {
+                display: none;
+            }
+            ul li a span.pre {
+                font-size: 14px;
+                line-height: 24px;
+            }
+        }
     }
 }
 .clearer {
@@ -158,14 +195,3 @@
     text-align: right;
     font-style: italic;
 }
-.sphinxsidebar .sphinxsidebarwrapper {
-    h4 {
-        margin-bottom: 0;
-    }
-    h3:nth-of-type(2) {
-        display: none;
-    }
-    ul.this-page-menu {
-        display: none;
-    }
-}