changeset 1550:777c5220f57b

Foobar theme side panel list hover
author Jaiditya Mathur <jaiditya.mathur@gmail.com>
date Thu, 19 Jul 2012 16:18:46 +0530
parents f9ac0030dac6
children 46809e3cbbc6
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, 12 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/themes/foobar/static/css/common.css	Thu Jul 19 15:23:31 2012 +0530
+++ b/MoinMoin/themes/foobar/static/css/common.css	Thu Jul 19 16:18:46 2012 +0530
@@ -197,7 +197,8 @@
 #moin-global-panel ul,#moin-local-panel ul{list-style-type:none;margin:0;}
 #moin-global-panel ul li,#moin-local-panel ul li{background-color:#f1f1f1;font-size:1em;color:#696969;font-weight:bold;padding:.5em;border:1px solid #ccc;border-radius:4px;box-shadow:1px 1px 2px #9d9d9b;margin-left:.5em;margin-bottom:.5em;overflow:hidden;word-wrap:break-word;}
 #moin-global-panel ul li ul,#moin-local-panel ul li ul{padding:.2em .1em;}
-#moin-global-panel ul li ul li,#moin-local-panel ul li ul li{font-size:.8em;color:#808080;font-weight:normal;padding:.1em .1em .1em .1em;border:none;box-shadow:none;margin:0}
+#moin-global-panel ul li ul li,#moin-local-panel ul li ul li{font-size:.8em;color:#808080;font-weight:normal;padding:.1em .1em .2em .1em;border:none;box-shadow:none;margin:0;}
+#moin-global-panel ul li ul li:hover,#moin-local-panel ul li ul li:hover{background:#ccc}
 #moin-footer ul,#moin-credits{float:left;list-style-type:none;}
 #moin-footer ul li,#moin-credits li{padding:.1em}
 #moin-footer ul a,#moin-credits a{color:#616161}
@@ -205,6 +206,7 @@
 #moin-footer-logos ul li{display:inline}
 .moin-itemviews a:visited,#moin-trail a:visited,#moin-user a:visited{color:#1e90ff}
 .moin-itemviews a:hover,#moin-trail a:hover,#moin-user a:hover{color:#007cef}
+#moin-metadata ul li:hover{background:#f1f1f1 !important}
 label{display:block;font-weight:bold}
 input[type="submit"],input[type="button"],button{font-weight:bold;font-size:.75em;background:#d6d5d0;padding:4px 15px;border:1px solid #ccc;border-radius:6px;box-shadow:1px 1px 2px #9d9d9b;cursor:pointer;}
 input[type="submit"]:hover,input[type="button"]:hover,button:hover{box-shadow:1px 1px 2px #000}
--- a/MoinMoin/themes/foobar/static/css/stylus/main.styl	Thu Jul 19 15:23:31 2012 +0530
+++ b/MoinMoin/themes/foobar/static/css/stylus/main.styl	Thu Jul 19 16:18:46 2012 +0530
@@ -177,10 +177,12 @@
                 font-size small_font_size
                 color nonexistent_link_color
                 font-weight normal
-                padding 0.1em 0.1em 0.1em 0.1em
+                padding 0.1em 0.1em 0.2em 0.1em
                 border none
                 box-shadow none
                 margin 0
+                &:hover
+                    background border_color
 
 #moin-footer ul,
 #moin-credits
@@ -205,6 +207,11 @@
         &:hover
             color hover_color
 
+#moin-metadata
+    ul 
+        li:hover
+            background panel_color !important
+
 // form
 label
     display block
--- a/MoinMoin/themes/foobar/templates/local.html	Thu Jul 19 15:23:31 2012 +0530
+++ b/MoinMoin/themes/foobar/templates/local.html	Thu Jul 19 16:18:46 2012 +0530
@@ -19,7 +19,7 @@
         {{ itemviews }}    
     </li>
     {% if rev %}
-    <li>Metadata
+    <li id="moin-metadata">Metadata
         <ul>
             <li>{{ _("Revision:") }} {{rev.revid | shorten_id}}</li>
             <li>({{ rev.meta['mtime']|datetimeformat }})</li>