From 871ab87bf210ef758e9dac1dd1944ec891f1522e Mon Sep 17 00:00:00 2001 From: Peter Fogg Date: Fri, 12 Jul 2013 09:01:03 -0400 Subject: [PATCH] Fix saving notification CSS. --- cms/djangoapps/contentstore/features/section.py | 2 +- cms/static/sass/elements/_system-feedback.scss | 4 ++-- cms/templates/js/system-feedback.underscore | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cms/djangoapps/contentstore/features/section.py b/cms/djangoapps/contentstore/features/section.py index f41b2dbcd0..93fa0adf3e 100644 --- a/cms/djangoapps/contentstore/features/section.py +++ b/cms/djangoapps/contentstore/features/section.py @@ -44,7 +44,7 @@ def i_save_a_new_section_release_date(_step): @step('I see a "saving" notification') def i_see_a_saving_notification(step): - saving_css = '.wrapper-notification-saving' + saving_css = '.wrapper-notification-mini' assert world.is_css_present(saving_css) diff --git a/cms/static/sass/elements/_system-feedback.scss b/cms/static/sass/elements/_system-feedback.scss index 29c77bbc5e..5022a9f677 100644 --- a/cms/static/sass/elements/_system-feedback.scss +++ b/cms/static/sass/elements/_system-feedback.scss @@ -274,7 +274,7 @@ } } - &.wrapper-notification-saving { + &.wrapper-notification-mini { box-shadow: 0 -1px 3px $shadow, inset 0 3px 1px $pink; } @@ -434,7 +434,7 @@ } } - &.saving { + &.mini { [class^="icon"] { @include animation(rotateCW $tmg-s3 linear infinite); diff --git a/cms/templates/js/system-feedback.underscore b/cms/templates/js/system-feedback.underscore index b8ef1b8dc8..cf4f8479bb 100644 --- a/cms/templates/js/system-feedback.underscore +++ b/cms/templates/js/system-feedback.underscore @@ -1,6 +1,6 @@
wrapper-<%= type %>-status<% } %>" id="<%= type %>-<%= intent %>" aria-hidden="<% if(obj.shown) { %>false<% } else { %>true<% } %>" aria-labelledby="<%= type %>-<%= intent %>-title" @@ -9,7 +9,7 @@ >
<% if(obj.icon) { %> - <% var iconClass = {"warning": "warning-sign", "confirmation": "ok", "error": "warning-sign", "announcement": "bullhorn", "step-required": "exclamation-sign", "help": "question-sign", "saving": "cog"} %> + <% var iconClass = {"warning": "warning-sign", "confirmation": "ok", "error": "warning-sign", "announcement": "bullhorn", "step-required": "exclamation-sign", "help": "question-sign", "mini": "cog"} %> <% } %>