changeset 1584:cc5fb52be013

Modernized theme moin-flash moved to page from header
author Jaiditya Mathur <jaiditya.mathur@gmail.com>
date Sun, 29 Jul 2012 17:39:11 +0530
parents f9d787239c02
children c3641616bc58
files MoinMoin/templates/layout.html MoinMoin/themes/modernized/static/css/common.css MoinMoin/themes/modernized/static/css/stylus/main.styl
diffstat 3 files changed, 11 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/templates/layout.html	Sun Jul 29 02:34:27 2012 +0530
+++ b/MoinMoin/templates/layout.html	Sun Jul 29 17:39:11 2012 +0530
@@ -139,12 +139,6 @@
 
     {% block header_itemviews %}{% endblock %}
 
-    <div id="moin-flash">  {# client side javascript may add messages here #}
-    {% for category, msg in get_flashed_messages(with_categories=true) %}
-        <p class="moin-flash moin-flash-{{ category }}">{{ msg }}</p>
-    {% endfor %}
-    </div>
-
 {% endblock %}
 </div>
 
@@ -152,6 +146,12 @@
 
 <div id="moin-page" lang="{{ theme_supp.content_lang }}" dir="{{ theme_supp.content_dir }}">
 
+    <div id="moin-flash">  {# client side javascript may add messages here #}
+    {% for category, msg in get_flashed_messages(with_categories=true) %}
+        <p class="moin-flash moin-flash-{{ category }}">{{ msg }}</p>
+    {% endfor %}
+    </div>
+    
     {% block subitem_navigation %}{% endblock %}
 
     {% block item -%}
--- a/MoinMoin/themes/modernized/static/css/common.css	Sun Jul 29 02:34:27 2012 +0530
+++ b/MoinMoin/themes/modernized/static/css/common.css	Sun Jul 29 17:39:11 2012 +0530
@@ -405,8 +405,8 @@
 ul.moin-tags li.weight7{font-size:160%}
 ul.moin-tags li.weight8{font-size:180%}
 ul.moin-tags li.weight9{font-size:200%}
-#moin-flash{margin:0}
-.moin-flash{margin:0;padding:6px 6px 6px 38px;background-color:#d8dfe9;border-bottom:1px solid #4e7da9;background-repeat:no-repeat;background-position:16px center;color:#000}
+#moin-flash{margin:0;display:table-row}
+.moin-flash{margin:0;padding:6px 6px 6px 38px;background-color:#d8dfe9;border-bottom:1px solid #4e7da9;background-repeat:no-repeat;background-position:16px center;border-top-right-radius:9px;border-top-left-radius:9px;color:#000}
 .moin-flash-hint{background-image:url("../img/smileys/idea.png")}
 .moin-flash-info{background-image:url("../img/smileys/icon-info.png")}
 .moin-flash-warning{background-image:url("../img/smileys/alert.png");color:#ff2727}
--- a/MoinMoin/themes/modernized/static/css/stylus/main.styl	Sun Jul 29 02:34:27 2012 +0530
+++ b/MoinMoin/themes/modernized/static/css/stylus/main.styl	Sun Jul 29 17:39:11 2012 +0530
@@ -959,6 +959,7 @@
 
 #moin-flash
     margin 0
+    display table-row
 
 .moin-flash
     margin 0
@@ -967,6 +968,8 @@
     border-bottom border_style
     background-repeat no-repeat
     background-position 16px center
+    border-top-right-radius 9px
+    border-top-left-radius 9px
     color font_color
 
 .moin-flash-hint