From 778c4c880e5fc1251286610c35aea5d5266fbe30 Mon Sep 17 00:00:00 2001 From: bryan newbold Date: Mon, 19 Jan 2009 06:23:59 -0500 Subject: Made changes so knowledge items get the TOC banged right. Probably looks bad in other browsers... --- bn_django/git_wiki/templates/git_wiki/item.html | 34 ++++++++++++++----------- bn_django/templates/base.html | 1 + static/style/default.css | 6 +++++ static/style/docutils.css | 32 ++++++++++++++++++++++- 4 files changed, 57 insertions(+), 16 deletions(-) diff --git a/bn_django/git_wiki/templates/git_wiki/item.html b/bn_django/git_wiki/templates/git_wiki/item.html index 98f1647..cf49753 100644 --- a/bn_django/git_wiki/templates/git_wiki/item.html +++ b/bn_django/git_wiki/templates/git_wiki/item.html @@ -5,27 +5,31 @@ {% endblock %} +{% block right_stuff %}{{block.super}} +Item name: + {{ item.name }}
+Item hash: + {{ item.id }}
+
+View as pdf,
+or as LaTeX,
+or see the raw source.
+
+Browse the changelog +
+{% endblock %} + {% block path %}{{ block.super }} » {{ item.path }}{% endblock %} -{% block title %}{% endblock %} +{% comment %} Needed the extra .title css info... {% endcomment %} +{% block title %}

{% if doc.title %}{{ doc.title }}{% else %}[Unititled Document]{% endif %}

{% endblock %} + +{% block subtitle %}{% if doc.subtitle %}{{doc.subtitle}}{% endif %}{% endblock %} {% block gitwiki %}   -{{ doc.html_body|safe }} -

-

Meta

- Item name: - {{ item.name }}
- Item sha1 hash: - {{ item.id }}
-
- - raw - - latex - - pdf - - log - +{{ doc.fragment|safe }}
{% endblock %} diff --git a/bn_django/templates/base.html b/bn_django/templates/base.html index 40830bd..921d6ad 100644 --- a/bn_django/templates/base.html +++ b/bn_django/templates/base.html @@ -61,6 +61,7 @@ {% block path %}{% endblock %}

{% block title %}Hey Hey Hey!{% endblock %}

+

{% block subtitle %}{% endblock %}

{% block right_stuff %} {% endblock %} diff --git a/static/style/default.css b/static/style/default.css index 97f588c..adc3bf5 100644 --- a/static/style/default.css +++ b/static/style/default.css @@ -23,6 +23,12 @@ h1 { font-size: 16pt; font-weight: bold; text-align: center; } +h2.pagesubtitle { + font-size: 12pt; + font-weight: bold; + font-style: italic; + text-align: center; + border-bottom: none; } h3 { margin: 0px; padding-top: 8px; diff --git a/static/style/docutils.css b/static/style/docutils.css index 764652f..6af98af 100644 --- a/static/style/docutils.css +++ b/static/style/docutils.css @@ -50,15 +50,18 @@ p.rubric { font-style: italic; } + h1.pagetitle { border-bottom: none; } + h1.title { text-align: center; font-size: 250%; margin-bottom: 0em; - border-bottom: 2px solid #aaa; + /*border-bottom: 2px solid #aaa;*/ + border-bottom: none; } h2.subtitle { @@ -90,6 +93,12 @@ h2 { border-bottom: 1px solid #aaa; } +h2.pagesubtitle { + border-bottom: none; + font-size: 100%; + text-align: center; +} + h3 { text-align: left; font-size: 130%; @@ -189,3 +198,24 @@ p.sidebar-subtitle { font-style: italic; color: #003a6b; } + +.contents { + font-size: small; + margin-left: 4px; + width: 190px; + height: 0px; + overflow: visible; + float: right; + position: relative; + left: 206px; + top: 100px; + color: #777777; + font-weight: bold; + font-size: 12px; } +.contents a.reference { + color: #7777DD; } +.contents a.reference:visited { + color: #7777DD; } +.contents a.reference:hover { + text-decoration: none; } + -- cgit v1.2.3