From e8fb34d750cc88363b7810e84e747296726bdaca Mon Sep 17 00:00:00 2001 From: Chris Van Date: Wed, 2 Nov 2011 14:05:27 -0700 Subject: [PATCH] add ajax loading throbbers to devhub dashboard (bug 698669) --- media/css/impala/devhub-compat.less | 4 ---- media/css/impala/devhub-popups.less | 24 ++++++++++++++++++++++++ settings.py | 2 ++ 3 files changed, 26 insertions(+), 4 deletions(-) create mode 100644 media/css/impala/devhub-popups.less diff --git a/media/css/impala/devhub-compat.less b/media/css/impala/devhub-compat.less index a769425f54..8ebe231ad4 100644 --- a/media/css/impala/devhub-compat.less +++ b/media/css/impala/devhub-compat.less @@ -1,9 +1,5 @@ @import 'lib'; -.tooltip.ajax-loading { - .background-size(auto 12px); -} - .compat-error { background: url(../../img/zamboni/notifications.png) 0px -164px no-repeat; padding-left: 15px; diff --git a/media/css/impala/devhub-popups.less b/media/css/impala/devhub-popups.less new file mode 100644 index 0000000000..a294575fbb --- /dev/null +++ b/media/css/impala/devhub-popups.less @@ -0,0 +1,24 @@ +@import 'lib'; + +.tooltip.ajax-loading { + .background-size(auto 12px); +} + +.widgets .widget.ajax-loading, +.widgets .widget:hover.ajax-loading, +input.ui-autocomplete-loading, +.modal.ajax-loading, +.modal-actions.ajax-loading, +.tooltip.ajax-loading, +.tooltip:hover.ajax-loading { + background-image: url(../../img/zamboni/loading-white.gif); + background-position: 0 100%; + background-repeat: no-repeat; +} +.modal.ajax-loading { + background-position: 50% 50%; +} +input.ui-autocomplete-loading, +.modal-actions.ajax-loading { + background-position: 100% 50%; +} diff --git a/settings.py b/settings.py index 503cbec0f9..8c8d63d899 100644 --- a/settings.py +++ b/settings.py @@ -503,6 +503,7 @@ MINIFY_BUNDLES = { 'css/zamboni/docs.less', 'css/impala/developers.less', 'css/impala/devhub-packager.less', + 'css/impala/devhub-popups.less', 'css/impala/devhub-compat.less', 'css/impala/formset.less', 'css/impala/devhub-forms.less', @@ -510,6 +511,7 @@ MINIFY_BUNDLES = { 'zamboni/devhub_impala': ( 'css/impala/developers.less', 'css/impala/devhub-listing.less', + 'css/impala/devhub-popups.less', 'css/impala/devhub-compat.less', 'css/impala/devhub-dashboard.less', 'css/impala/devhub-forms.less',