]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/stylesheets/common.scss
Wrap flash messages in a div instead of a paragraph
[rails.git] / app / assets / stylesheets / common.scss
index 42616fadbab6e9350f48dc76b454b2acd3ce24b9..e08b9ab87913987dea8987a6f78928501c260148 100644 (file)
@@ -1746,19 +1746,26 @@ header .search_form {
 
 /* Rules for "flash" notice boxes shown at the top of the content area */
 
-.error {
+.flash {
   padding: $lineheight;
-  background-color: #ff7070;
-}
 
-.warning {
-  padding: $lineheight;
-  background-color: #ffe0cc;
-}
+  &.error {
+    background-color: #ff7070;
+  }
 
-.notice {
-  padding: $lineheight;
-  background-color: #CBEEA7;
+  &.warning {
+    background-color: #ffe0cc;
+  }
+
+  &.notice {
+    background-color: #CBEEA7;
+  }
+
+  div.message {
+    display: inline-block;
+    margin-left: $lineheight / 2;
+    vertical-align: middle;
+  }
 }
 
 /* Rules for highlighting fields with rails validation errors */