changeset 1536:f69658416352

Foobar theme moin-subitems
author Jaiditya Mathur <jaiditya.mathur@gmail.com>
date Tue, 17 Jul 2012 02:51:05 +0530
parents 1645020ee62d
children f39ad9504ffc
files MoinMoin/templates/utils.html MoinMoin/themes/foobar/static/css/common.css MoinMoin/themes/foobar/static/css/stylus/main.styl MoinMoin/themes/foobar/templates/local.html
diffstat 4 files changed, 68 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/templates/utils.html	Mon Jul 16 23:22:31 2012 +0530
+++ b/MoinMoin/templates/utils.html	Tue Jul 17 02:51:05 2012 +0530
@@ -60,7 +60,7 @@
                     {% if newtab %}target="_blank"{% endif %}>{{ shortname }}</a>
                 {% if has_children %}
                     <button class="expander" title="{{ _('Expand Subitem') }}"
-                        onclick="toggleSubtree(this)">/</button>
+                        onclick="toggleSubtree(this)"></button>
                     {{ _render_subitem_navigation_tree(theme_supp.subitem_index(fullname), newtab, parentcaller) }}
                 {% endif %}
             </li>
--- a/MoinMoin/themes/foobar/static/css/common.css	Mon Jul 16 23:22:31 2012 +0530
+++ b/MoinMoin/themes/foobar/static/css/common.css	Tue Jul 17 02:51:05 2012 +0530
@@ -403,6 +403,17 @@
 pre.comment:before{content:url("../img/attention.png")}
 textarea{font-family:monospace;width:98%;border:1px solid #ccc;margin-left:.5em}
 input#f_comment{width:96%;border:1px solid #ccc;margin:.3em 0}
+.moin-subitem-navigation{overflow:hidden;display:table-cell;word-wrap:break-word;}
+.moin-subitem-navigation ul{display:block;}
+.moin-subitem-navigation ul li{padding:.4em !important}
+.moin-subitem-navigation ul a{color:#1e90ff;font-size:1.2em;}
+.moin-subitem-navigation ul a:hover{text-decoration:underline}
+.moin-subitem-navigation .sep{font-size:1.2em;margin-left:0}
+.moin-subitem-navigation li ul{display:none;border-left:1px dotted #ccc;text-indent:10%}
+.moin-subitem-navigation .expander{background:url("../img/moin-expand.png") no-repeat center center;cursor:pointer;height:16px;overflow:hidden;vertical-align:middle;width:16px;border:hidden;text-indent:-9000%;box-shadow:none}
+.link-action,.transclude-action{border:hidden;text-indent:-9000%;padding:0;margin:0 -2px;vertical-align:middle;height:16px;width:16px;overflow:hidden;cursor:pointer;box-shadow:none}
+.link-action{background:url("../img/moin-link.png") no-repeat center center}
+.transclude-action{background:url("../img/moin-transclusion.png") no-repeat center center}
 sub{vertical-align:sub}
 sup{vertical-align:super}
 .moin-big{font-size:1.17em}
--- a/MoinMoin/themes/foobar/static/css/stylus/main.styl	Mon Jul 16 23:22:31 2012 +0530
+++ b/MoinMoin/themes/foobar/static/css/stylus/main.styl	Tue Jul 17 02:51:05 2012 +0530
@@ -976,6 +976,60 @@
     width 96%
     border border_style
     margin .3em 0
+    
+// subitem
+.moin-subitem-navigation
+    overflow hidden
+    display table-cell
+    word-wrap break-word
+    ul
+        display block
+        li
+            padding .4em !important
+        a
+            color link_color
+            font-size 1.2em
+            &:hover
+                text-decoration underline
+    
+.moin-subitem-navigation .sep
+    font-size 1.2em
+    margin-left 0px
+
+.moin-subitem-navigation li ul
+    display none
+    border-left 1px dotted border_color
+    text-indent 10%
+
+.moin-subitem-navigation .expander
+    background url(../img/moin-expand.png) no-repeat center center
+    cursor pointer
+    height 16px
+    overflow hidden
+    vertical-align middle
+    width 16px
+    border hidden
+    text-indent -9000%
+    box-shadow none
+
+.link-action,
+.transclude-action
+    border: hidden
+    text-indent: -9000%
+    padding: 0
+    margin: 0 -2px
+    vertical-align: middle
+    height: 16px
+    width: 16px
+    overflow: hidden
+    cursor: pointer
+    box-shadow none
+
+.link-action
+    background: url(../img/moin-link.png) no-repeat center center
+
+.transclude-action
+    background: url(../img/moin-transclusion.png) no-repeat center center
 
 // text styles
 sub
--- a/MoinMoin/themes/foobar/templates/local.html	Mon Jul 16 23:22:31 2012 +0530
+++ b/MoinMoin/themes/foobar/templates/local.html	Tue Jul 17 02:51:05 2012 +0530
@@ -126,7 +126,9 @@
     </li>
     {% endif %}
     <li>
+        {% block subitem_navigation %}
         {{ utils.render_subitem_navigation(item_name, False) }}
+        {% endblock %}
     </li>
 </ul>
 {% endblock %}