]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
some font changes to match the site style
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 16 Apr 2011 00:41:13 +0000 (20:41 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 16 Apr 2011 00:41:13 +0000 (20:41 -0400)
doc/build/static/docs.css
doc/build/templates/layout.mako
doc/build/templates/search.mako
doc/build/templates/site_base.mako
doc/build/templates/static_base.mako

index 9518b9013f07d67c1fcfd6e2b980a7f803904db6..a2a7f274db305913d0a94a5be27a05692fe966bc 100644 (file)
@@ -1,40 +1,78 @@
-/* documentation section styles */
+body {
+  background-color: #FDFBFC;
+  margin:38px;
+  color:#333333;
+}
 
 body, td {
-       font-family: verdana, sans-serif;
-       font-size:.9em;
+  font-family: verdana, sans-serif;
+  font-size:.9em;
 }
 
-body {
-       background-color: #FDFBFC;
-       margin:38px;
-       color:#333333;
+h1, h2, h3, h4, h5 {
+  font-family:Tahoma,Geneva,sans-serif;
+  font-weight:normal;
+  font-family:arial,Helvetica, sans-serif;
+  font-weight:bold;
 }
 
+h1 {
+    font-size:20px;
+    line-height:22px;
+    color: #222222;
+    font-family:arial,Helvetica, sans-serif;
+    font-weight:normal;
+    margin: 0;
+    padding: 0;
+}
+h1, #topnav h2 {
+  font-family:Tahoma,Geneva,sans-serif;
+  font-weight:normal;
+}
 form {
     display:inline;
 }
 
 p {
-       margin-top:10px;
-       margin-bottom:10px;
+  margin-top:10px;
+  margin-bottom:10px;
 }
 
-
 a {
-        font-weight:normal; 
-        text-decoration:none;
+    font-weight:normal; 
+    text-decoration:none;
 }
-a:link {color:#0000FF;}
-a:visited {color:#0000FF;}
-a:active {color:#0000FF;}
-a:hover {color:#700000;}
 
+a:link, a:visited, a:active {
+    color:#0000FF;
+}
+a:hover {
+    color:#700000;
+}
 
 strong a {
     font-weight: bold;
 }
 
+.document {
+  border: solid 1px #ccc;
+}
+
+.document h1, .document h2, .document h3, .document h4, .document h5 {
+    font-size: 1.4em;
+}
+
+.document img {
+    display:block;
+    margin: 0 auto;
+}
+
+.document h1 {
+    display:none;
+}
+
+
+/* standard page elements */
 #search {
     float:right;
 }
@@ -43,7 +81,6 @@ strong a {
     padding:20px;
 }
 
-
 #navbanner {
 }
 
@@ -59,67 +96,38 @@ strong a {
 #pagecontrol li {
     font-size:.9em;
     list-style-type:none;
+    margin:0px;
+    padding:1px 8px;
 }
 
-.topnav {
-       background-color: #fbfbee;
-       border: solid 1px #ccc;
-       padding:10px;
-       margin:10px 0px 10px 0px;
-       display:block;
-}
-
-.document {
-       border: solid 1px #ccc;
+#topnav {
+  background-color: #fbfbee;
+  border: solid 1px #ccc;
+  padding:10px;
+  margin:10px 0px 10px 0px;
+  display:block;
 }
 
-.topnav .prevnext {
+#topnav .prevnext {
     padding: 5px 0px 0px 0px;
     /*font-size: 0.8em*/
 }
 
-h1, h2, h3, h4, h5 {
-    font-family:arial,helvetica,sans-serif;
-    font-weight:bold;
-}
-
-.document h1, .document h2, .document h3, .document h4, .document h5 {
-    font-size: 1.4em;
-}
-
-.document img {
-    display:block;
-    margin: 0 auto;
-}
-
-.document h1 {
-    display:none;
-}
-
-h1 {
-    font: normal 20px/22px arial,helvetica,sans-serif;
-    color: #222;
-    padding:0px;
-    margin:0px;
-}
-
-.topnav h2 {
+#topnav h2 {
     margin:8px 4px 0px 5px;
-    font-family:arial,helvetica,sans-serif;
     font-size:1.6em;
     font-weight:normal;
     line-height:1.6em;
 }
 
-.topnav h3 {
+#topnav h3 {
     font-weight: bold;
     font-size: 1.4em;
     margin:0px;
     display:inline;
-    font-family:verdana,sans-serif;
 }
 
-.topnav li,
+#navbanner li,
 li.toctree-l1,
 li.toctree-l1 li
 {
@@ -129,24 +137,51 @@ li.toctree-l1 li
 }
 
 
-.topnav li ul, 
+#topnav li ul, 
 li.toctree-l1 ul
 {
     padding:0px 0px 0px 20px;
 }
 
-.topnav li ul li li, 
-li.toctree-l1 ul li li
-{
-    /*font-size:.90em;*/
+#topnav li ul li li, 
+li.toctree-l1 ul li li {
 }
 
-.sourcelink {
-    font-size:.8em;
-    text-align:right;
-    padding-top:10px;
+.versionheader {
+    margin-top: 0.5em;
+}
+.versionnum {
+    font-weight: bold;
+}
+.prerelease {
+    border: solid #c25757 2px;
+    border-radius: 4px;
+    -moz-border-radius: 4px;
+    -webkit-border-radius: 4px;
+    background-color: #c21a1a;
+    color: white;
+    padding: 0.05em 0.2em;
 }
 
+.bottomnav {
+    background-color:#FBFBEE;
+    border:1px solid #CCCCCC;
+    float:right;
+    margin: 1em 0 1em 5px;
+    padding:10px;
+}
+
+.totoc {
+
+}
+
+.doc_copyright {
+    font-size:.85em;
+    padding:10px 0px 10px 0px;
+}
+
+/* ReST specific section padding */
+
 .section ul {
     padding: 0 0 0 25px;
 }
@@ -170,6 +205,8 @@ li.toctree-l1 ul li li
     margin:0px 0px 0px 20px;
 }
 
+/* special index sections */
+
 div#sqlalchemy-documentation {
   font-size:.95em;
 }
@@ -208,56 +245,15 @@ div#dialect-documentation {
   clear:left;
 }
 
-
-th.field-name {
-    text-align:right;
-}
-
-
-div.note, div.warning, p.deprecated  {
-    background-color:#EEFFEF;
-}
-
-
-div.admonition, div.topic, p.deprecated {
-    border:1px solid #CCCCCC;
-    margin:5px 5px 5px 5px;
-    padding:5px 5px 5px 35px;
-    font-size:.9em;
-}
-
-div.warning .admonition-title {
-    color:#FF0000;
-}
-
-div.admonition .admonition-title {
-    font-weight:bold;
-}
-
-.bottomnav {
-    background-color:#FBFBEE;
-    border:1px solid #CCCCCC;
-    float:right;
-    margin: 1em 0 1em 5px;
-    padding:10px;
-}
-
-.totoc {
-
-}
-
-.doc_copyright {
-    font-size:.85em;
-    padding:10px 0px 10px 0px;
-}
+/* SQL popup, code styles */
 
 pre {
-       background-color: #f0f0f0;      
-       border: solid 1px #ccc;
-       padding:10px;
-       margin: 5px 5px 5px 5px;
-       overflow:auto;
-       line-height:1.3em;
+  background-color: #f0f0f0;  
+  border: solid 1px #ccc;
+  padding:10px;
+  margin: 5px 5px 5px 5px;
+  overflow:auto;
+  line-height:1.3em;
 }
 
 .popup_sql, .show_sql
@@ -269,16 +265,16 @@ pre {
 
 .sql_link
 {
-       font-weight:normal;
-       font-family: arial, sans-serif;
+  font-weight:normal;
+  font-family: arial, sans-serif;
     text-transform: uppercase;
-       font-size: 0.9em;
-       color:#666;
-       border:1px solid;
-       padding:1px 2px 1px 2px;
-       margin:0px 10px 0px 15px;
-       float:right;
-       line-height:1.2em;
+  font-size: 0.9em;
+  color:#666;
+  border:1px solid;
+  padding:1px 2px 1px 2px;
+  margin:0px 10px 0px 15px;
+  float:right;
+  line-height:1.2em;
 }
 
 #docs a.sql_link, .sql_link
@@ -294,25 +290,34 @@ pre {
     background-color: #900;
 }
 
-.versionheader {
-    margin-top: 0.5em;
+/* other assorted ReST styles */
+
+th.field-name {
+    text-align:right;
 }
-.versionnum {
-    font-weight: bold;
+
+div.note, div.warning, p.deprecated  {
+    background-color:#EEFFEF;
+}
+
+div.admonition, div.topic, p.deprecated {
+    border:1px solid #CCCCCC;
+    margin:5px 5px 5px 5px;
+    padding:5px 5px 5px 35px;
+    font-size:.9em;
+}
+
+div.warning .admonition-title {
+    color:#FF0000;
+}
+
+div.admonition .admonition-title {
+    font-weight:bold;
 }
 
 .viewcode-back, .viewcode-link {
     float:right;
 }
-.prerelease {
-    border: solid #c25757 2px;
-    border-radius: 4px;
-    -moz-border-radius: 4px;
-    -webkit-border-radius: 4px;
-    background-color: #c21a1a;
-    color: white;
-    padding: 0.05em 0.2em;
-}
 
 dl.function > dt,
 dl.attribute > dt,
@@ -375,10 +380,10 @@ tt {
 @media print {
   #nav { display: none; }
   #pagecontrol { display: none; }
-  .topnav .prevnext { display: none; }
+  #topnav .prevnext { display: none; }
   .bottomnav { display: none; }
   .totoc { display: none; }
-  .topnav ul li a { text-decoration: none; color: #000; }
+  #topnav ul li a { text-decoration: none; color: #000; }
 }
 
 /* syntax highlighting overrides */
index 1bfa5c985194c5035cfbde4b834299d4bc8fd067..025e22f8013603fa9fe3a066ce03b00857b523fb 100644 (file)
@@ -1,7 +1,7 @@
 ## coding: utf-8
 <%inherit file="${context['mako_layout']}"/>
 
-<%def name="headers()">
+<%block name="headers">
     <link rel="stylesheet" href="${pathto('_static/pygments.css', 1)}" type="text/css" />
     <link rel="stylesheet" href="${pathto('_static/docs.css', 1)}" type="text/css" />
 
     % if prevtopic:
         <link rel="prev" title="${prevtopic['title']|util.striptags}" href="${prevtopic['link']|h}" />
     % endif
-    ${self.extrahead()}
-</%def>
-<%def name="extrahead()"></%def>
+</%block>
 
-        <h1>${docstitle|h}</h1>
+<h1>${docstitle|h}</h1>
 
-        <div id="search">
-        Search:
-        <form class="search" action="${pathto('search')}" method="get">
-          <input type="text" name="q" size="18" /> <input type="submit" value="${_('Search')}" />
-          <input type="hidden" name="check_keywords" value="yes" />
-          <input type="hidden" name="area" value="default" />
-        </form>
-        </div>
+<div id="search">
+Search:
+<form class="search" action="${pathto('search')}" method="get">
+  <input type="text" name="q" size="18" /> <input type="submit" value="${_('Search')}" />
+  <input type="hidden" name="check_keywords" value="yes" />
+  <input type="hidden" name="area" value="default" />
+</form>
+</div>
 
-        <div class="versionheader">
-            Version: <span class="versionnum">${release}</span> Last Updated: ${last_updated}
-        </div>
-        <div class="clearboth"></div>
+<div class="versionheader">
+    Version: <span class="versionnum">${release}</span> Last Updated: ${last_updated}
+</div>
+<div class="clearboth"></div>
 
-        <div class="topnav">
-            <div id="pagecontrol">
-                <ul>
-                % if prevtopic:
-                    <li>Prev:
-                    <a href="${prevtopic['link']|h}" title="${_('previous chapter')}">${prevtopic['title']}</a>
-                    </li>
-                % endif
-                % if nexttopic:
-                    <li>Next:
-                    <a href="${nexttopic['link']|h}" title="${_('next chapter')}">${nexttopic['title']}</a>
-                    </li>
-                % endif
+<div id="topnav">
+    <div id="pagecontrol">
+        <ul>
+        % if prevtopic:
+            <li>Prev:
+            <a href="${prevtopic['link']|h}" title="${_('previous chapter')}">${prevtopic['title']}</a>
+            </li>
+        % endif
+        % if nexttopic:
+            <li>Next:
+            <a href="${nexttopic['link']|h}" title="${_('next chapter')}">${nexttopic['title']}</a>
+            </li>
+        % endif
 
-                <li>
-                    <a href="${pathto('contents')}">Table of Contents</a> |
-                    <a href="${pathto('genindex')}">Index</a>
-                    % if sourcename:
-                    | <a href="${pathto('_sources/' + sourcename, True)|h}">${_('view source')}
-                    % endif
-                </li>
-                </ul>
-            </div>
-            <div id="navbanner">
-                <a class="totoc" href="${pathto('index')}">${docstitle|h}</a>
-                % if parents:
-                    % for parent in parents:
-                        » <a href="${parent['link']|h}" title="${parent['title']}">${parent['title']}</a>
-                    % endfor
-                % endif
-                % if current_page_name != 'index':
-                » ${self.show_title()} 
-                % endif
+        <li>
+            <a href="${pathto('contents')}">Table of Contents</a> |
+            <a href="${pathto('genindex')}">Index</a>
+            % if sourcename:
+            | <a href="${pathto('_sources/' + sourcename, True)|h}">${_('view source')}
+            % endif
+        </li>
+        </ul>
+    </div>
+    <div id="navbanner">
+        <a class="totoc" href="${pathto('index')}">${docstitle|h}</a>
+        % if parents:
+            % for parent in parents:
+                » <a href="${parent['link']|h}" title="${parent['title']}">${parent['title']}</a>
+            % endfor
+        % endif
+        % if current_page_name != 'index':
+        » ${self.show_title()} 
+        % endif
 
-                <h2>
-                    ${self.show_title()} 
-                </h2>
-            % if display_toc and \
-                    not current_page_name.startswith('index') and \
-                    not current_page_name.startswith('contents'):
-                ${toc}
+        <h2>
+            <%block name="show_title">
+            % if title:
+                ${title}
             % endif
-            </div>
-            <div class="clearboth"></div>
-        </div>
+            </%block>
+        </h2>
+    % if display_toc and \
+            not current_page_name.startswith('index') and \
+            not current_page_name.startswith('contents'):
+        ${toc}
+    % endif
+    </div>
+    <div class="clearboth"></div>
+</div>
 
-        <div class="document">
-            <div class="body">
-                ${next.body()}
-            </div>
-        </div>
+<div class="document">
+    <div class="body">
+        ${next.body()}
+    </div>
+</div>
 
-        <%def name="footer()">
-            <div class="bottomnav">
-                % if prevtopic:
-                    Previous:
-                    <a href="${prevtopic['link']|h}" title="${_('previous chapter')}">${prevtopic['title']}</a>
-                % endif
-                % if nexttopic:
-                    Next:
-                    <a href="${nexttopic['link']|h}" title="${_('next chapter')}">${nexttopic['title']}</a>
-                % endif
-                <div class="doc_copyright">
-                % if hasdoc('copyright'):
-                    &copy; <a href="${pathto('copyright')}">Copyright</a> ${copyright|h}.
-                % else:
-                    &copy; Copyright ${copyright|h}.
-                % endif
-                % if show_sphinx:
-                    Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> ${sphinx_version|h}.
-                % endif
-                </div>
-            </div>
-        </%def>
-        ${self.footer()}
+<%block name="footer">
+    <div class="bottomnav">
+        % if prevtopic:
+            Previous:
+            <a href="${prevtopic['link']|h}" title="${_('previous chapter')}">${prevtopic['title']}</a>
+        % endif
+        % if nexttopic:
+            Next:
+            <a href="${nexttopic['link']|h}" title="${_('next chapter')}">${nexttopic['title']}</a>
+        % endif
+        <div class="doc_copyright">
+        % if hasdoc('copyright'):
+            &copy; <a href="${pathto('copyright')}">Copyright</a> ${copyright|h}.
+        % else:
+            &copy; Copyright ${copyright|h}.
+        % endif
+        % if show_sphinx:
+            Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> ${sphinx_version|h}.
+        % endif
+        </div>
+    </div>
+</%block>
 
-<%def name="show_title()">
-% if title:
-    ${title}
-% endif
-</%def>
 
index dfad4d0e56d2c3663d84f899249b42c7707ab18a..d4ef4d333febd299075955dc30475703ffdae212 100644 (file)
@@ -3,7 +3,9 @@
 <%!
     local_script_files = ['_static/searchtools.js']
 %>
-<%def name="show_title()">${_('Search')}</%def>
+<%block name="show_title">
+    ${_('Search')}
+</%block>
 
 <div id="searchform">
 <h3>Enter Search Terms:</h3>
@@ -16,7 +18,7 @@
 
 <div id="search-results"></div>
 
-<%def name="footer()">
+<%block name="footer">
     ${parent.footer()}
     <script type="text/javascript" src="searchindex.js"></script>
-</%def>
+</%block>
index 76777b7fdc840d72c14a666e5dab1dd7f43f184a..90aa9be615144bdc5e039693396bb48efd7e905d 100644 (file)
@@ -19,7 +19,8 @@ ${next.body()}
 ${'</%text>'}
 
 <%text><%def name="style()"></%text>
-    ${self.headers()}
+    <%block name="headers"/>
+
     <%text>${parent.style()}</%text>
     <link href="/css/site_docs.css" rel="stylesheet" type="text/css"></link>
 <%text></%def></%text>
index eaca5ced64c07f6aedee4a3b09cc8b38e8a01696..c3be6d4036459f879e5c611889039b03434435b1 100644 (file)
@@ -6,7 +6,7 @@
         <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
         ${metatags and metatags or ''}
         <title>${capture(self.show_title)|util.striptags} &mdash; ${docstitle|h}</title>
-        ${self.headers()}
+        <%block name="headers"/>
     </head>
     <body>
         ${next.body()}