changeset 1545:0f1edeab79c9

Foobar them moin-transclusion and comment
author Jaiditya Mathur <jaiditya.mathur@gmail.com>
date Thu, 19 Jul 2012 03:20:17 +0530
parents 6ef433c77bc6
children a0ffc13ab580
files MoinMoin/themes/foobar/static/css/common.css MoinMoin/themes/foobar/static/css/stylus/main.styl MoinMoin/themes/foobar/templates/local.html
diffstat 3 files changed, 52 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/themes/foobar/static/css/common.css	Wed Jul 18 14:42:28 2012 +0530
+++ b/MoinMoin/themes/foobar/static/css/common.css	Thu Jul 19 03:20:17 2012 +0530
@@ -415,6 +415,12 @@
 .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}
+.moin-item-wrapper{position:relative;display:inline-block}
+.moin-item-wrapper > a:hover{color:#1e90ff;text-decoration:none}
+.moin-item-overlay-ul,.moin-item-overlay-lr{display:none;position:absolute;font-size:1.2em;font-weight:bold;margin:0;opacity:.5;filter:alpha;padding:1px;border-color:#1e90ff;border-style:double}
+.moin-item-overlay-ul{top:-4px;left:-4px;border-width:3px 0 0 3px}
+.moin-item-overlay-lr{bottom:-4px;right:-4px;border-width:0 3px 3px 0}
+.moin-item-overlay-ul:hover,.moin-item-overlay-lr:hover{opacity:.8;filter:alpha;background-color:#d6d5d0;color:#1e90ff}
 sub{vertical-align:sub}
 sup{vertical-align:super}
 .moin-big{font-size:1.17em}
--- a/MoinMoin/themes/foobar/static/css/stylus/main.styl	Wed Jul 18 14:42:28 2012 +0530
+++ b/MoinMoin/themes/foobar/static/css/stylus/main.styl	Thu Jul 19 03:20:17 2012 +0530
@@ -1035,6 +1035,45 @@
 .transclude-action
     background: url(../img/moin-transclusion.png) no-repeat center center
 
+// transclusion
+.moin-item-wrapper
+    position relative
+    display inline-block
+
+.moin-item-wrapper > a:hover
+    color link_color
+    text-decoration none
+
+.moin-item-overlay-ul,
+.moin-item-overlay-lr
+    display none
+    position absolute
+    font-size 1.2em
+    font-weight bold
+    margin 0
+    opacity .5
+    filter alpha
+    padding 1px
+    border-color link_color
+    border-style double
+
+.moin-item-overlay-ul
+    top -4px
+    left -4px
+    border-width 3px 0 0 3px
+
+.moin-item-overlay-lr
+    bottom -4px
+    right -4px
+    border-width 0 3px 3px 0
+
+.moin-item-overlay-ul:hover,
+.moin-item-overlay-lr:hover
+    opacity .8
+    filter alpha
+    background-color base_color
+    color link_color
+    
 // text styles
 sub
     vertical-align sub
--- a/MoinMoin/themes/foobar/templates/local.html	Wed Jul 18 14:42:28 2012 +0530
+++ b/MoinMoin/themes/foobar/templates/local.html	Thu Jul 19 03:20:17 2012 +0530
@@ -84,10 +84,16 @@
                     {%- endif %}
 
                     {%- if endpoint == 'special.comments' %}
-                        <li class="toggleCommentsButton" style="display:none;">
+                        <li class="moin-toggle-comments-button" style="display:none;">
                             <a href="#" onClick="toggleComments();return false;" title="{{ title }}">{{ label }}</a>
                         </li>
                     {%- endif %}
+                 
+                {% if endpoint == 'special.transclusions' -%}
+                    <li class="moin-transclusions-button" style="display:none;">
+                    <a href="#" onClick="toggleTransclusionOverlays();return false;" title="{{ title }}">{{ label }}</a>
+                    </li>
+                {%- endif %}                    
 
                     {%- if endpoint == 'special.supplementation' %}
                         {%- for sub_item_name in cfg.supplementation_item_names %}