Commit c0210cc8 authored by Petrus J.v.Rensburg's avatar Petrus J.v.Rensburg

Update Flask Sphinx theme.

parent c91356ea
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
...@@ -4,8 +4,7 @@ ...@@ -4,8 +4,7 @@
{% if theme_touch_icon %} {% if theme_touch_icon %}
<link rel="apple-touch-icon" href="{{ pathto('_static/' ~ theme_touch_icon, 1) }}" /> <link rel="apple-touch-icon" href="{{ pathto('_static/' ~ theme_touch_icon, 1) }}" />
{% endif %} {% endif %}
<link media="only screen and (max-device-width: 480px)" href="{{ <meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9">
pathto('_static/small_flask.css', 1) }}" type= "text/css" rel="stylesheet" />
{% endblock %} {% endblock %}
{%- block relbar2 %}{% endblock %} {%- block relbar2 %}{% endblock %}
{% block header %} {% block header %}
......
File mode changed from 100644 to 100755
...@@ -8,11 +8,11 @@ ...@@ -8,11 +8,11 @@
{% set page_width = '940px' %} {% set page_width = '940px' %}
{% set sidebar_width = '220px' %} {% set sidebar_width = '220px' %}
@import url("basic.css"); @import url("basic.css");
/* -- page layout ----------------------------------------------------------- */ /* -- page layout ----------------------------------------------------------- */
body { body {
font-family: 'Georgia', serif; font-family: 'Georgia', serif;
font-size: 17px; font-size: 17px;
...@@ -40,14 +40,10 @@ div.sphinxsidebar { ...@@ -40,14 +40,10 @@ div.sphinxsidebar {
width: {{ sidebar_width }}; width: {{ sidebar_width }};
} }
div.sphinxsidebar span.pre {
word-wrap: break-word;
}
hr { hr {
border: 1px solid #B1B4B6; border: 1px solid #B1B4B6;
} }
div.body { div.body {
background-color: #ffffff; background-color: #ffffff;
color: #3E4349; color: #3E4349;
...@@ -58,7 +54,7 @@ img.floatingflask { ...@@ -58,7 +54,7 @@ img.floatingflask {
padding: 0 0 10px 10px; padding: 0 0 10px 10px;
float: right; float: right;
} }
div.footer { div.footer {
width: {{ page_width }}; width: {{ page_width }};
margin: 20px auto 30px auto; margin: 20px auto 30px auto;
...@@ -74,7 +70,7 @@ div.footer a { ...@@ -74,7 +70,7 @@ div.footer a {
div.related { div.related {
display: none; display: none;
} }
div.sphinxsidebar a { div.sphinxsidebar a {
color: #444; color: #444;
text-decoration: none; text-decoration: none;
...@@ -84,7 +80,7 @@ div.sphinxsidebar a { ...@@ -84,7 +80,7 @@ div.sphinxsidebar a {
div.sphinxsidebar a:hover { div.sphinxsidebar a:hover {
border-bottom: 1px solid #999; border-bottom: 1px solid #999;
} }
div.sphinxsidebar { div.sphinxsidebar {
font-size: 14px; font-size: 14px;
line-height: 1.5; line-height: 1.5;
...@@ -99,7 +95,7 @@ div.sphinxsidebarwrapper p.logo { ...@@ -99,7 +95,7 @@ div.sphinxsidebarwrapper p.logo {
margin: 0; margin: 0;
text-align: center; text-align: center;
} }
div.sphinxsidebar h3, div.sphinxsidebar h3,
div.sphinxsidebar h4 { div.sphinxsidebar h4 {
font-family: 'Garamond', 'Georgia', serif; font-family: 'Garamond', 'Georgia', serif;
...@@ -113,7 +109,7 @@ div.sphinxsidebar h4 { ...@@ -113,7 +109,7 @@ div.sphinxsidebar h4 {
div.sphinxsidebar h4 { div.sphinxsidebar h4 {
font-size: 20px; font-size: 20px;
} }
div.sphinxsidebar h3 a { div.sphinxsidebar h3 a {
color: #444; color: #444;
} }
...@@ -124,7 +120,7 @@ div.sphinxsidebar p.logo a:hover, ...@@ -124,7 +120,7 @@ div.sphinxsidebar p.logo a:hover,
div.sphinxsidebar h3 a:hover { div.sphinxsidebar h3 a:hover {
border: none; border: none;
} }
div.sphinxsidebar p { div.sphinxsidebar p {
color: #555; color: #555;
margin: 10px 0; margin: 10px 0;
...@@ -135,25 +131,25 @@ div.sphinxsidebar ul { ...@@ -135,25 +131,25 @@ div.sphinxsidebar ul {
padding: 0; padding: 0;
color: #000; color: #000;
} }
div.sphinxsidebar input { div.sphinxsidebar input {
border: 1px solid #ccc; border: 1px solid #ccc;
font-family: 'Georgia', serif; font-family: 'Georgia', serif;
font-size: 1em; font-size: 1em;
} }
/* -- body styles ----------------------------------------------------------- */ /* -- body styles ----------------------------------------------------------- */
a { a {
color: #004B6B; color: #004B6B;
text-decoration: underline; text-decoration: underline;
} }
a:hover { a:hover {
color: #6D4100; color: #6D4100;
text-decoration: underline; text-decoration: underline;
} }
div.body h1, div.body h1,
div.body h2, div.body h2,
div.body h3, div.body h3,
...@@ -173,25 +169,24 @@ div.indexwrapper h1 { ...@@ -173,25 +169,24 @@ div.indexwrapper h1 {
height: {{ theme_index_logo_height }}; height: {{ theme_index_logo_height }};
} }
{% endif %} {% endif %}
div.body h1 { margin-top: 0; padding-top: 0; font-size: 240%; } div.body h1 { margin-top: 0; padding-top: 0; font-size: 240%; }
div.body h2 { font-size: 180%; } div.body h2 { font-size: 180%; }
div.body h3 { font-size: 150%; } div.body h3 { font-size: 150%; }
div.body h4 { font-size: 130%; } div.body h4 { font-size: 130%; }
div.body h5 { font-size: 100%; } div.body h5 { font-size: 100%; }
div.body h6 { font-size: 100%; } div.body h6 { font-size: 100%; }
a.headerlink { a.headerlink {
color: #ddd; color: #ddd;
padding: 0 4px; padding: 0 4px;
text-decoration: none; text-decoration: none;
} }
a.headerlink:hover { a.headerlink:hover {
color: #444; color: #444;
background: #eaeaea; background: #eaeaea;
} }
div.body p, div.body dd, div.body li { div.body p, div.body dd, div.body li {
line-height: 1.4em; line-height: 1.4em;
} }
...@@ -238,20 +233,20 @@ div.note { ...@@ -238,20 +233,20 @@ div.note {
background-color: #eee; background-color: #eee;
border: 1px solid #ccc; border: 1px solid #ccc;
} }
div.seealso { div.seealso {
background-color: #ffc; background-color: #ffc;
border: 1px solid #ff6; border: 1px solid #ff6;
} }
div.topic { div.topic {
background-color: #eee; background-color: #eee;
} }
p.admonition-title { p.admonition-title {
display: inline; display: inline;
} }
p.admonition-title:after { p.admonition-title:after {
content: ":"; content: ":";
} }
...@@ -345,7 +340,7 @@ ul, ol { ...@@ -345,7 +340,7 @@ ul, ol {
margin: 10px 0 10px 30px; margin: 10px 0 10px 30px;
padding: 0; padding: 0;
} }
pre { pre {
background: #eee; background: #eee;
padding: 7px 30px; padding: 7px 30px;
...@@ -362,7 +357,7 @@ dl dl pre { ...@@ -362,7 +357,7 @@ dl dl pre {
margin-left: -90px; margin-left: -90px;
padding-left: 90px; padding-left: 90px;
} }
tt { tt {
background-color: #ecf0f3; background-color: #ecf0f3;
color: #222; color: #222;
...@@ -397,3 +392,186 @@ a.footnote-reference:hover { ...@@ -397,3 +392,186 @@ a.footnote-reference:hover {
a:hover tt { a:hover tt {
background: #EEE; background: #EEE;
} }
@media screen and (max-width: 870px) {
div.sphinxsidebar {
display: none;
}
div.document {
width: 100%;
}
div.documentwrapper {
margin-left: 0;
margin-top: 0;
margin-right: 0;
margin-bottom: 0;
}
div.bodywrapper {
margin-top: 0;
margin-right: 0;
margin-bottom: 0;
margin-left: 0;
}
ul {
margin-left: 0;
}
.document {
width: auto;
}
.footer {
width: auto;
}
.bodywrapper {
margin: 0;
}
.footer {
width: auto;
}
.github {
display: none;
}
}
@media screen and (max-width: 875px) {
body {
margin: 0;
padding: 20px 30px;
}
div.documentwrapper {
float: none;
background: white;
}
div.sphinxsidebar {
display: block;
float: none;
width: 102.5%;
margin: 50px -30px -20px -30px;
padding: 10px 20px;
background: #333;
color: white;
}
div.sphinxsidebar h3, div.sphinxsidebar h4, div.sphinxsidebar p,
div.sphinxsidebar h3 a {
color: white;
}
div.sphinxsidebar a {
color: #aaa;
}
div.sphinxsidebar p.logo {
display: none;
}
div.document {
width: 100%;
margin: 0;
}
div.related {
display: block;
margin: 0;
padding: 10px 0 20px 0;
}
div.related ul,
div.related ul li {
margin: 0;
padding: 0;
}
div.footer {
display: none;
}
div.bodywrapper {
margin: 0;
}
div.body {
min-height: 0;
padding: 0;
}
.rtd_doc_footer {
display: none;
}
.document {
width: auto;
}
.footer {
width: auto;
}
.footer {
width: auto;
}
.github {
display: none;
}
}
/* scrollbars */
::-webkit-scrollbar {
width: 6px;
height: 6px;
}
::-webkit-scrollbar-button:start:decrement,
::-webkit-scrollbar-button:end:increment {
display: block;
height: 10px;
}
::-webkit-scrollbar-button:vertical:increment {
background-color: #fff;
}
::-webkit-scrollbar-track-piece {
background-color: #eee;
-webkit-border-radius: 3px;
}
::-webkit-scrollbar-thumb:vertical {
height: 50px;
background-color: #ccc;
-webkit-border-radius: 3px;
}
::-webkit-scrollbar-thumb:horizontal {
width: 50px;
background-color: #ccc;
-webkit-border-radius: 3px;
}
/* misc. */
.revsys-inline {
display: none!important;
}
\ No newline at end of file
/*
* small_flask.css_t
* ~~~~~~~~~~~~~~~~~
*
* :copyright: Copyright 2010 by Armin Ronacher.
* :license: Flask Design License, see LICENSE for details.
*/
body {
margin: 0;
padding: 20px 30px;
}
div.documentwrapper {
float: none;
background: white;
}
div.sphinxsidebar {
display: block;
float: none;
width: 102.5%;
margin: 50px -30px -20px -30px;
padding: 10px 20px;
background: #333;
color: white;
}
div.sphinxsidebar h3, div.sphinxsidebar h4, div.sphinxsidebar p,
div.sphinxsidebar h3 a {
color: white;
}
div.sphinxsidebar a {
color: #aaa;
}
div.sphinxsidebar p.logo {
display: none;
}
div.document {
width: 100%;
margin: 0;
}
div.related {
display: block;
margin: 0;
padding: 10px 0 20px 0;
}
div.related ul,
div.related ul li {
margin: 0;
padding: 0;
}
div.footer {
display: none;
}
div.bodywrapper {
margin: 0;
}
div.body {
min-height: 0;
padding: 0;
}
...@@ -7,4 +7,4 @@ pygments_style = flask_theme_support.FlaskyStyle ...@@ -7,4 +7,4 @@ pygments_style = flask_theme_support.FlaskyStyle
index_logo = 'flask-admin.png' index_logo = 'flask-admin.png'
index_logo_height = 140px index_logo_height = 140px
touch_icon = touch_icon =
github_fork = 'flask-admin/flask-admin' github_fork = 'flask-admin/flask-admin'
\ No newline at end of file
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
...@@ -5,7 +5,6 @@ nosidebar = true ...@@ -5,7 +5,6 @@ nosidebar = true
pygments_style = flask_theme_support.FlaskyStyle pygments_style = flask_theme_support.FlaskyStyle
[options] [options]
index_logo = index_logo = ''
index_logo_height = 120px index_logo_height = 120px
github_fork = flask-admin/flask-adminEx github_fork = ''
File mode changed from 100644 to 100755
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment