You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mina.apache.org by el...@apache.org on 2012/10/22 16:08:05 UTC
svn commit: r1400885 - in /mina/site/trunk: content/css/common.css
templates/page.html
Author: elecharny
Date: Mon Oct 22 14:08:05 2012
New Revision: 1400885
URL: http://svn.apache.org/viewvc?rev=1400885&view=rev
Log:
Added the code to manage the scrollbar automatically
Modified:
mina/site/trunk/content/css/common.css
mina/site/trunk/templates/page.html
Modified: mina/site/trunk/content/css/common.css
URL: http://svn.apache.org/viewvc/mina/site/trunk/content/css/common.css?rev=1400885&r1=1400884&r2=1400885&view=diff
==============================================================================
--- mina/site/trunk/content/css/common.css (original)
+++ mina/site/trunk/content/css/common.css Mon Oct 22 14:08:05 2012
@@ -558,9 +558,80 @@ th.confluenceTh
.codehilite .vi { color: #bb60d5 } /* Name.Variable.Instance */
.codehilite .il { color: #40a070 } /* Literal.Number.Integer.Long */
-table.ScrollbarTable {border: none;padding: 3px;width: 100%;padding: 3px;margin: 0px;background-color: #f0f0f0}
-table.ScrollbarTable td.ScrollbarPrevIcon {text-align: center;width: 16px;border: none;}
-table.ScrollbarTable td.ScrollbarPrevName {text-align: left;border: none;}
-table.ScrollbarTable td.ScrollbarParent {text-align: center;border: none;}
-table.ScrollbarTable td.ScrollbarNextName {text-align: right;border: none;}
-table.ScrollbarTable td.ScrollbarNextIcon {text-align: center;width: 16px;border: none;}
+
+/* nav */
+
+.nav
+{
+ background-color: #f0f0f0;
+ margin-top: 5px;
+ padding: 5px;
+ -webkit-box-shadow: 2px 2px 2px rgba(50, 50, 50, 0.5);
+ -moz-box-shadow: 2px 2px 2px rgba(50, 50, 50, 0.5);
+ box-shadow: 2px 2px 2px rgba(50, 50, 50, 0.5);
+}
+
+.nav_prev,
+.nav_up,
+.nav_next
+{
+ display: block;
+ float: left;
+ width: 33%;
+}
+
+.nav_prev
+{
+ text-align: left;
+}
+
+.nav_prev a
+{
+ padding-left: 20px;
+ background: url('../staticresources/images/nav_prev.png') no-repeat left;
+}
+
+.nav_up
+{
+ width: 34%;
+ text-align: center;
+}
+
+.nav_up a
+{
+ padding-left: 18px;
+ background: url('../staticresources/images/nav_up.png') no-repeat left;
+}
+
+.nav_next
+{
+ float: right;
+ text-align: right;
+}
+
+.nav_next a
+{
+ padding-right: 20px;
+ background: url('../staticresources/images/nav_next.png') no-repeat right;
+}
+
+
+/* clearfix */
+
+.clearfix
+{
+ *zoom: 1;
+}
+
+.clearfix:before,
+.clearfix:after
+{
+ display: table;
+ line-height: 0;
+ content: "";
+}
+
+.clearfix:after
+{
+ clear: both;
+}
Modified: mina/site/trunk/templates/page.html
URL: http://svn.apache.org/viewvc/mina/site/trunk/templates/page.html?rev=1400885&r1=1400884&r2=1400885&view=diff
==============================================================================
--- mina/site/trunk/templates/page.html (original)
+++ mina/site/trunk/templates/page.html Mon Oct 22 14:08:05 2012
@@ -5,7 +5,60 @@
{% endblock %}
{% endextends %}
+{% if headers.navprev or headers.navup or headers.navnext %}
+ <div class="nav">
+ <div class="nav_prev">
+ {% if headers.navprev %}
+ <a href="{{ headers.navprev }}">{{ headers.navprevtext }}</a>
+ {% else %}
+
+ {% endif %}
+ </div>
+ <div class="nav_up">
+ {% if headers.navup %}
+ <a href="{{ headers.navup }}">{{ headers.navuptext }}</a>
+ {% else %}
+
+ {% endif %}
+ </div>
+ <div class="nav_next">
+ {% if headers.navnext %}
+ <a href="{{ headers.navnext }}">{{ headers.navnexttext }}</a>
+ {% else %}
+
+ {% endif %}
+ </div>
+ <div class="clearfix"></div>
+ </div>
+{% endif %}
+
{% block content %}{{ content|markdown }}{% endblock %}
-{{ headers.test }}
+
+{% if headers.navprev or headers.navup or headers.navnext %}
+ <div class="nav">
+ <div class="nav_prev">
+ {% if headers.navprev %}
+ <a href="{{ headers.navprev }}">{{ headers.navprevtext }}</a>
+ {% else %}
+
+ {% endif %}
+ </div>
+ <div class="nav_up">
+ {% if headers.navup %}
+ <a href="{{ headers.navup }}">{{ headers.navuptext }}</a>
+ {% else %}
+
+ {% endif %}
+ </div>
+ <div class="nav_next">
+ {% if headers.navnext %}
+ <a href="{{ headers.navnext }}">{{ headers.navnexttext }}</a>
+ {% else %}
+
+ {% endif %}
+ </div>
+ <div class="clearfix"></div>
+ </div>
+{% endif %}
{% include "footer.html" %}