From b345c227b213835d6c57d36dfd3143c208b7f8c4 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Thu, 5 Jan 2012 13:07:44 -0500 Subject: More &yet branding --- docs/_static/haiku.css | 21 ++++++++++++ docs/_static/header.png | Bin 16588 -> 98587 bytes docs/_static/images/from_&yet.png | Bin 0 -> 2812 bytes docs/_templates/layout.html | 70 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 91 insertions(+) create mode 100644 docs/_static/images/from_&yet.png create mode 100644 docs/_templates/layout.html diff --git a/docs/_static/haiku.css b/docs/_static/haiku.css index 9651d11f..41e0eb45 100644 --- a/docs/_static/haiku.css +++ b/docs/_static/haiku.css @@ -409,3 +409,24 @@ div.viewcode-block:target { padding: 0 12px; } + +#from_andyet { + -webkit-box-shadow: #CCC 0px 0px 3px; + background: rgba(255, 255, 255, 1); + bottom: 0px; + right: 17px; + padding: 3px 10px; + position: fixed; +} + +#from_andyet h2 { + background-image: url("images/from_&yet.png"); + background-repeat: no-repeat; + height: 29px; + line-height: 0; + text-indent: -9999em; + width: 79px; + margin-top: 0; + margin: 0px; + padding: 0px; +} diff --git a/docs/_static/header.png b/docs/_static/header.png index 2aaa53a1..19310618 100644 Binary files a/docs/_static/header.png and b/docs/_static/header.png differ diff --git a/docs/_static/images/from_&yet.png b/docs/_static/images/from_&yet.png new file mode 100644 index 00000000..ed5d8f33 Binary files /dev/null and b/docs/_static/images/from_&yet.png differ diff --git a/docs/_templates/layout.html b/docs/_templates/layout.html new file mode 100644 index 00000000..de6f7244 --- /dev/null +++ b/docs/_templates/layout.html @@ -0,0 +1,70 @@ +{# + haiku/layout.html + ~~~~~~~~~~~~~~~~~ + + Sphinx layout template for the haiku theme. + + :copyright: Copyright 2007-2010 by the Sphinx team, see AUTHORS. + :license: BSD, see LICENSE for details. +#} +{% extends "basic/layout.html" %} +{% set script_files = script_files + ['_static/theme_extras.js'] %} +{% set css_files = css_files + ['_static/print.css'] %} + +{# do not display relbars #} +{% block relbar1 %}{% endblock %} +{% block relbar2 %}{% endblock %} + +{% macro nav() %} +

+ {%- block haikurel1 %} + {%- endblock %} + {%- if prev %} + «  {{ prev.title }} +   ::   + {%- endif %} + {{ _('Contents') }} + {%- if next %} +   ::   + {{ next.title }}  » + {%- endif %} + {%- block haikurel2 %} + {%- endblock %} +

+{% endmacro %} + +{% block content %} +
+ {%- block haikuheader %} + {%- if theme_full_logo != "false" %} + + + + {%- else %} + {%- if logo -%} + + {%- endif -%} +

+ {{ title|striptags }}

+

{{ shorttitle|e }}

+ {%- endif %} + {%- endblock %} +
+
+ {{ nav() }} +
+
+ {#{%- if display_toc %} +
+

Table Of Contents

+ {{ toc }} +
+ {%- endif %}#} + {% block body %}{% endblock %} +
+
+ {{ nav() }} +
+

From &yet

+{% endblock %} + -- cgit v1.2.3