changeset 2467:7fbeb5863ae5

Fixes #62, differentiating menu headings
author sharky93 <rishabhr123@gmail.com>
date Thu, 12 Sep 2013 01:03:12 +0530
parents 214e0e41a34c
children fdb156e28049
files MoinMoin/themes/basic/static/css/basic.css MoinMoin/themes/basic/static/custom-less/basic.less MoinMoin/themes/basic/templates/layout.html MoinMoin/themes/basic/templates/show.html
diffstat 4 files changed, 13 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/themes/basic/static/css/basic.css	Wed Sep 11 23:49:58 2013 +0530
+++ b/MoinMoin/themes/basic/static/css/basic.css	Thu Sep 12 01:03:12 2013 +0530
@@ -4208,6 +4208,9 @@
     display: none !important;
   }
 }
+.moin-list-heading {
+  background-color: #dcdcdc;
+}
 .moin-flash {
   padding: 15px 35px 15px 15px;
   margin-bottom: 20px;
--- a/MoinMoin/themes/basic/static/custom-less/basic.less	Wed Sep 11 23:49:58 2013 +0530
+++ b/MoinMoin/themes/basic/static/custom-less/basic.less	Thu Sep 12 01:03:12 2013 +0530
@@ -1,5 +1,9 @@
 @import "bootstrap.less";
 
+.moin-list-heading {
+  background-color: darken(@panel-heading-bg,10%);
+}
+
 .moin-flash {
   .alert;
   &>a {
--- a/MoinMoin/themes/basic/templates/layout.html	Wed Sep 11 23:49:58 2013 +0530
+++ b/MoinMoin/themes/basic/templates/layout.html	Thu Sep 12 01:03:12 2013 +0530
@@ -122,13 +122,13 @@
                             {% set quicklinks = 'false' %}
                             {% if navibar_items %}
 
-                            <div class="list-group-item"> {{ _("Site Navigation") }} </div>
+                            <div class="list-group-item moin-list-heading"> {{ _("Site Navigation") }} </div>
                             {% for cls, url, text, title in navibar_items if cls != 'userlink' %}
                                 <a class="list-group-item {{ cls }}{% if url == current_url %} active{% endif %}" href="{{ url }}" {% if title %}title="{{ title }}"{% endif %}>{{ text|shorten_item_name }}</a>
                             {% endfor %}
                             
                             {% if item_navigation %}
-                            <div class="list-group-item"> {{ _("Supplementation") }} </div>
+                            <div class="list-group-item moin-list-heading"> {{ _("Supplementation") }} </div>
                             {{ local_panel_main(item_navigation) }}
                             {% endif %}
 
@@ -136,7 +136,7 @@
                             
                             {% for cls, url, text, title in navibar_items if cls == 'userlink' %}
                                 {% if loop.first %}
-                                    <div class="list-group-item">Quick Links</div>
+                                    <div class="list-group-item moin-list-heading">Quick Links</div>
                                 {% endif %}
                                     <div class="moin-quicklink">
                                     <a class="moin-quicklink-label {{ cls }}" href="{{ url }}" {% if title %}title="{{ title }}"{% endif %}>{{ text|shorten_item_name }}
--- a/MoinMoin/themes/basic/templates/show.html	Wed Sep 11 23:49:58 2013 +0530
+++ b/MoinMoin/themes/basic/templates/show.html	Thu Sep 12 01:03:12 2013 +0530
@@ -32,11 +32,11 @@
         <!-- user, site, item actions -->
     <div class="list-group">
         {% if user_actions %}
-            <div class="list-group-item"> {{ _("User Actions") }} </div>
+            <div class="list-group-item moin-list-heading"> {{ _("User Actions") }} </div>
             {{ self.user_actions() }}
         {% endif %}
 
-        <div class="list-group-item">View Options</div>
+        <div class="list-group-item moin-list-heading">View Options</div>
         <button type="button" 
                 class="btn btn-default moin-user-action-special moin-toggle-comments-button" 
                 data-toggle="button"
@@ -57,7 +57,7 @@
         </button>
          
         {% if item_actions %}           
-            <div class="list-group-item"> {{ _("Item Actions") }} </div>
+            <div class="list-group-item moin-list-heading"> {{ _("Item Actions") }} </div>
             {{ self.item_actions() }}
         {% endif %}
     </div>