Permalink
Browse files

Move page contents into the sidebar.

Moving them into the sidebar should hopefully make things simpler to
find and use.
  • Loading branch information...
markstory committed Dec 10, 2012
1 parent 1b2769f commit c5ae07b64cb8d741bd6f4b9e5cb08fe0a5e4ddc3
Showing with 5 additions and 33 deletions.
  1. +1 −1 config/all.py
  2. +0 −1 themes/cakephp/layout.html
  3. +3 −4 themes/cakephp/localtoc.html
  4. +1 −27 themes/cakephp/static/default.css
View
@@ -120,7 +120,7 @@
# Custom sidebar templates, maps document names to template names.
html_sidebars = {
- '**' : ['globaltoc.html']
+ '**' : ['globaltoc.html', 'localtoc.html']
}
# Additional templates that should be rendered to pages, maps page names to
@@ -112,7 +112,6 @@
<div class="content row">
<div class="document columns nine push-three">
<div class="body">
- {% include 'localtoc.html' %}
{% block body %} {% endblock %}
</div>
</div>
@@ -7,8 +7,7 @@
:copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
#}
-<a href="#" id="page-contents-button" class="red button">{{ _('Page contents') }}</a>
-<div id="page-contents" class="panel flyout">
-{{ toc }}
+<div class="page-contents">
+ <h3>Page contents</h3>
+ {{ toc }}
</div>
-
@@ -485,34 +485,8 @@ dt tt {
font-size: 14px;
}
-/* -- page contents -- */
-#page-contents-button {
- float: right;
- padding: 7px 15px;
-}
-.body .panel {
- padding: 0;
- position: absolute;
- top: 0px;
- right: 0px;
- width: 100%;
- display: none;
- box-sizing: border-box;
-}
-.panel.flyout > ul {
- list-style: none;
- margin: 15px;
-}
-.panel.flyout li a {
- font-size: 16px;
- font-family: MuseoSlab500, Helvetica, Arial;
- color: #C92434;
-}
-.panel.flyout li li a {
- color: #417282;
-}
-
/* -- Sidebar -- */
+.page-contents > ul,
#sidebar-navigation > ul {
margin-left: 0;
}

0 comments on commit c5ae07b

Please sign in to comment.