Add `pyramid
` theme.
2
CHANGES
@ -24,6 +24,8 @@ Release 1.1 (in development)
|
|||||||
|
|
||||||
* #443: Allow referencing external graphviz files.
|
* #443: Allow referencing external graphviz files.
|
||||||
|
|
||||||
|
* Add ``pyramid`` theme.
|
||||||
|
|
||||||
* #472: linkcheck builder: Check links in parallel, use HTTP HEAD
|
* #472: linkcheck builder: Check links in parallel, use HTTP HEAD
|
||||||
requests and allow configuring the timeout. New config values:
|
requests and allow configuring the timeout. New config values:
|
||||||
:confval:`linkcheck_timeout` and :confval:`linkcheck_workers`.
|
:confval:`linkcheck_timeout` and :confval:`linkcheck_workers`.
|
||||||
|
BIN
doc/themes/fullsize/pyramid.png
vendored
Normal file
After Width: | Height: | Size: 129 KiB |
BIN
doc/themes/pyramid.png
vendored
Normal file
After Width: | Height: | Size: 48 KiB |
@ -69,9 +69,9 @@ Builtin themes
|
|||||||
| | |
|
| | |
|
||||||
| *traditional* | *nature* |
|
| *traditional* | *nature* |
|
||||||
+--------------------+--------------------+
|
+--------------------+--------------------+
|
||||||
| |haiku| | |
|
| |haiku| | |pyramid| |
|
||||||
| | |
|
| | |
|
||||||
| *haiku* | |
|
| *haiku* | *pyramid* |
|
||||||
+--------------------+--------------------+
|
+--------------------+--------------------+
|
||||||
|
|
||||||
.. |default| image:: themes/default.png
|
.. |default| image:: themes/default.png
|
||||||
@ -81,6 +81,7 @@ Builtin themes
|
|||||||
.. |traditional| image:: themes/traditional.png
|
.. |traditional| image:: themes/traditional.png
|
||||||
.. |nature| image:: themes/nature.png
|
.. |nature| image:: themes/nature.png
|
||||||
.. |haiku| image:: themes/haiku.png
|
.. |haiku| image:: themes/haiku.png
|
||||||
|
.. |pyramid| image:: themes/pyramid.png
|
||||||
|
|
||||||
Sphinx comes with a selection of themes to choose from.
|
Sphinx comes with a selection of themes to choose from.
|
||||||
|
|
||||||
@ -177,6 +178,9 @@ These themes are:
|
|||||||
* **nature** -- A greenish theme. There are currently no options beyond
|
* **nature** -- A greenish theme. There are currently no options beyond
|
||||||
*nosidebar*.
|
*nosidebar*.
|
||||||
|
|
||||||
|
* **pyramid** -- A theme from the Pyramid web framework project, designed by
|
||||||
|
Blais Laflamme. THere are currently no options beyond *nosidebar*.
|
||||||
|
|
||||||
* **haiku** -- A theme without sidebar inspired by the `Haiku OS user guide
|
* **haiku** -- A theme without sidebar inspired by the `Haiku OS user guide
|
||||||
<http://www.haiku-os.org/docs/userguide/en/contents.html>`_. The following
|
<http://www.haiku-os.org/docs/userguide/en/contents.html>`_. The following
|
||||||
options are supported:
|
options are supported:
|
||||||
|
@ -30,34 +30,14 @@ try:
|
|||||||
from pygments.lexers import get_lexer_by_name, guess_lexer
|
from pygments.lexers import get_lexer_by_name, guess_lexer
|
||||||
from pygments.formatters import HtmlFormatter, LatexFormatter
|
from pygments.formatters import HtmlFormatter, LatexFormatter
|
||||||
from pygments.filters import ErrorToken
|
from pygments.filters import ErrorToken
|
||||||
from pygments.style import Style
|
|
||||||
from pygments.styles import get_style_by_name
|
from pygments.styles import get_style_by_name
|
||||||
from pygments.styles.friendly import FriendlyStyle
|
|
||||||
from pygments.token import Generic, Comment, Number
|
|
||||||
from pygments.util import ClassNotFound
|
from pygments.util import ClassNotFound
|
||||||
|
from sphinx.pygments_styles import SphinxStyle, NoneStyle
|
||||||
except ImportError:
|
except ImportError:
|
||||||
pygments = None
|
pygments = None
|
||||||
lexers = None
|
lexers = None
|
||||||
HtmlFormatter = LatexFormatter = None
|
HtmlFormatter = LatexFormatter = None
|
||||||
else:
|
else:
|
||||||
class SphinxStyle(Style):
|
|
||||||
"""
|
|
||||||
Like friendly, but a bit darker to enhance contrast on the green
|
|
||||||
background.
|
|
||||||
"""
|
|
||||||
|
|
||||||
background_color = '#eeffcc'
|
|
||||||
default_style = ''
|
|
||||||
|
|
||||||
styles = FriendlyStyle.styles
|
|
||||||
styles.update({
|
|
||||||
Generic.Output: '#333',
|
|
||||||
Comment: 'italic #408090',
|
|
||||||
Number: '#208050',
|
|
||||||
})
|
|
||||||
|
|
||||||
class NoneStyle(Style):
|
|
||||||
"""Style without any styling."""
|
|
||||||
|
|
||||||
lexers = dict(
|
lexers = dict(
|
||||||
none = TextLexer(),
|
none = TextLexer(),
|
||||||
|
96
sphinx/pygments_styles.py
Normal file
@ -0,0 +1,96 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
"""
|
||||||
|
sphinx.pygments_styles
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
Sphinx theme specific highlighting styles.
|
||||||
|
|
||||||
|
:copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS.
|
||||||
|
:license: BSD, see LICENSE for details.
|
||||||
|
"""
|
||||||
|
|
||||||
|
from pygments.style import Style
|
||||||
|
from pygments.styles.friendly import FriendlyStyle
|
||||||
|
from pygments.token import Generic, Comment, Number, Whitespace, Keyword, \
|
||||||
|
Operator, Name, String, Error
|
||||||
|
|
||||||
|
|
||||||
|
class NoneStyle(Style):
|
||||||
|
"""Style without any styling."""
|
||||||
|
|
||||||
|
|
||||||
|
class SphinxStyle(Style):
|
||||||
|
"""
|
||||||
|
Like friendly, but a bit darker to enhance contrast on the green
|
||||||
|
background.
|
||||||
|
"""
|
||||||
|
|
||||||
|
background_color = '#eeffcc'
|
||||||
|
default_style = ''
|
||||||
|
|
||||||
|
styles = FriendlyStyle.styles
|
||||||
|
styles.update({
|
||||||
|
Generic.Output: '#333',
|
||||||
|
Comment: 'italic #408090',
|
||||||
|
Number: '#208050',
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
class PyramidStyle(Style):
|
||||||
|
"""
|
||||||
|
Pylons/pyramid pygments style based on friendly style, by Blaise Laflamme.
|
||||||
|
"""
|
||||||
|
|
||||||
|
# work in progress...
|
||||||
|
|
||||||
|
background_color = "#f8f8f8"
|
||||||
|
default_style = ""
|
||||||
|
|
||||||
|
styles = {
|
||||||
|
Whitespace: "#bbbbbb",
|
||||||
|
Comment: "italic #60a0b0",
|
||||||
|
Comment.Preproc: "noitalic #007020",
|
||||||
|
Comment.Special: "noitalic bg:#fff0f0",
|
||||||
|
|
||||||
|
Keyword: "bold #007020",
|
||||||
|
Keyword.Pseudo: "nobold",
|
||||||
|
Keyword.Type: "nobold #902000",
|
||||||
|
|
||||||
|
Operator: "#666666",
|
||||||
|
Operator.Word: "bold #007020",
|
||||||
|
|
||||||
|
Name.Builtin: "#007020",
|
||||||
|
Name.Function: "#06287e",
|
||||||
|
Name.Class: "bold #0e84b5",
|
||||||
|
Name.Namespace: "bold #0e84b5",
|
||||||
|
Name.Exception: "#007020",
|
||||||
|
Name.Variable: "#bb60d5",
|
||||||
|
Name.Constant: "#60add5",
|
||||||
|
Name.Label: "bold #002070",
|
||||||
|
Name.Entity: "bold #d55537",
|
||||||
|
Name.Attribute: "#0e84b5",
|
||||||
|
Name.Tag: "bold #062873",
|
||||||
|
Name.Decorator: "bold #555555",
|
||||||
|
|
||||||
|
String: "#4070a0",
|
||||||
|
String.Doc: "italic",
|
||||||
|
String.Interpol: "italic #70a0d0",
|
||||||
|
String.Escape: "bold #4070a0",
|
||||||
|
String.Regex: "#235388",
|
||||||
|
String.Symbol: "#517918",
|
||||||
|
String.Other: "#c65d09",
|
||||||
|
Number: "#40a070",
|
||||||
|
|
||||||
|
Generic.Heading: "bold #000080",
|
||||||
|
Generic.Subheading: "bold #800080",
|
||||||
|
Generic.Deleted: "#A00000",
|
||||||
|
Generic.Inserted: "#00A000",
|
||||||
|
Generic.Error: "#FF0000",
|
||||||
|
Generic.Emph: "italic",
|
||||||
|
Generic.Strong: "bold",
|
||||||
|
Generic.Prompt: "bold #c65d09",
|
||||||
|
Generic.Output: "#888",
|
||||||
|
Generic.Traceback: "#04D",
|
||||||
|
|
||||||
|
Error: "#a40000 bg:#fbe3e4"
|
||||||
|
}
|
24
sphinx/themes/pyramid/layout.html
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
{% extends "basic/layout.html" %}
|
||||||
|
|
||||||
|
{%- block extrahead %}
|
||||||
|
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Neuton&subset=latin" type="text/css" media="screen" charset="utf-8" />
|
||||||
|
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Nobile:regular,italic,bold,bolditalic&subset=latin" type="text/css" media="screen" charset="utf-8" />
|
||||||
|
<!--[if lte IE 6]>
|
||||||
|
<link rel="stylesheet" href="{{ pathto('_static/ie6.css', 1) }}" type="text/css" media="screen" charset="utf-8" />
|
||||||
|
<![endif]-->
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block header %}
|
||||||
|
{%- if logo %}
|
||||||
|
<div class="header">
|
||||||
|
<div class="logo">
|
||||||
|
<a href="{{ pathto(master_doc) }}">
|
||||||
|
<img class="logo" src="{{ pathto('_static/' + logo, 1) }}" alt="Logo"/>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{%- endif %}
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{%- block sidebarlogo %}{%- endblock %}
|
||||||
|
{%- block sidebarsourcelink %}{%- endblock %}
|
BIN
sphinx/themes/pyramid/static/dialog-note.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
sphinx/themes/pyramid/static/dialog-seealso.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
sphinx/themes/pyramid/static/dialog-topic.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
sphinx/themes/pyramid/static/dialog-warning.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
310
sphinx/themes/pyramid/static/epub.css
Normal file
@ -0,0 +1,310 @@
|
|||||||
|
/*
|
||||||
|
* default.css_t
|
||||||
|
* ~~~~~~~~~~~~~
|
||||||
|
*
|
||||||
|
* Sphinx stylesheet -- default theme.
|
||||||
|
*
|
||||||
|
* :copyright: Copyright 2007-2010 by the Sphinx team, see AUTHORS.
|
||||||
|
* :license: BSD, see LICENSE for details.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
@import url("basic.css");
|
||||||
|
|
||||||
|
/* -- page layout ----------------------------------------------------------- */
|
||||||
|
|
||||||
|
body {
|
||||||
|
font-family: {{ theme_bodyfont }};
|
||||||
|
font-size: 100%;
|
||||||
|
background-color: {{ theme_footerbgcolor }};
|
||||||
|
color: #000;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.document {
|
||||||
|
background-color: {{ theme_sidebarbgcolor }};
|
||||||
|
}
|
||||||
|
|
||||||
|
div.documentwrapper {
|
||||||
|
float: left;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.bodywrapper {
|
||||||
|
margin: 0 0 0 230px;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.body {
|
||||||
|
background-color: {{ theme_bgcolor }};
|
||||||
|
color: {{ theme_textcolor }};
|
||||||
|
padding: 0 20px 30px 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
{%- if theme_rightsidebar|tobool %}
|
||||||
|
div.bodywrapper {
|
||||||
|
margin: 0 230px 0 0;
|
||||||
|
}
|
||||||
|
{%- endif %}
|
||||||
|
|
||||||
|
div.footer {
|
||||||
|
color: {{ theme_footertextcolor }};
|
||||||
|
width: 100%;
|
||||||
|
padding: 9px 0 9px 0;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 75%;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.footer a {
|
||||||
|
color: {{ theme_footertextcolor }};
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.related {
|
||||||
|
background-color: {{ theme_relbarbgcolor }};
|
||||||
|
line-height: 30px;
|
||||||
|
color: {{ theme_relbartextcolor }};
|
||||||
|
}
|
||||||
|
|
||||||
|
div.related a {
|
||||||
|
color: {{ theme_relbarlinkcolor }};
|
||||||
|
}
|
||||||
|
|
||||||
|
div.sphinxsidebar {
|
||||||
|
{%- if theme_stickysidebar|tobool %}
|
||||||
|
top: 30px;
|
||||||
|
bottom: 0;
|
||||||
|
margin: 0;
|
||||||
|
position: fixed;
|
||||||
|
overflow: auto;
|
||||||
|
height: auto;
|
||||||
|
{%- endif %}
|
||||||
|
{%- if theme_rightsidebar|tobool %}
|
||||||
|
float: right;
|
||||||
|
{%- if theme_stickysidebar|tobool %}
|
||||||
|
right: 0;
|
||||||
|
{%- endif %}
|
||||||
|
{%- endif %}
|
||||||
|
}
|
||||||
|
|
||||||
|
{%- if theme_stickysidebar|tobool %}
|
||||||
|
/* this is nice, but it it leads to hidden headings when jumping
|
||||||
|
to an anchor */
|
||||||
|
/*
|
||||||
|
div.related {
|
||||||
|
position: fixed;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.documentwrapper {
|
||||||
|
margin-top: 30px;
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
{%- endif %}
|
||||||
|
|
||||||
|
div.sphinxsidebar h3 {
|
||||||
|
font-family: {{ theme_headfont }};
|
||||||
|
color: {{ theme_sidebartextcolor }};
|
||||||
|
font-size: 1.4em;
|
||||||
|
font-weight: normal;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.sphinxsidebar h3 a {
|
||||||
|
color: {{ theme_sidebartextcolor }};
|
||||||
|
}
|
||||||
|
|
||||||
|
div.sphinxsidebar h4 {
|
||||||
|
font-family: {{ theme_headfont }};
|
||||||
|
color: {{ theme_sidebartextcolor }};
|
||||||
|
font-size: 1.3em;
|
||||||
|
font-weight: normal;
|
||||||
|
margin: 5px 0 0 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.sphinxsidebar p {
|
||||||
|
color: {{ theme_sidebartextcolor }};
|
||||||
|
}
|
||||||
|
|
||||||
|
div.sphinxsidebar p.topless {
|
||||||
|
margin: 5px 10px 10px 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.sphinxsidebar ul {
|
||||||
|
margin: 10px;
|
||||||
|
padding: 0;
|
||||||
|
color: {{ theme_sidebartextcolor }};
|
||||||
|
}
|
||||||
|
|
||||||
|
div.sphinxsidebar a {
|
||||||
|
color: {{ theme_sidebarlinkcolor }};
|
||||||
|
}
|
||||||
|
|
||||||
|
div.sphinxsidebar input {
|
||||||
|
border: 1px solid {{ theme_sidebarlinkcolor }};
|
||||||
|
font-family: sans-serif;
|
||||||
|
font-size: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
{% if theme_collapsiblesidebar|tobool %}
|
||||||
|
/* for collapsible sidebar */
|
||||||
|
div#sidebarbutton {
|
||||||
|
background-color: {{ theme_sidebarbtncolor }};
|
||||||
|
}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
/* -- hyperlink styles ------------------------------------------------------ */
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: {{ theme_linkcolor }};
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
a:visited {
|
||||||
|
color: {{ theme_visitedlinkcolor }};
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
a:hover {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
{% if theme_externalrefs|tobool %}
|
||||||
|
a.external {
|
||||||
|
text-decoration: none;
|
||||||
|
border-bottom: 1px dashed {{ theme_linkcolor }};
|
||||||
|
}
|
||||||
|
|
||||||
|
a.external:hover {
|
||||||
|
text-decoration: none;
|
||||||
|
border-bottom: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
a.external:visited {
|
||||||
|
text-decoration: none;
|
||||||
|
border-bottom: 1px dashed {{ theme_visitedlinkcolor }};
|
||||||
|
}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
/* -- body styles ----------------------------------------------------------- */
|
||||||
|
|
||||||
|
div.body h1,
|
||||||
|
div.body h2,
|
||||||
|
div.body h3,
|
||||||
|
div.body h4,
|
||||||
|
div.body h5,
|
||||||
|
div.body h6 {
|
||||||
|
font-family: {{ theme_headfont }};
|
||||||
|
background-color: {{ theme_headbgcolor }};
|
||||||
|
font-weight: normal;
|
||||||
|
color: {{ theme_headtextcolor }};
|
||||||
|
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 {
|
||||||
|
color: {{ theme_headlinkcolor }};
|
||||||
|
font-size: 0.8em;
|
||||||
|
padding: 0 4px 0 4px;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
a.headerlink:hover {
|
||||||
|
background-color: {{ theme_headlinkcolor }};
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.body p, div.body dd, div.body li {
|
||||||
|
text-align: justify;
|
||||||
|
line-height: 130%;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.admonition p.admonition-title + p {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.admonition p {
|
||||||
|
margin-bottom: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.admonition pre {
|
||||||
|
margin-bottom: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.admonition ul, div.admonition ol {
|
||||||
|
margin-bottom: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.note {
|
||||||
|
background-color: #eee;
|
||||||
|
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 {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
|
||||||
|
p.admonition-title:after {
|
||||||
|
content: ":";
|
||||||
|
}
|
||||||
|
|
||||||
|
pre {
|
||||||
|
padding: 5px;
|
||||||
|
background-color: {{ theme_codebgcolor }};
|
||||||
|
color: {{ theme_codetextcolor }};
|
||||||
|
line-height: 120%;
|
||||||
|
border: 1px solid #ac9;
|
||||||
|
border-left: none;
|
||||||
|
border-right: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
tt {
|
||||||
|
background-color: #ecf0f3;
|
||||||
|
padding: 0 1px 0 1px;
|
||||||
|
font-size: 0.95em;
|
||||||
|
}
|
||||||
|
|
||||||
|
th {
|
||||||
|
background-color: #ede;
|
||||||
|
}
|
||||||
|
|
||||||
|
.warning tt {
|
||||||
|
background: #efc2c2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.note tt {
|
||||||
|
background: #d6d6d6;
|
||||||
|
}
|
||||||
|
|
||||||
|
.viewcode-back {
|
||||||
|
font-family: {{ theme_bodyfont }};
|
||||||
|
}
|
||||||
|
|
||||||
|
div.viewcode-block:target {
|
||||||
|
background-color: #f4debf;
|
||||||
|
border-top: 1px solid #ac9;
|
||||||
|
border-bottom: 1px solid #ac9;
|
||||||
|
}
|
BIN
sphinx/themes/pyramid/static/footerbg.png
Normal file
After Width: | Height: | Size: 333 B |
BIN
sphinx/themes/pyramid/static/headerbg.png
Normal file
After Width: | Height: | Size: 203 B |
7
sphinx/themes/pyramid/static/ie6.css
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
* html img,
|
||||||
|
* html .png{position:relative;behavior:expression((this.runtimeStyle.behavior="none")&&(this.pngSet?this.pngSet=true:(this.nodeName == "IMG" && this.src.toLowerCase().indexOf('.png')>-1?(this.runtimeStyle.backgroundImage = "none",
|
||||||
|
this.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + this.src + "',sizingMethod='image')",
|
||||||
|
this.src = "_static/transparent.gif"):(this.origBg = this.origBg? this.origBg :this.currentStyle.backgroundImage.toString().replace('url("','').replace('")',''),
|
||||||
|
this.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + this.origBg + "',sizingMethod='crop')",
|
||||||
|
this.runtimeStyle.backgroundImage = "none")),this.pngSet=true)
|
||||||
|
);}
|
BIN
sphinx/themes/pyramid/static/middlebg.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
323
sphinx/themes/pyramid/static/pyramid.css_t
Normal file
@ -0,0 +1,323 @@
|
|||||||
|
/*
|
||||||
|
* pylons.css_t
|
||||||
|
* ~~~~~~~~~~~~
|
||||||
|
*
|
||||||
|
* Sphinx stylesheet -- pylons theme.
|
||||||
|
*
|
||||||
|
* :copyright: Copyright 2007-2010 by the Sphinx team, see AUTHORS.
|
||||||
|
* :license: BSD, see LICENSE for details.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
@import url("basic.css");
|
||||||
|
|
||||||
|
/* -- page layout ----------------------------------------------------------- */
|
||||||
|
|
||||||
|
body {
|
||||||
|
font-family: "Nobile", sans-serif;
|
||||||
|
font-size: 100%;
|
||||||
|
background-color: #393939;
|
||||||
|
color: #ffffff;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.documentwrapper {
|
||||||
|
float: left;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.bodywrapper {
|
||||||
|
margin: 0 0 0 230px;
|
||||||
|
}
|
||||||
|
|
||||||
|
hr {
|
||||||
|
border: 1px solid #B1B4B6;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.document {
|
||||||
|
background-color: #eee;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.header {
|
||||||
|
width:100%;
|
||||||
|
background: #f4ad32 url(headerbg.png) repeat-x 0 top;
|
||||||
|
border-bottom: 2px solid #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.logo {
|
||||||
|
text-align: center;
|
||||||
|
padding-top: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.body {
|
||||||
|
background-color: #ffffff;
|
||||||
|
color: #3E4349;
|
||||||
|
padding: 0 30px 30px 30px;
|
||||||
|
font-size: 1em;
|
||||||
|
border: 2px solid #ddd;
|
||||||
|
border-right-style: none;
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.footer {
|
||||||
|
color: #ffffff;
|
||||||
|
width: 100%;
|
||||||
|
padding: 13px 0;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 75%;
|
||||||
|
background: transparent;
|
||||||
|
clear:both;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.footer a {
|
||||||
|
color: #ffffff;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.footer a:hover {
|
||||||
|
color: #e88f00;
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.related {
|
||||||
|
line-height: 30px;
|
||||||
|
color: #373839;
|
||||||
|
font-size: 0.8em;
|
||||||
|
background-color: #eee;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.related a {
|
||||||
|
color: #1b61d6;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.related ul {
|
||||||
|
padding-left: 240px;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.sphinxsidebar {
|
||||||
|
font-size: 0.75em;
|
||||||
|
line-height: 1.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.sphinxsidebarwrapper{
|
||||||
|
padding: 10px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.sphinxsidebar h3,
|
||||||
|
div.sphinxsidebar h4 {
|
||||||
|
font-family: "Neuton", sans-serif;
|
||||||
|
color: #373839;
|
||||||
|
font-size: 1.4em;
|
||||||
|
font-weight: normal;
|
||||||
|
margin: 0;
|
||||||
|
padding: 5px 10px;
|
||||||
|
border-bottom: 2px solid #ddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.sphinxsidebar h4{
|
||||||
|
font-size: 1.3em;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.sphinxsidebar h3 a {
|
||||||
|
color: #000000;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
div.sphinxsidebar p {
|
||||||
|
color: #888;
|
||||||
|
padding: 5px 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.sphinxsidebar p.topless {
|
||||||
|
}
|
||||||
|
|
||||||
|
div.sphinxsidebar ul {
|
||||||
|
margin: 10px 20px;
|
||||||
|
padding: 0;
|
||||||
|
color: #373839;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.sphinxsidebar a {
|
||||||
|
color: #444;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.sphinxsidebar input {
|
||||||
|
border: 1px solid #ccc;
|
||||||
|
font-family: sans-serif;
|
||||||
|
font-size: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.sphinxsidebar input[type=text]{
|
||||||
|
margin-left: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* -- sidebars -------------------------------------------------------------- */
|
||||||
|
|
||||||
|
div.sidebar {
|
||||||
|
margin: 0 0 0.5em 1em;
|
||||||
|
border: 2px solid #c6d880;
|
||||||
|
background-color: #e6efc2;
|
||||||
|
width: 40%;
|
||||||
|
float: right;
|
||||||
|
border-right-style: none;
|
||||||
|
border-left-style: none;
|
||||||
|
padding: 10px 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
p.sidebar-title {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* -- body styles ----------------------------------------------------------- */
|
||||||
|
|
||||||
|
a, a .pre {
|
||||||
|
color: #1b61d6;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
a:hover, a:hover .pre {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.body h1,
|
||||||
|
div.body h2,
|
||||||
|
div.body h3,
|
||||||
|
div.body h4,
|
||||||
|
div.body h5,
|
||||||
|
div.body h6 {
|
||||||
|
font-family: "Neuton", sans-serif;
|
||||||
|
background-color: #ffffff;
|
||||||
|
font-weight: normal;
|
||||||
|
color: #373839;
|
||||||
|
margin: 30px 0px 10px 0px;
|
||||||
|
padding: 5px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.body h1 { border-top: 20px solid white; margin-top: 0; font-size: 200%; }
|
||||||
|
div.body h2 { font-size: 150%; background-color: #ffffff; }
|
||||||
|
div.body h3 { font-size: 120%; background-color: #ffffff; }
|
||||||
|
div.body h4 { font-size: 110%; background-color: #ffffff; }
|
||||||
|
div.body h5 { font-size: 100%; background-color: #ffffff; }
|
||||||
|
div.body h6 { font-size: 100%; background-color: #ffffff; }
|
||||||
|
|
||||||
|
a.headerlink {
|
||||||
|
color: #1b61d6;
|
||||||
|
font-size: 0.8em;
|
||||||
|
padding: 0 4px 0 4px;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
a.headerlink:hover {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.body p, div.body dd, div.body li {
|
||||||
|
line-height: 1.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.admonition p.admonition-title + p {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.highlight{
|
||||||
|
background-color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.note {
|
||||||
|
border: 2px solid #7a9eec;
|
||||||
|
border-right-style: none;
|
||||||
|
border-left-style: none;
|
||||||
|
padding: 10px 20px 10px 60px;
|
||||||
|
background: #e1ecfe url(dialog-note.png) no-repeat 10px 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.seealso {
|
||||||
|
background: #fff6bf url(dialog-seealso.png) no-repeat 10px 8px;
|
||||||
|
border: 2px solid #ffd324;
|
||||||
|
border-left-style: none;
|
||||||
|
border-right-style: none;
|
||||||
|
padding: 10px 20px 10px 60px;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.topic {
|
||||||
|
background: #eeeeee;
|
||||||
|
border: 2px solid #C6C9CB;
|
||||||
|
padding: 10px 20px;
|
||||||
|
border-right-style: none;
|
||||||
|
border-left-style: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.warning {
|
||||||
|
background: #fbe3e4 url(dialog-warning.png) no-repeat 10px 8px;
|
||||||
|
border: 2px solid #fbc2c4;
|
||||||
|
border-right-style: none;
|
||||||
|
border-left-style: none;
|
||||||
|
padding: 10px 20px 10px 60px;
|
||||||
|
}
|
||||||
|
|
||||||
|
p.admonition-title {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
p.admonition-title:after {
|
||||||
|
content: ":";
|
||||||
|
}
|
||||||
|
|
||||||
|
pre {
|
||||||
|
padding: 10px;
|
||||||
|
background-color: #fafafa;
|
||||||
|
color: #222;
|
||||||
|
line-height: 1.2em;
|
||||||
|
border: 2px solid #C6C9CB;
|
||||||
|
font-size: 1.1em;
|
||||||
|
margin: 1.5em 0 1.5em 0;
|
||||||
|
border-right-style: none;
|
||||||
|
border-left-style: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
tt {
|
||||||
|
background-color: transparent;
|
||||||
|
color: #222;
|
||||||
|
font-size: 1.1em;
|
||||||
|
font-family: monospace;
|
||||||
|
}
|
||||||
|
|
||||||
|
.viewcode-back {
|
||||||
|
font-family: "Nobile", sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.viewcode-block:target {
|
||||||
|
background-color: #fff6bf;
|
||||||
|
border: 2px solid #ffd324;
|
||||||
|
border-left-style: none;
|
||||||
|
border-right-style: none;
|
||||||
|
padding: 10px 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
table.highlighttable {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
table.highlighttable td {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
a em.std-term {
|
||||||
|
color: #007f00;
|
||||||
|
}
|
||||||
|
|
||||||
|
a:hover em.std-term {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
.download {
|
||||||
|
font-family: "Nobile", sans-serif;
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
tt.xref {
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
BIN
sphinx/themes/pyramid/static/transparent.gif
Normal file
After Width: | Height: | Size: 49 B |
4
sphinx/themes/pyramid/theme.conf
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
[theme]
|
||||||
|
inherit = basic
|
||||||
|
stylesheet = pyramid.css
|
||||||
|
pygments_style = sphinx.pygments_styles.PyramidStyle
|