Split stylesheets into basic, default and sphinxdoc.

This commit is contained in:
Georg Brandl
2009-01-10 20:45:45 +01:00
parent ec392f4888
commit 4d345c8de3
9 changed files with 237 additions and 1239 deletions

View File

@@ -5,13 +5,8 @@
<li><a href="{{ pathto('contents') }}">Documentation </a> &raquo;</li> <li><a href="{{ pathto('contents') }}">Documentation </a> &raquo;</li>
{% endblock %} {% endblock %}
{% block relbar1 %} {% block header %}
<div style="background-color: white; text-align: left; padding: 10px 10px 15px 15px"> <div style="background-color: white; text-align: left; padding: 10px 10px 15px 15px">
<img src="{{ pathto("_static/sphinx.png", 1) }}" alt="Sphinx logo" /> <img src="{{ pathto("_static/sphinx.png", 1) }}" alt="Sphinx logo" />
</div> </div>
{{ super() }}
{% endblock %} {% endblock %}
{# put the sidebar before the body #}
{% block sidebar1 %}{{ sidebar() }}{% endblock %}
{% block sidebar2 %}{% endblock %}

View File

@@ -1,26 +1,9 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# #
# Sphinx documentation build configuration file, created by # Sphinx documentation build configuration file
# sphinx-quickstart.py on Sat Mar 8 21:47:50 2008.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# The contents of this file are pickled, so don't put values in the namespace
# that aren't pickleable (module imports are okay, they're removed automatically).
#
# All configuration values have a default value; values that are commented out
# serve to show the default value.
import sys, os, re import sys, os, re
# If your extensions are in another directory, add it here.
#sys.path.append(os.path.dirname(__file__))
# General configuration
# ---------------------
language = 'en'
# Add any Sphinx extension module names here, as strings. They can be extensions # Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.addons.*') or your custom ones. # coming with Sphinx (named 'sphinx.addons.*') or your custom ones.
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.todo'] extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.todo']
@@ -40,42 +23,14 @@ copyright = '2007-2009, Georg Brandl'
# The default replacements for |version| and |release|, also used in various # The default replacements for |version| and |release|, also used in various
# other places throughout the built documents. # other places throughout the built documents.
#
# The short X.Y version.
import sphinx import sphinx
version = sphinx.__released__ version = sphinx.__released__
# The full version, including alpha/beta/rc tags.
release = version release = version
# There are two options for replacing |today|: either, you set today to some # Show author directives in the output.
# non-false value, then it is used:
#today = ''
# Else, today_fmt is used as the format for a strftime call.
#today_fmt = '%B %d, %Y'
# List of documents that shouldn't be included in the build.
#unused_docs = []
# If true, '()' will be appended to :func: etc. cross-reference text.
#add_function_parentheses = True
# If true, the current module name will be prepended to all description
# unit titles (such as .. function::).
#add_module_names = True
show_authors = True show_authors = True
# The name of the Pygments (syntax highlighting) style to use. # The HTML template theme.
#pygments_style = 'none'
# Options for HTML output
# -----------------------
# The style sheet to use for HTML and HTML Help pages. A file of that name
# must exist either in Sphinx' static/ path, or in one of the custom paths
# given in html_static_path.
#html_style = 'sphinxdoc.css'
html_theme = 'sphinxdoc' html_theme = 'sphinxdoc'
# Add any paths that contain custom static files (such as style sheets) here, # Add any paths that contain custom static files (such as style sheets) here,
@@ -87,10 +42,6 @@ html_static_path = ['_static']
# using the given strftime format. # using the given strftime format.
html_last_updated_fmt = '%b %d, %Y' html_last_updated_fmt = '%b %d, %Y'
# If true, SmartyPants will be used to convert quotes and dashes to
# typographically correct entities.
#html_use_smartypants = True
# Content template for the index page. # Content template for the index page.
html_index = 'index.html' html_index = 'index.html'
@@ -101,50 +52,30 @@ html_sidebars = {'index': 'indexsidebar.html'}
# templates. # templates.
html_additional_pages = {'index': 'index.html'} html_additional_pages = {'index': 'index.html'}
# If true, the reST sources are included in the HTML build as _sources/<name>. # Generate an OpenSearch description with that URL as the base.
#html_copy_source = True
html_use_opensearch = 'http://sphinx.pocoo.org' html_use_opensearch = 'http://sphinx.pocoo.org'
# Output file base name for HTML help builder. # Output file base name for HTML help builder.
htmlhelp_basename = 'Sphinxdoc' htmlhelp_basename = 'Sphinxdoc'
# Options for LaTeX output
# ------------------------
# The paper size ('letter' or 'a4').
#latex_paper_size = 'letter'
# The font size ('10pt', '11pt' or '12pt').
#latex_font_size = '10pt'
# Grouping the document tree into LaTeX files. List of tuples # Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title, author, document class [howto/manual]). # (source start file, target name, title, author, document class [howto/manual]).
latex_documents = [('contents', 'sphinx.tex', 'Sphinx Documentation', latex_documents = [('contents', 'sphinx.tex', 'Sphinx Documentation',
'Georg Brandl', 'manual', 1)] 'Georg Brandl', 'manual', 1)]
# Add our logo to the LaTeX file.
latex_logo = '_static/sphinx.png' latex_logo = '_static/sphinx.png'
#latex_use_parts = True
# Additional stuff for the LaTeX preamble. # Additional stuff for the LaTeX preamble.
latex_elements = { latex_elements = {
'fontpkg': '\\usepackage{palatino}' 'fontpkg': '\\usepackage{palatino}'
} }
# Documents to append as an appendix to all manuals. # Put TODOs into the output.
#latex_appendices = []
# Extension options
# -----------------
todo_include_todos = True todo_include_todos = True
# Extension interface # -- Extension interface -------------------------------------------------------
# -------------------
from sphinx import addnodes from sphinx import addnodes
@@ -191,7 +122,8 @@ def parse_event(env, sig, signode):
def setup(app): def setup(app):
from sphinx.ext.autodoc import cut_lines from sphinx.ext.autodoc import cut_lines
app.connect('autodoc-process-docstring', cut_lines(4, what=['module'])) app.connect('autodoc-process-docstring', cut_lines(4, what=['module']))
app.add_description_unit('directive', 'dir', 'pair: %s; directive', parse_directive) app.add_description_unit('directive', 'dir', 'pair: %s; directive',
parse_directive)
app.add_description_unit('role', 'role', 'pair: %s; role', parse_role) app.add_description_unit('role', 'role', 'pair: %s; role', parse_role)
app.add_description_unit('confval', 'confval', 'pair: %s; configuration value') app.add_description_unit('confval', 'confval', 'pair: %s; configuration value')
app.add_description_unit('event', 'event', 'pair: %s; event', parse_event) app.add_description_unit('event', 'event', 'pair: %s; event', parse_event)

View File

@@ -46,7 +46,7 @@ class Config(object):
add_function_parentheses = (True, True), add_function_parentheses = (True, True),
add_module_names = (True, True), add_module_names = (True, True),
show_authors = (False, True), show_authors = (False, True),
pygments_style = ('sphinx', False), pygments_style = (None, False),
highlight_language = ('python', False), highlight_language = ('python', False),
templates_path = ([], False), templates_path = ([], False),
template_bridge = (None, False), template_bridge = (None, False),

View File

@@ -95,7 +95,7 @@ class PygmentsBridge(object):
self.dest = dest self.dest = dest
if not pygments: if not pygments:
return return
if stylename == 'sphinx': if stylename is None or stylename == 'sphinx':
style = SphinxStyle style = SphinxStyle
elif stylename == 'none': elif stylename == 'none':
style = NoneStyle style = NoneStyle

View File

@@ -4,6 +4,7 @@
{%- endblock %} {%- endblock %}
{%- set reldelim1 = reldelim1 is not defined and ' &raquo;' or reldelim1 %} {%- set reldelim1 = reldelim1 is not defined and ' &raquo;' or reldelim1 %}
{%- set reldelim2 = reldelim2 is not defined and ' |' or reldelim2 %} {%- set reldelim2 = reldelim2 is not defined and ' |' or reldelim2 %}
{%- macro relbar() %} {%- macro relbar() %}
<div class="related"> <div class="related">
<h3>{{ _('Navigation') }}</h3> <h3>{{ _('Navigation') }}</h3>
@@ -24,6 +25,7 @@
</ul> </ul>
</div> </div>
{%- endmacro %} {%- endmacro %}
{%- macro sidebar() %} {%- macro sidebar() %}
{%- if not embedded %} {%- if not embedded %}
<div class="sphinxsidebar"> <div class="sphinxsidebar">
@@ -75,7 +77,9 @@
<input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" /> <input type="hidden" name="area" value="default" />
</form> </form>
<p style="font-size: 90%">{{ _('Enter search terms or a module, class or function name.') }}</p> <p class="searchtip" style="font-size: 90%">
{{ _('Enter search terms or a module, class or function name.') }}
</p>
</div> </div>
<script type="text/javascript">$('#searchbox').show(0);</script> <script type="text/javascript">$('#searchbox').show(0);</script>
{%- endif %} {%- endif %}
@@ -142,6 +146,7 @@
{%- block extrahead %} {% endblock %} {%- block extrahead %} {% endblock %}
</head> </head>
<body> <body>
{%- block header %}{% endblock %}
{%- block relbar1 %}{{ relbar() }}{% endblock %} {%- block relbar1 %}{{ relbar() }}{% endblock %}

View File

@@ -1,21 +1,9 @@
/** /**
* Sphinx Doc Design * Sphinx stylesheet -- basic theme
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/ */
body { /* -- main layout ----------------------------------------------------------- */
font-family: sans-serif;
font-size: 100%;
background-color: #11303d;
color: #000;
margin: 0;
padding: 0;
}
/* :::: LAYOUT :::: */
div.document {
background-color: #1c4e63;
}
div.documentwrapper { div.documentwrapper {
float: left; float: left;
@@ -26,44 +14,14 @@ div.bodywrapper {
margin: 0 0 0 230px; margin: 0 0 0 230px;
} }
div.body {
background-color: white;
padding: 0 20px 30px 20px;
}
div.sphinxsidebarwrapper {
padding: 10px 5px 0 10px;
}
div.sphinxsidebar {
float: left;
width: 230px;
margin-left: -100%;
font-size: 90%;
}
div.clearer { div.clearer {
clear: both; clear: both;
} }
div.footer { /* -- relbar ---------------------------------------------------------------- */
color: #fff;
width: 100%;
padding: 9px 0 9px 0;
text-align: center;
font-size: 75%;
}
div.footer a {
color: #fff;
text-decoration: underline;
}
div.related { div.related {
background-color: #133f52;
color: #fff;
width: 100%; width: 100%;
line-height: 30px;
font-size: 90%; font-size: 90%;
} }
@@ -86,46 +44,21 @@ div.related li.right {
margin-right: 5px; margin-right: 5px;
} }
div.related a { /* -- sidebar --------------------------------------------------------------- */
color: white;
div.sphinxsidebarwrapper {
padding: 10px 5px 0 10px;
} }
/* ::: TOC :::: */ div.sphinxsidebar {
div.sphinxsidebar h3 { float: left;
font-family: 'Trebuchet MS', sans-serif; width: 230px;
color: white; margin-left: -100%;
font-size: 1.4em; font-size: 90%;
font-weight: normal;
margin: 0;
padding: 0;
}
div.sphinxsidebar h3 a {
color: white;
}
div.sphinxsidebar h4 {
font-family: 'Trebuchet MS', sans-serif;
color: white;
font-size: 1.3em;
font-weight: normal;
margin: 5px 0 0 0;
padding: 0;
}
div.sphinxsidebar p {
color: white;
}
div.sphinxsidebar p.topless {
margin: 5px 10px 10px 10px;
} }
div.sphinxsidebar ul { div.sphinxsidebar ul {
margin: 10px;
padding: 0;
list-style: none; list-style: none;
color: white;
} }
div.sphinxsidebar ul ul, div.sphinxsidebar ul ul,
@@ -139,10 +72,6 @@ div.sphinxsidebar ul ul {
margin-bottom: 0; margin-bottom: 0;
} }
div.sphinxsidebar a {
color: #98dbcc;
}
div.sphinxsidebar form { div.sphinxsidebar form {
margin-top: 10px; margin-top: 10px;
} }
@@ -153,20 +82,12 @@ div.sphinxsidebar input {
font-size: 1em; font-size: 1em;
} }
/* :::: MODULE CLOUD :::: */ img.logo {
div.modulecloud { border: 0;
margin: -5px 10px 5px 10px;
padding: 10px;
line-height: 160%;
border: 1px solid #cbe7e5;
background-color: #f2fbfd;
} }
div.modulecloud a { /* -- search page ----------------------------------------------------------- */
padding: 0 5px 0 5px;
}
/* :::: SEARCH :::: */
ul.search { ul.search {
margin: 10px 0 0 20px; margin: 10px 0 0 20px;
padding: 0; padding: 0;
@@ -193,39 +114,7 @@ ul.keywordmatches li.goodmatch a {
font-weight: bold; font-weight: bold;
} }
/* :::: COMMON FORM STYLES :::: */ /* -- index page ------------------------------------------------------------ */
div.actions {
padding: 5px 10px 5px 10px;
border-top: 1px solid #cbe7e5;
border-bottom: 1px solid #cbe7e5;
background-color: #e0f6f4;
}
form dl {
color: #333;
}
form dt {
clear: both;
float: left;
min-width: 110px;
margin-right: 10px;
padding-top: 2px;
}
input#homepage {
display: none;
}
div.error {
margin: 5px 20px 0 0;
padding: 5px;
border: 1px solid #d00;
font-weight: bold;
}
/* :::: INDEX PAGE :::: */
table.contentstable { table.contentstable {
width: 90%; width: 90%;
@@ -245,7 +134,7 @@ span.linkdescr {
font-size: 90%; font-size: 90%;
} }
/* :::: INDEX STYLES :::: */ /* -- general index --------------------------------------------------------- */
table.indextable td { table.indextable td {
text-align: left; text-align: left;
@@ -272,60 +161,9 @@ img.toggler {
cursor: pointer; cursor: pointer;
} }
form.pfform { /* -- general body styles --------------------------------------------------- */
margin: 10px 0 20px 0;
}
/* :::: GLOBAL STYLES :::: */
.docwarning {
background-color: #ffe4e4;
padding: 10px;
margin: 0 -20px 0 -20px;
border-bottom: 1px solid #f66;
}
p.subhead {
font-weight: bold;
margin-top: 20px;
}
a {
color: #355f7c;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
div.body h1,
div.body h2,
div.body h3,
div.body h4,
div.body h5,
div.body h6 {
font-family: 'Trebuchet MS', sans-serif;
background-color: #f2f2f2;
font-weight: normal;
color: #20435c;
border-bottom: 1px solid #ccc;
margin: 20px -20px 10px -20px;
padding: 3px 0 3px 10px;
}
div.body h1 { margin-top: 0; font-size: 200%; }
div.body h2 { font-size: 160%; }
div.body h3 { font-size: 140%; }
div.body h4 { font-size: 120%; }
div.body h5 { font-size: 110%; }
div.body h6 { font-size: 100%; }
a.headerlink { a.headerlink {
color: #c60f0f;
font-size: 0.8em;
padding: 0 4px 0 4px;
text-decoration: none;
visibility: hidden; visibility: hidden;
} }
@@ -339,16 +177,6 @@ dt:hover > a.headerlink {
visibility: visible; visibility: visible;
} }
a.headerlink:hover {
background-color: #c60f0f;
color: white;
}
div.body p, div.body dd, div.body li {
text-align: justify;
line-height: 130%;
}
div.body p.caption { div.body p.caption {
text-align: inherit; text-align: inherit;
} }
@@ -357,12 +185,6 @@ div.body td {
text-align: left; text-align: left;
} }
ul.fakelist {
list-style: none;
margin: 10px 0 10px 20px;
padding: 0;
}
.field-list ul { .field-list ul {
padding-left: 1em; padding-left: 1em;
} }
@@ -371,13 +193,12 @@ ul.fakelist {
margin-top: 0 !important; margin-top: 0 !important;
} }
/* "Footnotes" heading */
p.rubric { p.rubric {
margin-top: 30px; margin-top: 30px;
font-weight: bold; font-weight: bold;
} }
/* Sidebars */ /* -- sidebars -------------------------------------------------------------- */
div.sidebar { div.sidebar {
margin: 0 0 0.5em 1em; margin: 0 0 0.5em 1em;
@@ -392,10 +213,9 @@ p.sidebar-title {
font-weight: bold; font-weight: bold;
} }
/* "Topics" */ /* -- topics ---------------------------------------------------------------- */
div.topic { div.topic {
background-color: #eee;
border: 1px solid #ccc; border: 1px solid #ccc;
padding: 7px 7px 0 7px; padding: 7px 7px 0 7px;
margin: 10px 0 10px 0; margin: 10px 0 10px 0;
@@ -407,7 +227,7 @@ p.topic-title {
margin-top: 10px; margin-top: 10px;
} }
/* Admonitions */ /* -- admonitions ----------------------------------------------------------- */
div.admonition { div.admonition {
margin-top: 10px; margin-top: 10px;
@@ -423,33 +243,9 @@ div.admonition dl {
margin-bottom: 0; margin-bottom: 0;
} }
div.admonition p.admonition-title + p {
display: inline;
}
div.seealso {
background-color: #ffc;
border: 1px solid #ff6;
}
div.warning {
background-color: #ffe4e4;
border: 1px solid #f66;
}
div.note {
background-color: #eee;
border: 1px solid #ccc;
}
p.admonition-title { p.admonition-title {
margin: 0px 10px 5px 0px; margin: 0px 10px 5px 0px;
font-weight: bold; font-weight: bold;
display: inline;
}
p.admonition-title:after {
content: ":";
} }
div.body p.centered { div.body p.centered {
@@ -457,8 +253,11 @@ div.body p.centered {
margin-top: 25px; margin-top: 25px;
} }
/* -- tables ---------------------------------------------------------------- */
table.docutils { table.docutils {
border: 0; border: 0;
border-collapse: collapse;
} }
table.docutils td, table.docutils th { table.docutils td, table.docutils th {
@@ -477,18 +276,15 @@ table.footnote td, table.footnote th {
border: 0 !important; border: 0 !important;
} }
.field-list ul { th {
margin: 0; text-align: left;
padding-left: 1em; padding-right: 5px;
} }
.field-list p { /* -- other body styles ----------------------------------------------------- */
margin: 0;
}
dl { dl {
margin-bottom: 15px; margin-bottom: 15px;
clear: both;
} }
dd p { dd p {
@@ -505,12 +301,7 @@ dd {
margin-left: 30px; margin-left: 30px;
} }
.refcount { dt:target, .highlight {
color: #060;
}
dt:target,
.highlight {
background-color: #fbe54e; background-color: #fbe54e;
} }
@@ -519,18 +310,40 @@ dl.glossary dt {
font-size: 1.1em; font-size: 1.1em;
} }
th { .field-list ul {
text-align: left; margin: 0;
padding-right: 5px; padding-left: 1em;
} }
pre { .field-list p {
margin: 0;
}
.refcount {
color: #060;
}
.optional {
font-size: 1.3em;
}
.versionmodified {
font-style: italic;
}
.system-message {
background-color: #fda;
padding: 5px; padding: 5px;
background-color: #efc; border: 3px solid red;
color: #333; }
border: 1px solid #ac9;
border-left: none; .footnote:target {
border-right: none; background-color: #ffa
}
/* -- code displays --------------------------------------------------------- */
pre {
overflow: auto; overflow: auto;
} }
@@ -549,12 +362,6 @@ table.highlighttable td {
padding: 0 0.5em 0 0.5em; padding: 0 0.5em 0 0.5em;
} }
tt {
background-color: #ecf0f3;
padding: 0 1px 0 1px;
font-size: 0.95em;
}
tt.descname { tt.descname {
background-color: transparent; background-color: transparent;
font-weight: bold; font-weight: bold;
@@ -570,57 +377,11 @@ tt.xref, a tt {
font-weight: bold; font-weight: bold;
} }
.footnote:target { background-color: #ffa }
h1 tt, h2 tt, h3 tt, h4 tt, h5 tt, h6 tt { h1 tt, h2 tt, h3 tt, h4 tt, h5 tt, h6 tt {
background-color: transparent; background-color: transparent;
} }
.optional { /* -- math display ---------------------------------------------------------- */
font-size: 1.3em;
}
.versionmodified {
font-style: italic;
}
form.comment {
margin: 0;
padding: 10px 30px 10px 30px;
background-color: #eee;
}
form.comment h3 {
background-color: #326591;
color: white;
margin: -10px -30px 10px -30px;
padding: 5px;
font-size: 1.4em;
}
form.comment input,
form.comment textarea {
border: 1px solid #ccc;
padding: 2px;
font-family: sans-serif;
font-size: 100%;
}
form.comment input[type="text"] {
width: 240px;
}
form.comment textarea {
width: 100%;
height: 200px;
margin-bottom: 10px;
}
.system-message {
background-color: #fda;
padding: 5px;
border: 3px solid red;
}
img.math { img.math {
vertical-align: middle; vertical-align: middle;
@@ -634,23 +395,19 @@ span.eqno {
float: right; float: right;
} }
img.logo { /* -- printout stylesheet --------------------------------------------------- */
border: 0;
}
/* :::: PRINT :::: */
@media print { @media print {
div.document, div.document,
div.documentwrapper, div.documentwrapper,
div.bodywrapper { div.bodywrapper {
margin: 0; margin: 0;
width : 100%; width: 100%;
} }
div.sphinxsidebar, div.sphinxsidebar,
div.related, div.related,
div.footer, div.footer,
div#comments div.new-comment-box,
#top-link { #top-link {
display: none; display: none;
} }

View File

@@ -1,7 +1,12 @@
/** /**
* Sphinx Doc Design * Sphinx stylesheet -- default theme
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/ */
@import url("basic.css");
/* -- page layout ----------------------------------------------------------- */
body { body {
font-family: sans-serif; font-family: sans-serif;
font-size: 100%; font-size: 100%;
@@ -11,41 +16,15 @@ body {
padding: 0; padding: 0;
} }
/* :::: LAYOUT :::: */
div.document { div.document {
background-color: #1c4e63; background-color: #1c4e63;
} }
div.documentwrapper {
float: left;
width: 100%;
}
div.bodywrapper {
margin: 0 0 0 230px;
}
div.body { div.body {
background-color: white; background-color: white;
padding: 0 20px 30px 20px; padding: 0 20px 30px 20px;
} }
div.sphinxsidebarwrapper {
padding: 10px 5px 0 10px;
}
div.sphinxsidebar {
float: left;
width: 230px;
margin-left: -100%;
font-size: 90%;
}
div.clearer {
clear: both;
}
div.footer { div.footer {
color: #fff; color: #fff;
width: 100%; width: 100%;
@@ -61,36 +40,14 @@ div.footer a {
div.related { div.related {
background-color: #133f52; background-color: #133f52;
color: #fff;
width: 100%;
line-height: 30px; line-height: 30px;
font-size: 90%; color: #fff;
}
div.related h3 {
display: none;
}
div.related ul {
margin: 0;
padding: 0 0 0 10px;
list-style: none;
}
div.related li {
display: inline;
}
div.related li.right {
float: right;
margin-right: 5px;
} }
div.related a { div.related a {
color: white; color: white;
} }
/* ::: TOC :::: */
div.sphinxsidebar h3 { div.sphinxsidebar h3 {
font-family: 'Trebuchet MS', sans-serif; font-family: 'Trebuchet MS', sans-serif;
color: white; color: white;
@@ -124,171 +81,20 @@ div.sphinxsidebar p.topless {
div.sphinxsidebar ul { div.sphinxsidebar ul {
margin: 10px; margin: 10px;
padding: 0; padding: 0;
list-style: none;
color: white; color: white;
} }
div.sphinxsidebar ul ul,
div.sphinxsidebar ul.want-points {
margin-left: 20px;
list-style: square;
}
div.sphinxsidebar ul ul {
margin-top: 0;
margin-bottom: 0;
}
div.sphinxsidebar a { div.sphinxsidebar a {
color: #98dbcc; color: #98dbcc;
} }
div.sphinxsidebar form {
margin-top: 10px;
}
div.sphinxsidebar input { div.sphinxsidebar input {
border: 1px solid #98dbcc; border: 1px solid #98dbcc;
font-family: sans-serif; font-family: sans-serif;
font-size: 1em; font-size: 1em;
} }
/* :::: MODULE CLOUD :::: */ /* -- body styles ----------------------------------------------------------- */
div.modulecloud {
margin: -5px 10px 5px 10px;
padding: 10px;
line-height: 160%;
border: 1px solid #cbe7e5;
background-color: #f2fbfd;
}
div.modulecloud a {
padding: 0 5px 0 5px;
}
/* :::: SEARCH :::: */
ul.search {
margin: 10px 0 0 20px;
padding: 0;
}
ul.search li {
padding: 5px 0 5px 20px;
background-image: url(file.png);
background-repeat: no-repeat;
background-position: 0 7px;
}
ul.search li a {
font-weight: bold;
}
ul.search li div.context {
color: #888;
margin: 2px 0 0 30px;
text-align: left;
}
ul.keywordmatches li.goodmatch a {
font-weight: bold;
}
/* :::: COMMON FORM STYLES :::: */
div.actions {
padding: 5px 10px 5px 10px;
border-top: 1px solid #cbe7e5;
border-bottom: 1px solid #cbe7e5;
background-color: #e0f6f4;
}
form dl {
color: #333;
}
form dt {
clear: both;
float: left;
min-width: 110px;
margin-right: 10px;
padding-top: 2px;
}
input#homepage {
display: none;
}
div.error {
margin: 5px 20px 0 0;
padding: 5px;
border: 1px solid #d00;
font-weight: bold;
}
/* :::: INDEX PAGE :::: */
table.contentstable {
width: 90%;
}
table.contentstable p.biglink {
line-height: 150%;
}
a.biglink {
font-size: 1.3em;
}
span.linkdescr {
font-style: italic;
padding-top: 5px;
font-size: 90%;
}
/* :::: INDEX STYLES :::: */
table.indextable td {
text-align: left;
vertical-align: top;
}
table.indextable dl, table.indextable dd {
margin-top: 0;
margin-bottom: 0;
}
table.indextable tr.pcap {
height: 10px;
}
table.indextable tr.cap {
margin-top: 10px;
background-color: #f2f2f2;
}
img.toggler {
margin-right: 3px;
margin-top: 3px;
cursor: pointer;
}
form.pfform {
margin: 10px 0 20px 0;
}
/* :::: GLOBAL STYLES :::: */
.docwarning {
background-color: #ffe4e4;
padding: 10px;
margin: 0 -20px 0 -20px;
border-bottom: 1px solid #f66;
}
p.subhead {
font-weight: bold;
margin-top: 20px;
}
a { a {
color: #355f7c; color: #355f7c;
@@ -299,6 +105,11 @@ a:hover {
text-decoration: underline; text-decoration: underline;
} }
div.body p, div.body dd, div.body li {
text-align: justify;
line-height: 130%;
}
div.body h1, div.body h1,
div.body h2, div.body h2,
div.body h3, div.body h3,
@@ -326,17 +137,6 @@ a.headerlink {
font-size: 0.8em; font-size: 0.8em;
padding: 0 4px 0 4px; padding: 0 4px 0 4px;
text-decoration: none; text-decoration: none;
visibility: hidden;
}
h1:hover > a.headerlink,
h2:hover > a.headerlink,
h3:hover > a.headerlink,
h4:hover > a.headerlink,
h5:hover > a.headerlink,
h6:hover > a.headerlink,
dt:hover > a.headerlink {
visibility: visible;
} }
a.headerlink:hover { a.headerlink:hover {
@@ -349,102 +149,30 @@ div.body p, div.body dd, div.body li {
line-height: 130%; line-height: 130%;
} }
div.body p.caption {
text-align: inherit;
}
div.body td {
text-align: left;
}
ul.fakelist {
list-style: none;
margin: 10px 0 10px 20px;
padding: 0;
}
.field-list ul {
padding-left: 1em;
}
.first {
margin-top: 0 !important;
}
/* "Footnotes" heading */
p.rubric {
margin-top: 30px;
font-weight: bold;
}
/* Sidebars */
div.sidebar {
margin: 0 0 0.5em 1em;
border: 1px solid #ddb;
padding: 7px 7px 0 7px;
background-color: #ffe;
width: 40%;
float: right;
}
p.sidebar-title {
font-weight: bold;
}
/* "Topics" */
div.topic {
background-color: #eee;
border: 1px solid #ccc;
padding: 7px 7px 0 7px;
margin: 10px 0 10px 0;
}
p.topic-title {
font-size: 1.1em;
font-weight: bold;
margin-top: 10px;
}
/* Admonitions */
div.admonition {
margin-top: 10px;
margin-bottom: 10px;
padding: 7px;
}
div.admonition dt {
font-weight: bold;
}
div.admonition dl {
margin-bottom: 0;
}
div.admonition p.admonition-title + p { div.admonition p.admonition-title + p {
display: inline; display: inline;
} }
div.seealso {
background-color: #ffc;
border: 1px solid #ff6;
}
div.warning {
background-color: #ffe4e4;
border: 1px solid #f66;
}
div.note { div.note {
background-color: #eee; background-color: #eee;
border: 1px solid #ccc; border: 1px solid #ccc;
} }
div.seealso {
background-color: #ffc;
border: 1px solid #ff6;
}
div.topic {
background-color: #eee;
}
div.warning {
background-color: #ffe4e4;
border: 1px solid #f66;
}
p.admonition-title { p.admonition-title {
margin: 0px 10px 5px 0px;
font-weight: bold;
display: inline; display: inline;
} }
@@ -452,78 +180,6 @@ p.admonition-title:after {
content: ":"; content: ":";
} }
div.body p.centered {
text-align: center;
margin-top: 25px;
}
table.docutils {
border: 0;
}
table.docutils td, table.docutils th {
padding: 1px 8px 1px 0;
border-top: 0;
border-left: 0;
border-right: 0;
border-bottom: 1px solid #aaa;
}
table.field-list td, table.field-list th {
border: 0 !important;
}
table.footnote td, table.footnote th {
border: 0 !important;
}
.field-list ul {
margin: 0;
padding-left: 1em;
}
.field-list p {
margin: 0;
}
dl {
margin-bottom: 15px;
clear: both;
}
dd p {
margin-top: 0px;
}
dd ul, dd table {
margin-bottom: 10px;
}
dd {
margin-top: 3px;
margin-bottom: 10px;
margin-left: 30px;
}
.refcount {
color: #060;
}
dt:target,
.highlight {
background-color: #fbe54e;
}
dl.glossary dt {
font-weight: bold;
font-size: 1.1em;
}
th {
text-align: left;
padding-right: 5px;
}
pre { pre {
padding: 5px; padding: 5px;
background-color: #efc; background-color: #efc;
@@ -531,22 +187,6 @@ pre {
border: 1px solid #ac9; border: 1px solid #ac9;
border-left: none; border-left: none;
border-right: none; border-right: none;
overflow: auto;
}
td.linenos pre {
padding: 5px 0px;
border: 0;
background-color: transparent;
color: #aaa;
}
table.highlighttable {
margin-left: 0.5em;
}
table.highlighttable td {
padding: 0 0.5em 0 0.5em;
} }
tt { tt {
@@ -554,104 +194,3 @@ tt {
padding: 0 1px 0 1px; padding: 0 1px 0 1px;
font-size: 0.95em; font-size: 0.95em;
} }
tt.descname {
background-color: transparent;
font-weight: bold;
font-size: 1.2em;
}
tt.descclassname {
background-color: transparent;
}
tt.xref, a tt {
background-color: transparent;
font-weight: bold;
}
.footnote:target { background-color: #ffa }
h1 tt, h2 tt, h3 tt, h4 tt, h5 tt, h6 tt {
background-color: transparent;
}
.optional {
font-size: 1.3em;
}
.versionmodified {
font-style: italic;
}
form.comment {
margin: 0;
padding: 10px 30px 10px 30px;
background-color: #eee;
}
form.comment h3 {
background-color: #326591;
color: white;
margin: -10px -30px 10px -30px;
padding: 5px;
font-size: 1.4em;
}
form.comment input,
form.comment textarea {
border: 1px solid #ccc;
padding: 2px;
font-family: sans-serif;
font-size: 100%;
}
form.comment input[type="text"] {
width: 240px;
}
form.comment textarea {
width: 100%;
height: 200px;
margin-bottom: 10px;
}
.system-message {
background-color: #fda;
padding: 5px;
border: 3px solid red;
}
img.math {
vertical-align: middle;
}
div.math p {
text-align: center;
}
span.eqno {
float: right;
}
img.logo {
border: 0;
}
/* :::: PRINT :::: */
@media print {
div.document,
div.documentwrapper,
div.bodywrapper {
margin: 0;
width : 100%;
}
div.sphinxsidebar,
div.related,
div.footer,
div#comments div.new-comment-box,
#top-link {
display: none;
}
}

View File

@@ -0,0 +1,5 @@
{% extends "basic/layout.html" %}
{# put the sidebar before the body #}
{% block sidebar1 %}{{ sidebar() }}{% endblock %}
{% block sidebar2 %}{% endblock %}

View File

@@ -1,15 +1,21 @@
/** /**
* Alternate Sphinx design * Sphinx stylesheet -- sphinxdoc theme
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*
* Originally created by Armin Ronacher for Werkzeug, adapted by Georg Brandl. * Originally created by Armin Ronacher for Werkzeug, adapted by Georg Brandl.
*/ */
@import url("basic.css");
/* -- page layout ----------------------------------------------------------- */
body { body {
font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Geneva', 'Verdana', sans-serif; font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Geneva',
'Verdana', sans-serif;
font-size: 14px; font-size: 14px;
letter-spacing: -0.01em; letter-spacing: -0.01em;
line-height: 150%; line-height: 150%;
text-align: center; text-align: center;
/*background-color: #AFC1C4; */
background-color: #BFD1D4; background-color: #BFD1D4;
color: black; color: black;
padding: 0; padding: 0;
@@ -19,137 +25,8 @@ body {
min-width: 740px; min-width: 740px;
} }
a { div.documentwrapper {
color: #CA7900; float: none;
text-decoration: none;
}
a:hover {
color: #2491CF;
}
pre {
font-family: 'Consolas', 'Deja Vu Sans Mono', 'Bitstream Vera Sans Mono', monospace;
font-size: 0.95em;
letter-spacing: 0.015em;
padding: 0.5em;
border: 1px solid #ccc;
background-color: #f8f8f8;
}
td.linenos pre {
padding: 0.5em 0;
border: 0;
background-color: transparent;
color: #aaa;
}
table.highlighttable {
margin-left: 0.5em;
}
table.highlighttable td {
padding: 0 0.5em 0 0.5em;
}
cite, code, tt {
font-family: 'Consolas', 'Deja Vu Sans Mono', 'Bitstream Vera Sans Mono', monospace;
font-size: 0.95em;
letter-spacing: 0.01em;
}
hr {
border: 1px solid #abc;
margin: 2em;
}
tt {
background-color: #f2f2f2;
border-bottom: 1px solid #ddd;
color: #333;
}
tt.descname {
background-color: transparent;
font-weight: bold;
font-size: 1.2em;
border: 0;
}
tt.descclassname {
background-color: transparent;
border: 0;
}
tt.xref {
background-color: transparent;
font-weight: bold;
border: 0;
}
a tt {
background-color: transparent;
font-weight: bold;
border: 0;
color: #CA7900;
}
a tt:hover {
color: #2491CF;
}
.field-list ul {
margin: 0;
padding-left: 1em;
}
.field-list p {
margin: 0;
}
dl {
margin-bottom: 15px;
}
dd p {
margin-top: 0px;
}
dd ul, dd table {
margin-bottom: 10px;
}
dd {
margin-top: 3px;
margin-bottom: 10px;
margin-left: 30px;
}
.refcount {
color: #060;
}
dt:target,
.highlight {
background-color: #fbe54e;
}
dl.glossary dt {
font-weight: bold;
font-size: 1.1em;
}
pre {
line-height: 120%;
}
pre a {
color: inherit;
text-decoration: underline;
}
.first {
margin-top: 0 !important;
} }
div.document { div.document {
@@ -159,28 +36,21 @@ div.document {
background-repeat: repeat-x; background-repeat: repeat-x;
} }
/* div.bodywrapper {
div.documentwrapper { margin: 0 240px 0 0;
width: 100%; border-right: 1px solid #ccc;
}
*/
div.clearer {
clear: both;
} }
div.related h3 { div.body {
display: none; margin: 0;
padding: 0.5em 20px 20px 20px;
} }
div.related ul { div.related ul {
background-image: url(navigation.png); background-image: url(navigation.png);
height: 2em; height: 2em;
list-style: none;
border-top: 1px solid #ddd; border-top: 1px solid #ddd;
border-bottom: 1px solid #ddd; border-bottom: 1px solid #ddd;
margin: 0;
padding-left: 10px;
} }
div.related ul li { div.related ul li {
@@ -206,18 +76,8 @@ div.related ul li a:hover {
color: #3CA8E7; color: #3CA8E7;
} }
div.body { div.sphinxsidebarwrapper {
margin: 0; padding: 0;
padding: 0.5em 20px 20px 20px;
}
div.bodywrapper {
margin: 0 240px 0 0;
border-right: 1px solid #ccc;
}
div.body a {
text-decoration: underline;
} }
div.sphinxsidebar { div.sphinxsidebar {
@@ -226,12 +86,11 @@ div.sphinxsidebar {
width: 210px; width: 210px;
float: right; float: right;
text-align: left; text-align: left;
/* margin-left: -100%; */
} }
div.sphinxsidebar h4, div.sphinxsidebar h3 { div.sphinxsidebar h3, div.sphinxsidebar h4 {
margin: 1em 0 0.5em 0; margin: 1em 0 0.5em 0;
font-size: 0.9em; font-size: 1em;
padding: 0.1em 0 0.1em 0.5em; padding: 0.1em 0 0.1em 0.5em;
color: white; color: white;
border: 1px solid #86989B; border: 1px solid #86989B;
@@ -245,55 +104,45 @@ div.sphinxsidebar h3 a {
div.sphinxsidebar ul { div.sphinxsidebar ul {
padding-left: 1.5em; padding-left: 1.5em;
margin-top: 7px; margin-top: 7px;
list-style: none;
padding: 0; padding: 0;
line-height: 130%; line-height: 130%;
} }
div.sphinxsidebar ul ul { div.sphinxsidebar ul ul {
list-style: square;
margin-left: 20px; margin-left: 20px;
} }
p { div.footer {
background-color: #E3EFF1;
color: #86989B;
padding: 3px 8px 3px 0;
clear: both;
font-size: 0.8em;
text-align: right;
}
div.footer a {
color: #86989B;
text-decoration: underline;
}
/* -- body styles ----------------------------------------------------------- */
p {
margin: 0.8em 0 0.5em 0; margin: 0.8em 0 0.5em 0;
} }
p.rubric { a {
font-weight: bold; color: #CA7900;
text-decoration: none;
} }
div.sidebar { a:hover {
margin: 0 0 0.5em 1em; color: #2491CF;
border: 1px solid #ddb;
padding: 7px 7px 0 7px;
background-color: #ffe;
width: 40%;
float: right;
} }
div.quotebar { div.body a {
background-color: #f8f8f8; text-decoration: underline;
max-width: 250px;
float: right;
padding: 2px 7px;
border: 1px solid #ccc;
}
p.sidebar-title {
font-weight: bold;
}
div.topic {
background-color: #f8f8f8;
border: 1px solid #ccc;
padding: 7px 7px 0 7px;
margin: 10px 0 10px 0;
}
p.topic-title {
font-size: 1.1em;
font-weight: bold;
} }
h1 { h1 {
@@ -336,6 +185,82 @@ h5 a.anchor:hover, h6 a.anchor:hover {
background-color: #eee; background-color: #eee;
} }
a.headerlink {
color: #c60f0f!important;
font-size: 1em;
margin-left: 6px;
padding: 0 4px 0 4px;
text-decoration: none!important;
}
a.headerlink:hover {
background-color: #ccc;
color: white!important;
}
cite, code, tt {
font-family: 'Consolas', 'Deja Vu Sans Mono',
'Bitstream Vera Sans Mono', monospace;
font-size: 0.95em;
letter-spacing: 0.01em;
}
tt {
background-color: #f2f2f2;
border-bottom: 1px solid #ddd;
color: #333;
}
tt.descname, tt.descclassname, tt.xref {
border: 0;
}
hr {
border: 1px solid #abc;
margin: 2em;
}
a tt {
border: 0;
color: #CA7900;
}
a tt:hover {
color: #2491CF;
}
pre {
font-family: 'Consolas', 'Deja Vu Sans Mono',
'Bitstream Vera Sans Mono', monospace;
font-size: 0.95em;
letter-spacing: 0.015em;
line-height: 120%;
padding: 0.5em;
border: 1px solid #ccc;
background-color: #f8f8f8;
}
pre a {
color: inherit;
text-decoration: underline;
}
td.linenos pre {
padding: 0.5em 0;
}
div.quotebar {
background-color: #f8f8f8;
max-width: 250px;
float: right;
padding: 2px 7px;
border: 1px solid #ccc;
}
div.topic {
background-color: #f8f8f8;
}
table { table {
border-collapse: collapse; border-collapse: collapse;
margin: 0 -0.5em 0 -0.5em; margin: 0 -0.5em 0 -0.5em;
@@ -345,58 +270,12 @@ table td, table th {
padding: 0.2em 0.5em 0.2em 0.5em; padding: 0.2em 0.5em 0.2em 0.5em;
} }
div.footer {
background-color: #E3EFF1;
color: #86989B;
padding: 3px 8px 3px 0;
clear: both;
font-size: 0.8em;
text-align: right;
}
div.footer a {
color: #86989B;
text-decoration: underline;
}
div.pagination {
margin-top: 2em;
padding-top: 0.5em;
border-top: 1px solid black;
text-align: center;
}
div.sphinxsidebar ul.toc {
margin: 1em 0 1em 0;
padding: 0 0 0 0.5em;
list-style: none;
}
div.sphinxsidebar ul.toc li {
margin: 0.5em 0 0.5em 0;
font-size: 0.9em;
line-height: 130%;
}
div.sphinxsidebar ul.toc li p {
margin: 0;
padding: 0;
}
div.sphinxsidebar ul.toc ul {
margin: 0.2em 0 0.2em 0;
padding: 0 0 0 1.8em;
}
div.sphinxsidebar ul.toc ul li {
padding: 0;
}
div.admonition, div.warning { div.admonition, div.warning {
font-size: 0.9em; font-size: 0.9em;
margin: 1em 0 0 0; margin: 1em 0 1em 0;
border: 1px solid #86989B; border: 1px solid #86989B;
background-color: #f7f7f7; background-color: #f7f7f7;
padding: 0;
} }
div.admonition p, div.warning p { div.admonition p, div.warning p {
@@ -441,117 +320,3 @@ div.versioninfo {
line-height: 1.3em; line-height: 1.3em;
font-size: 0.9em; font-size: 0.9em;
} }
a.headerlink {
color: #c60f0f!important;
font-size: 1em;
margin-left: 6px;
padding: 0 4px 0 4px;
text-decoration: none!important;
visibility: hidden;
}
h1:hover > a.headerlink,
h2:hover > a.headerlink,
h3:hover > a.headerlink,
h4:hover > a.headerlink,
h5:hover > a.headerlink,
h6:hover > a.headerlink,
dt:hover > a.headerlink {
visibility: visible;
}
a.headerlink:hover {
background-color: #ccc;
color: white!important;
}
table.indextable td {
text-align: left;
vertical-align: top;
}
table.indextable dl, table.indextable dd {
margin-top: 0;
margin-bottom: 0;
}
table.indextable tr.pcap {
height: 10px;
}
table.indextable tr.cap {
margin-top: 10px;
background-color: #f2f2f2;
}
img.toggler {
margin-right: 3px;
margin-top: 3px;
cursor: pointer;
}
form.pfform {
margin: 10px 0 20px 0;
}
table.contentstable {
width: 90%;
}
table.contentstable p.biglink {
line-height: 150%;
}
a.biglink {
font-size: 1.3em;
}
span.linkdescr {
font-style: italic;
padding-top: 5px;
font-size: 90%;
}
ul.search {
margin: 10px 0 0 20px;
padding: 0;
}
ul.search li {
padding: 5px 0 5px 20px;
background-image: url(file.png);
background-repeat: no-repeat;
background-position: 0 7px;
}
ul.search li a {
font-weight: bold;
}
ul.search li div.context {
color: #888;
margin: 2px 0 0 30px;
text-align: left;
}
ul.keywordmatches li.goodmatch a {
font-weight: bold;
}
img.math {
vertical-align: center;
}
div.math {
text-align: center;
}
span.eqno {
float: right;
}
img.logo {
border: 0;
}