From a14abfe90bb5d5145049b06e83be5d752145bb6a Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sat, 27 Apr 2013 16:47:25 +0100 Subject: [PATCH] Tone down the anonymous edit warning for notes 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 | 11 ++++++----- app/views/browse/note.html.erb | 4 ++-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/app/assets/stylesheets/common.css.scss b/app/assets/stylesheets/common.css.scss index 9d6ec7d27..bab4c9560 100644 --- a/app/assets/stylesheets/common.css.scss +++ b/app/assets/stylesheets/common.css.scss @@ -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; } diff --git a/app/views/browse/note.html.erb b/app/views/browse/note.html.erb index 740646efb..f441b7b3b 100644 --- a/app/views/browse/note.html.erb +++ b/app/views/browse/note.html.erb @@ -16,8 +16,8 @@
<% if @note.comments.find { |comment| comment.author.nil? } -%> -
- <%= t "javascripts.notes.show.anonymous_warning" %> +
+

<%= t "javascripts.notes.show.anonymous_warning" %>

<% end -%> -- 2.43.2