From 5d4bd700a715670842adc4d4cf029cb2c3199e39 Mon Sep 17 00:00:00 2001 From: Dmitriy Anisimov Date: Sun, 31 Aug 2014 18:12:34 +0400 Subject: [PATCH] slight changes, theme become more similar with current --- doc/_themes/sphinxdoc/layout.html | 2 +- doc/_themes/sphinxdoc/searchbox.html | 21 +++++++ doc/_themes/sphinxdoc/static/default.css_t | 93 +++++++++++++----------------- 3 files changed, 61 insertions(+), 55 deletions(-) create mode 100644 doc/_themes/sphinxdoc/searchbox.html diff --git a/doc/_themes/sphinxdoc/layout.html b/doc/_themes/sphinxdoc/layout.html index c359d40..1064527 100644 --- a/doc/_themes/sphinxdoc/layout.html +++ b/doc/_themes/sphinxdoc/layout.html @@ -266,7 +266,7 @@ {% trans sphinx_version=sphinx_version|e %}Created using Sphinx {{ sphinx_version }}.{% endtrans %} {%- endif %} {%- if show_source and has_source and sourcename %} - {{ _('Show This Page Source') }} + {{ _('Show this page source.') }} {%- endif %} {%- endblock %} diff --git a/doc/_themes/sphinxdoc/searchbox.html b/doc/_themes/sphinxdoc/searchbox.html new file mode 100644 index 0000000..73616d9 --- /dev/null +++ b/doc/_themes/sphinxdoc/searchbox.html @@ -0,0 +1,21 @@ +{# + basic/searchbox.html + ~~~~~~~~~~~~~~~~~~~~ + + Sphinx sidebar template: quick search box. + + :copyright: Copyright 2007-2014 by the Sphinx team, see AUTHORS. + :license: BSD, see LICENSE for details. +#} +{%- if pagename != "search" and builder != "singlehtml" %} + + +{%- endif %} diff --git a/doc/_themes/sphinxdoc/static/default.css_t b/doc/_themes/sphinxdoc/static/default.css_t index bca6eb1..8b195de 100644 --- a/doc/_themes/sphinxdoc/static/default.css_t +++ b/doc/_themes/sphinxdoc/static/default.css_t @@ -114,6 +114,16 @@ div.related ul li a:hover { text-shadow: 0px 0px 1px rgba(255, 255, 255, 0.5); } +div.footer { + background-image: url(footerbg.png); + color: #ccc; + text-shadow: 0 0 .2px rgba(255, 255, 255, 0.8); + padding: 3px 8px 3px 0; + clear: both; + font-size: 0.8em; + text-align: center; +} + div.sphinxsidebarwrapper { position: relative; top: 0px; @@ -192,16 +202,6 @@ div.sphinxsidebar ul ul { list-style-image: url(listitem.png); } -div.footer { - background-image: url(footerbg.png); - color: #ccc; - text-shadow: 0 0 .2px rgba(255, 255, 255, 0.8); - padding: 3px 8px 3px 0; - clear: both; - font-size: 0.8em; - text-align: right; -} - /* -- body styles ----------------------------------------------------------- */ p { @@ -416,6 +416,7 @@ div.feedback { background-color: {{ theme_feedbackbgcolor }}; color: {{ theme_feedbacktextcolor }}; padding: 20px 20px 30px 20px; + border-top: 1px solid #002e50; } div.feedback h2 { @@ -452,8 +453,7 @@ dl.cfunction > dt:first-child { color: #8080B0; } -dl.cfunction > dt:first-child tt.descname -{ +dl.cfunction > dt:first-child tt.descname { color: #8080B0; } @@ -470,58 +470,51 @@ table.field-list { margin-top: 20px; } -/*ul.simple { - list-style: none; -}*/ - em.menuselection, em.guilabel { font-family: {{ theme_guifont }}; } .enumeratevisibleitemswithsquare ul { -list-style: square; -margin-bottom: 0px; -margin-left: 0px; -margin-right: 0px; -margin-top: 0px; + list-style: square; + margin-bottom: 0px; + margin-left: 0px; + margin-right: 0px; + margin-top: 0px; } .enumeratevisibleitemswithsquare li { -margin-bottom: 0.2em; -margin-left: 0px; -margin-right: 0px; -margin-top: 0.2em; + margin-bottom: 0.2em; + margin-left: 0px; + margin-right: 0px; + margin-top: 0.2em; } - .enumeratevisibleitemswithsquare p { - margin-bottom: 0pt; - margin-top: 1pt; - } +.enumeratevisibleitemswithsquare p { + margin-bottom: 0pt; + margin-top: 1pt; +} - .enumeratevisibleitemswithsquare dl{ -margin-bottom: 0px; -margin-left: 0px; -margin-right: 0px; -margin-top: 0px; - } +.enumeratevisibleitemswithsquare dl { + margin-bottom: 0px; + margin-left: 0px; + margin-right: 0px; + margin-top: 0px; +} - .toctableopencv - { - width: 100% ; - table-layout: fixed; - } +.toctableopencv { + width: 100% ; + table-layout: fixed; +} - .toctableopencv colgroup col:first-child - { +.toctableopencv colgroup col:first-child { width: 100pt !important; max-width: 100pt !important; min-width: 100pt !important; - } +} - .toctableopencv colgroup col:nth-child(2) - { +.toctableopencv colgroup col:nth-child(2) { width: 100% !important; - } +} div.body ul.search li { text-align: left; @@ -531,11 +524,3 @@ div.linenodiv { min-width: 1em; text-align: right; } - -div.sphinxsidebar #searchbox input[type="text"] { - width:auto; -} - -div.sphinxsidebar #searchbox input[type="submit"] { - width:auto; -} -- 2.7.4