]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] WebUI CSS: Drop ancient gradient syntaxes 4069/head
authormoisseev <moiseev@mezonplus.ru>
Thu, 10 Feb 2022 08:08:50 +0000 (11:08 +0300)
committermoisseev <moiseev@mezonplus.ru>
Thu, 10 Feb 2022 08:08:50 +0000 (11:08 +0300)
interface/css/rspamd.css
interface/js/app/stats.js

index 8b7e8f6dc3b68f79b98921c9f64f7f646cfc245e..3fbc317693c9b2dfa3ef46231c66d124c7fbd659 100644 (file)
@@ -210,17 +210,8 @@ table#symbolsTable input[type="number"] {
 /* widget */
 .card-header,
 .modal-header {
-    background-color: #efefef;
-    background-image: -webkit-gradient(linear, 0 0%, 0 100%, from(#fdfdfd), to(#eaeaea));
-    background-image: -webkit-linear-gradient(top, #fdfdfd 0%, #eaeaea 100%);
-    background-image: -moz-linear-gradient(top, #fdfdfd 0%, #eaeaea 100%);
-    background-image: -ms-linear-gradient(top, #fdfdfd 0%, #eaeaea 100%);
-    background-image: -o-linear-gradient(top, #fdfdfd 0%, #eaeaea 100%);
-    background-image: -linear-gradient(top, #fdfdfd 0%, #eaeaea 100%);
-
-    /* IE6-9 */
-    /* stylelint-disable-next-line function-name-case */
-    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#fdfdfd", endColorstr="#eaeaea", GradientType=0);
+    background-color: #f3f3f3;
+    background-image: linear-gradient(to bottom, #fdfdfd, #eaeaea);
 }
 .card-header > .icon > svg {
     vertical-align: middle;
@@ -230,12 +221,8 @@ table#symbolsTable input[type="number"] {
 }
 
 .stat-box {
-    background-image: -webkit-gradient(linear, 0 0%, 0 100%, from(#f9f9f9), to(#ededed));
-    background-image: -webkit-linear-gradient(top, #f9f9f9 0%, #ededed 100%);
-    background-image: -moz-linear-gradient(top, #f9f9f9 0%, #ededed 100%);
-    background-image: -ms-linear-gradient(top, #f9f9f9 0%, #ededed 100%);
-    background-image: -o-linear-gradient(top, #f9f9f9 0%, #ededed 100%);
-    background-image: linear-gradient(to bottom, #f9f9f9 0%, #ededed 100%);
+    background-color: #f3f3f3;
+    background-image: linear-gradient(to bottom, #f9f9f9, #ededed);
     line-height: 1;
 }
 .stat-box:not(.float-right) {
index b674d25c370bd99679b058c0c11063347d0fed73..b7194a15740282f42457889f52163e82c72161ab 100644 (file)
@@ -71,7 +71,7 @@ define(["jquery", "d3pie"],
                 function widget(k, v, cls) {
                     var c = (typeof cls === "undefined") ? "" : cls;
                     var titleAtt = d3.format(",")(v) + " " + k;
-                    return '<div class="card stat-box d-inline-block text-center bg-light shadow-sm mr-3 px-3">' +
+                    return '<div class="card stat-box d-inline-block text-center shadow-sm mr-3 px-3">' +
                       '<div class="widget overflow-hidden p-2' + c + '" title="' + titleAtt +
                       '"><strong class="d-block mt-2 mb-1 font-weight-bold">' +
                     d3.format(".3~s")(v) + "</strong>" + k + "</div></div>";
@@ -100,7 +100,7 @@ define(["jquery", "d3pie"],
                 $(item).appendTo("#statWidgets");
             });
             $("#statWidgets > div:not(.stat-box)")
-                .wrapAll('<div class="card stat-box text-center bg-light shadow-sm float-right">' +
+                .wrapAll('<div class="card stat-box text-center shadow-sm float-right">' +
                   '<div class="widget overflow-hidden p-2 text-capitalize"></div></div>');
             $("#statWidgets").find("div.float-right").appendTo("#statWidgets");
             $("#statWidgets").show();