[Commits] r705 - in sandbox/docsrc: _static _templates

commits at geoext.org commits at geoext.org
Wed May 13 01:40:10 CEST 2009


Author: tschaub
Date: 2009-05-13 01:40:10 +0200 (Wed, 13 May 2009)
New Revision: 705

Modified:
   sandbox/docsrc/_static/geoext.css
   sandbox/docsrc/_templates/layout.html
Log:
Custom header and navigation on every page.

Modified: sandbox/docsrc/_static/geoext.css
===================================================================
--- sandbox/docsrc/_static/geoext.css	2009-05-12 23:18:17 UTC (rev 704)
+++ sandbox/docsrc/_static/geoext.css	2009-05-12 23:40:10 UTC (rev 705)
@@ -1,4 +1,60 @@
+/* override sphinxdocs style declarations */
+body {
+    border: none;
+    background-color: white;
+}
 
+/* custom header */
+#header {
+    position: relative;
+    overflow: hidden;
+    background: #97b7e1 url(chrome/header-bg.png) 0 100% repeat-x;
+}
+#logo {
+    padding: 0;
+}
+#logo a {
+    margin: 12px 0 0;
+    float: left;
+    width: 300px;
+    height: 120px;
+    overflow: hidden;
+    text-indent: -9999em;
+    background: url(chrome/geoext-logo.png) no-repeat;
+}
+#top-nav {
+    position: absolute;
+    bottom: 42px;
+    right: 0;
+    list-style: none;
+    margin: 0;
+}
+
+#top-nav li {
+    display: inline;
+    margin: 0;
+    padding: 0 8px;
+    border-left: 1px solid #fff;
+}
+
+#top-nav li:first-child, #top-nav li.first {
+    border-left: 0;
+}
+
+#top-nav li a {
+    color: #fff;
+    font-weight: bold;
+    font-size: 1.2em;
+    text-decoration: none;
+    font-family: "Lucida Sans", "Lucida Sans Unicode", "Lucida Grande", Verdana, Arial, Helvetica, sans-serif;
+}
+
+#top-nav li a:hover {
+    color: #e0e0e0;
+}
+
+
+
 /* meta-info about a class/module get pulled out */
 .meta {
     float: right;
@@ -31,4 +87,5 @@
 /* making code samples less gigantic */
 pre {
     font-size: 0.8em;
-}
\ No newline at end of file
+}
+

Modified: sandbox/docsrc/_templates/layout.html
===================================================================
--- sandbox/docsrc/_templates/layout.html	2009-05-12 23:18:17 UTC (rev 704)
+++ sandbox/docsrc/_templates/layout.html	2009-05-12 23:40:10 UTC (rev 705)
@@ -1,4 +1,16 @@
 {% extends "!layout.html" %}
 {% block extrahead %}
     <link rel="stylesheet" href="{{ pathto('_static/geoext.css', 1) }}" type="text/css" />
+{% endblock %}
+{%- block header %}
+    <div id="header">
+        <h1 id="logo"><a href="{{ pathto('index') }}">GeoExt</a></h1>
+        <ul id="top-nav">
+            <li class="first"><a href="#">About</a></li>
+            <li><a href="http://geoext.blogspot.com">Blog</a></li>
+            <li><a href="{{ pathto('docs') }}">Documentation</a></li>
+            <li><a href="#">Demos</a></li>
+            <li><a href="http://www.geoext.org/trac/geoext/">Development</a></li>
+        </ul>
+    </div>
 {% endblock %}
\ No newline at end of file



More information about the Commits mailing list