Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #16357 - Added navigation buttons to docs footer.

Thanks ncoghlan@ for the suggestion and Markus Magnuson for the patch.
  • Loading branch information...
commit b109f884e1f63c250d3318a0da0e176faa15edfd 1 parent c2c8c21
Tim Graham timgraham authored
Showing with 27 additions and 4 deletions.
  1. +1 −0  .gitignore
  2. +8 −1 docs/templates/docs/doc.html
  3. +18 −3 static/css/base.css
1  .gitignore
View
@@ -3,3 +3,4 @@
local_settings.py
djangodocs
static_root
+djangodocs.index
9 docs/templates/docs/doc.html
View
@@ -38,7 +38,14 @@
</ul>
{{ doc.body|safe }}
{% endblock %}
-
+<div class="browse-horizontal">
+ {% if doc.prev %}
+ <div class="left"><a href="{{ doc.prev.link }}">&laquo; {{ doc.prev.title|safe }}</a></div>
+ {% endif %}
+ {% if doc.next %}
+ <div class="right"><a href="{{ doc.next.link }}">{{ doc.next.title|safe }} &raquo;</a></div>
+ {% endif %}
+</div>
<div id="content-secondary">
<h2 id="comments">Questions/Feedback</h2>
<p>Having trouble? We'd like to help!</p>
21 static/css/base.css
View
@@ -37,7 +37,8 @@ a:link, a:visited {
color:#ab5603;
text-decoration:underline;
}
-#content-secondary a:link, #content-secondary a:visited {
+#content-secondary a:link, #content-secondary a:visited,
+#content-main .browse-horizontal a:link, #content-main .browse-horizontal a:visited {
color:#ffc757;
text-decoration:none;
}
@@ -49,7 +50,8 @@ a:hover {
color:#234f32;
text-decoration:none;
}
-#content-secondary a:hover {
+#content-secondary a:hover,
+#content-main .browse-horizontal a:hover {
color:#ffe761;
background:none;
}
@@ -166,7 +168,6 @@ a:hover {
background:#487858;
margin-left:0;
margin-right:0;
- margin-top:15px;
margin-bottom:-10px;
padding:10px 24px;
color:white;
@@ -179,6 +180,20 @@ a:hover {
.subcol-primary {
margin-right:1%;
}
+#content-main .browse-horizontal {
+ background-color:#234f32;
+ color:white;
+ margin:1.5em 0 0 0;
+ padding:1em 24px 1em 22px;
+ overflow:hidden;
+ line-height:1;
+}
+.browse-horizontal .left {
+ float:left;
+}
+.browse-horizontal .right {
+ float:right;
+}
/* CONTENT */
Please sign in to comment.
Something went wrong with that request. Please try again.