]> git.openstreetmap.org Git - rails.git/commitdiff
Tone down the anonymous edit warning for notes
authorTom Hughes <tom@compton.nu>
Sat, 27 Apr 2013 15:47:25 +0000 (16:47 +0100)
committerTom Hughes <tom@compton.nu>
Sat, 27 Apr 2013 15:47:25 +0000 (16:47 +0100)
Increase the saturation of our standard warning colour a little so
that it is more visible, and then switch notes to using the warning
colour instead of the error colour.

app/assets/stylesheets/common.css.scss
app/views/browse/note.html.erb

index 9d6ec7d274c101486c8c0aff0fd3432e27697f9a..bab4c95606e7695b7f051166102e054ec7164f02 100644 (file)
@@ -940,9 +940,10 @@ ul.results-list li { border-bottom: 1px solid #ccc; }
   &:first-child {
     margin-top: 0;
   }
-  &.warning {
-    color: #ff7070;
-    font-weight: bold;
+  .warning {
+    background-color: #ffe0cc;
+    margin: 0px;
+    padding: 4px 6px;
   }
   div {
     clear: left;
@@ -1371,7 +1372,7 @@ p#contributorGuidance {
     background-color: #ff7070;
   }
   &#warning {
-    background-color: #fff6f0;
+    background-color: #ffe0cc;
   }
   &#notice {
     background-color: #CBEEA7;
@@ -1738,7 +1739,7 @@ a.button.submit {
 
   .warning {
     display: block;
-    background-color: #ff7070;
+    background-color: #ffe0cc;
     padding: 4px 6px;
     margin-bottom: 10px;
   }
index 740646efb616fce53d14982c25d9239ff281e49c..f441b7b3bec2795e61daa687cb2731ce5b3f8a8b 100644 (file)
@@ -16,8 +16,8 @@
 <div class='column-1'>
 
   <% if @note.comments.find { |comment| comment.author.nil? } -%>
-  <div class='browse-section common warning'>
-    <%= t "javascripts.notes.show.anonymous_warning" %>
+  <div class='browse-section common'>
+    <p class="warning"><%= t "javascripts.notes.show.anonymous_warning" %></p>
   </div>
   <% end -%>