changeset 1492:e16b711fb298

Foobar theme moin-flash and error styling
author Jaiditya Mathur <jaiditya.mathur@gmail.com>
date Sun, 24 Jun 2012 09:58:42 +0530
parents 8d0d1fe93524
children 0eeab594bc91
files MoinMoin/static/js/common.js MoinMoin/themes/foobar/static/css/common.css MoinMoin/themes/foobar/static/css/stylus/color_palette.styl MoinMoin/themes/foobar/static/css/stylus/main.styl
diffstat 4 files changed, 42 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/static/js/common.js	Sun Jun 24 09:50:29 2012 +0530
+++ b/MoinMoin/static/js/common.js	Sun Jun 24 09:58:42 2012 +0530
@@ -462,7 +462,7 @@
                 return;
             }
             // remove all flash messages previously added via javascript
-            $('#moin-header .moin-flash-javascript').remove();
+            $('#moin-flash .moin-flash-javascript').remove();
             // add new flash messages from the response
             for (i = 0; i < data.flash.length; i += 1) {
                 f = $(document.createElement('p'));
--- a/MoinMoin/themes/foobar/static/css/common.css	Sun Jun 24 09:50:29 2012 +0530
+++ b/MoinMoin/themes/foobar/static/css/common.css	Sun Jun 24 09:58:42 2012 +0530
@@ -293,6 +293,12 @@
 a.moin-nonexistent:visited{color:#f1f1f1}
 a.moin-nonexistent:hover{color:#ff2727}
 a.moin-nonexistent:active{color:#ff2727}
+.moin-flash{margin:0;padding:6px 6px 6px 38px;background-color:#fff;border-bottom:border style;background-repeat:no-repeat;background-position:16px center}
+.moin-flash-hint{background-image:url("../img/smileys/idea.png");color:#007cef}
+.moin-flash-info{background-image:url("../img/smileys/icon-info.png");color:#007cef}
+.moin-flash-warning{background-image:url("../img/smileys/alert.png");color:#ff2727}
+.moin-flash-error{background-image:url("../img/smileys/icon-error.png");color:#ff2727}
+.moin-error{color:#ff2727;background:#d6d5d0;padding:4px;margin:1em;text-align:centre;list-style-type:none;border-radius:5px}
 ul,dl{margin-left:1.5em}
 ol{margin-left:3em;}
 ol ol{margin-left:1.5em}
--- a/MoinMoin/themes/foobar/static/css/stylus/color_palette.styl	Sun Jun 24 09:50:29 2012 +0530
+++ b/MoinMoin/themes/foobar/static/css/stylus/color_palette.styl	Sun Jun 24 09:58:42 2012 +0530
@@ -16,4 +16,5 @@
 active_color = #51d443
 visited_color = #5693c1
 nonexistent_link_color = #f1f1f1
-nonexistent_hover_color = #ff2727
\ No newline at end of file
+nonexistent_hover_color = #ff2727
+error_color = #ff2727
\ No newline at end of file
--- a/MoinMoin/themes/foobar/static/css/stylus/main.styl	Sun Jun 24 09:50:29 2012 +0530
+++ b/MoinMoin/themes/foobar/static/css/stylus/main.styl	Sun Jun 24 09:58:42 2012 +0530
@@ -599,6 +599,39 @@
     &.moin-nonexistent:active
         color nonexistent_hover_color
 
+// moin-flash & error
+.moin-flash
+    margin 0
+    padding 6px 6px 6px 38px
+    background-color heading_color
+    border-bottom border style
+    background-repeat no-repeat
+    background-position 16px center
+
+.moin-flash-hint
+    background-image url(../img/smileys/idea.png)
+    color hover_color
+
+.moin-flash-info
+    background-image url(../img/smileys/icon-info.png)
+    color hover_color
+
+.moin-flash-warning
+    background-image url(../img/smileys/alert.png)
+    color error_color
+
+.moin-flash-error
+    background-image url(../img/smileys/icon-error.png)
+    color error_color
+  
+.moin-error
+    color error_color
+    background base_color
+    padding 4px
+    margin 1em
+    text-align centre
+    list-style-type none
+    border-radius 5px
 
 // lists
 ul, dl