Skip to content

Commit 3e435aa

Browse files
author
Sam Kleinman
committed
theme: lots of small tweaks for increased usability
1 parent 08b79b7 commit 3e435aa

File tree

3 files changed

+45
-14
lines changed

3 files changed

+45
-14
lines changed

themes/mongodb/layout.html

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,7 @@
3232
{%- macro relbar(show_logo=True) %}
3333

3434
<div class="related">
35-
<h3>{{ _('Navigation') }}</h3>
36-
3735
<ul>
38-
{%- if show_logo %}
39-
<li><p><a href="{{ pathto('index') }}"><img class="logo" src="{{ pathto('_static/' + logo, 1) }}" alt="Logo"/></p></li>
40-
{%- endif %}
4136

4237
{#- for rellink in rellinks %}
4338
<li class="right" {% if loop.first %}style="margin-right: 10px"{% endif %}> |
@@ -48,13 +43,13 @@ <h3>{{ _('Navigation') }}</h3>
4843
<li class="right">| {{ githublink() }} </li>
4944
<li class="right">| <a href="http://github.com/mongodb/docs" title="Fork the documentation on GitHub to contribute.">GitHub</a></li>
5045
<li class="right"><a href="http://jira.mongodb.org/browse/DOCS" title="Open a case in Jira to report a problem with the documentation.">Jira</a></li>
46+
{%- if show_logo %}
47+
<li><p><a href="{{ pathto('index') }}"><img class="logo" src="{{ pathto('_static/' + logo, 1) }}" alt="Logo"/></p></li>
48+
{%- endif %}
5149

5250
{%- block rootrellink %}
53-
<li><a href="{{ pathto(master_doc) }}">{{ shorttitle|e }}</a> (<a href="{{ pathto('genindex') }}">index</a>) {{ reldelim1 }}</li>
51+
<li style="display:none;"><a href="{{ pathto(master_doc) }}">{{ shorttitle|e }}</a></li>
5452
{%- endblock %}
55-
{%- for parent in parents %}
56-
<li><a href="{{ parent.link|e }}" {% if loop.last %}{{ accesskey("U") }}{% endif %}>{{ parent.title }}</a>{{ reldelim1 }}</li>
57-
{%- endfor %}
5853
{%- block relbaritems %} {% endblock %}
5954
</ul>
6055
</div>

themes/mongodb/pagenav.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@
99
:copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS.
1010
:license: BSD, see LICENSE for details.
1111
#}
12-
<h3><a href="{{ pathto(master_doc) }}">{{ _('Contents') }}</a></h3>
12+
<h3><a href="{{ pathto(master_doc) }}">{{ _('MongoDB Manual') }}</a></h3>
1313

1414
{{ toctree(maxdepth=-1) }}
1515

16+
<h3 style="padding-bottom: 1em;"><a href="{{ pathto('genindex') }}">{{ _('Index') }}</a></h3>
17+
1618
<div id="searchbox" style="display: none">
1719
<h3>{{ _('Search') }}</h3>
1820
<p class="searchtip">{{ _('Search <strong>this</strong> manual.') }}

themes/mongodb/static/mongodb-docs.css_t

Lines changed: 38 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ div.documentwrapper {
2929
}
3030

3131
div.bodywrapper {
32-
margin: 0 0 0 230px;
32+
margin: 0 0 0 280px;
3333
}
3434

3535
hr {
@@ -85,7 +85,7 @@ div.footer-nav div.related ul {
8585
div.sphinxsidebar {
8686
font-size: 0.72em;
8787
line-height: 1.4em;
88-
width: 230px;
88+
width: 280px;
8989
}
9090

9191
div.sphinxsidebarwrapper{
@@ -297,11 +297,45 @@ div.viewcode-block:target {
297297
p.first, p.last {
298298
margin-bottom: 0 !important;
299299
}
300-
301-
302300
div.sphinxsidebar ul.current a.current {
303301
font-weight: bold;
304302
}
305303
table.docutils td {
306304
padding: 1px 8px 1em 5px;
307305
}
306+
307+
div.sphinxsidebar li.toctree-l1 a.reference {
308+
font-size: 1.2em;
309+
color: #444;
310+
line-height: 1.5em;
311+
}
312+
div.sphinxsidebar ul.current li.toctree-l1 a {
313+
font-size: 1.2em;
314+
color: #444;
315+
line-height: 1.5em;
316+
}
317+
div.sphinxsidebar ul.current li.toctree-l2 a {
318+
font-size: 1.1em;
319+
color: #646464;
320+
line-height: 1.5em;
321+
}
322+
div.sphinxsidebar ul.current li.toctree-l3 a {
323+
font-size: 1.0em;
324+
color: #848484;
325+
line-height: 1.5em;
326+
}
327+
div.sphinxsidebar ul.current li.toctree-l4 a {
328+
font-size: .9em;
329+
color: #a3a3a3;
330+
line-height: 1.5em;
331+
}
332+
div.sphinxsidebar ul.current li.toctree-l5 a {
333+
font-size: .8em;
334+
color: #9c9c9c;
335+
line-height: 1.5em;
336+
}
337+
div.related li.right {
338+
float: right;
339+
margin-right: 5px;
340+
margin-top: 40px;
341+
}

0 commit comments

Comments
 (0)