From: Alexander Moisseev Date: Sat, 24 Dec 2016 12:23:40 +0000 (+0300) Subject: [WebUI] Replace spinner with animated glyphicon X-Git-Tag: 1.5.0~488^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c5d4c5395d0864f18139379847fc0fb26dfd6d91;p=rspamd.git [WebUI] Replace spinner with animated glyphicon --- diff --git a/interface/css/rspamd.css b/interface/css/rspamd.css index 7a2f4b920..ca0ca815e 100644 --- a/interface/css/rspamd.css +++ b/interface/css/rspamd.css @@ -91,28 +91,6 @@ textarea { font-size:11px !important; } -/* spinners optional */ -input { - margin:0px; - padding:0px; - width:60px; - } -input[type=number] { - padding-right:25px; /* at least image width */ - text-align:right; - width:60px; - } -input.number { /* should be same as type=number for IE and overriding */ - padding-right:25px; /* at least image width */ - text-align:right; - } -input::-webkit-outer-spin-button, -input::-webkit-inner-spin-button { - /* display:none; <- Crashes Chrome on hover */ - -webkit-appearance:none; - margin:0; /* <-- Apparently some margin are still there even though it's hidden */ -} - /* history table */ .table-log { table-layout:fixed; @@ -238,12 +216,19 @@ td.maps-cell { color:#005580; text-decoration:underline; } -.spinner { - background:url('../img/spinner.gif') no-repeat -100px; - } -.loading .spinner { - background-position:0 50%; - } + +/* Glyphicons animated spinners */ +.loading .glyphicon-spin { + animation: spin 1000ms infinite linear; +} +@keyframes spin { + 0% { + transform: rotate(0deg); + } + 100% { + transform: rotate(359deg); + } +} /* widget */ .widget-box { diff --git a/interface/img/spinner.gif b/interface/img/spinner.gif deleted file mode 100644 index 9ad345573..000000000 Binary files a/interface/img/spinner.gif and /dev/null differ diff --git a/interface/img/spinner.png b/interface/img/spinner.png deleted file mode 100644 index bccc78605..000000000 Binary files a/interface/img/spinner.png and /dev/null differ diff --git a/interface/index.html b/interface/index.html index b903b2575..5e7e9e4b6 100644 --- a/interface/index.html +++ b/interface/index.html @@ -31,8 +31,8 @@
  • History
  • diff --git a/interface/js/rspamd.js b/interface/js/rspamd.js index e5f37e6df..f2690baf5 100644 --- a/interface/js/rspamd.js +++ b/interface/js/rspamd.js @@ -1289,7 +1289,9 @@ $('#navBar').addClass('loading'); }); $(document).ajaxComplete(function () { - $('#navBar').removeClass('loading'); + setTimeout(function () { + $('#navBar').removeClass('loading'); + }, 1000); }); $('#status_nav').bind('click', function (e) { getChart();