changeset 2840:9fd268defb04

replace basic theme sidebar [+] with font awesome carets
author RogerHaase <haaserd@gmail.com>
date Wed, 22 Oct 2014 10:50:18 -0700
parents 73cad6a551be
children b5e7e50e552b
files MoinMoin/static/js/common.js MoinMoin/themes/basic/static/css/theme.css MoinMoin/themes/basic/static/custom-less/theme.less MoinMoin/themes/basic/templates/show.html
diffstat 4 files changed, 25 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/static/js/common.js	Wed Oct 22 09:31:57 2014 -0700
+++ b/MoinMoin/static/js/common.js	Wed Oct 22 10:50:18 2014 -0700
@@ -652,16 +652,19 @@
 
     $('.moin-useractions').click(function () {
         $('#moin-user-actions').toggleClass('hidden');
+        $('.moin-useractions > i').toggleClass('fa-rotate-90');
         return false;
     });
 
     $('.moin-viewoptions').click(function () {
         $('#moin-view-options').toggleClass('hidden');
+        $('.moin-viewoptions > i').toggleClass('fa-rotate-90');
         return false;
     });
 
     $('.moin-itemactions').click(function () {
         $('#moin-item-actions').toggleClass('hidden');
+        $('.moin-itemactions > i').toggleClass('fa-rotate-90');
         return false;
     });
 
--- a/MoinMoin/themes/basic/static/css/theme.css	Wed Oct 22 09:31:57 2014 -0700
+++ b/MoinMoin/themes/basic/static/css/theme.css	Wed Oct 22 10:50:18 2014 -0700
@@ -6336,6 +6336,12 @@
 .moin-useractions {
   float: right;
 }
+a.moin-showhide {
+  color: #c8ddf1;
+}
+a:focus.moin-showhide {
+  outline-width: 0;
+}
 .list-group-item-heading {
   margin: 7px 10px;
 }
--- a/MoinMoin/themes/basic/static/custom-less/theme.less	Wed Oct 22 09:31:57 2014 -0700
+++ b/MoinMoin/themes/basic/static/custom-less/theme.less	Wed Oct 22 10:50:18 2014 -0700
@@ -95,6 +95,13 @@
   float: right;
 }
 
+a.moin-showhide {
+  color: @search_option_bar_text_color;
+}
+a:focus.moin-showhide {
+  outline-width: 0;
+}
+
 .list-group-item-heading {
   margin: 7px 10px;
 }
--- a/MoinMoin/themes/basic/templates/show.html	Wed Oct 22 09:31:57 2014 -0700
+++ b/MoinMoin/themes/basic/templates/show.html	Wed Oct 22 10:50:18 2014 -0700
@@ -32,7 +32,9 @@
         <div class="moin-list-heading">
             <div class="list-group-item-heading">
                 {{ _("User Actions") }}
-                <a class="moin-showhide moin-useractions" href="#" >[+]</a>
+                <a class="moin-showhide moin-useractions" href="#" >
+                    <i class="fa fa-lg fa-caret-right"></i>
+                </a>
             </div>
             <div id="moin-user-actions" class="hidden">{{ self.user_actions() }}</div>
         </div>
@@ -41,7 +43,9 @@
     <div class="moin-list-heading">
         <div class="list-group-item-heading">
             {{ _("View Options") }}
-            <a class="moin-showhide moin-viewoptions" href="#">[+]</a>
+            <a class="moin-showhide moin-viewoptions" href="#">
+                <i class="fa fa-lg fa-caret-right"></i>
+            </a>
         </div>
 
         <div id="moin-view-options" class="hidden">
@@ -64,7 +68,9 @@
         <div class="moin-list-heading">
             <div class="list-group-item-heading">
                 {{ _("Item Actions") }}
-                <a class="moin-showhide moin-itemactions" href="#" >[+]</a>
+                <a class="moin-showhide moin-itemactions" href="#" >
+                    <i class="fa fa-lg fa-caret-right"></i>
+                </a>
             </div>
             <div id="moin-item-actions" class="hidden">{{ self.item_actions() }}</div>
         </div>