From: moisseev Date: Thu, 7 Mar 2024 15:00:38 +0000 (+0300) Subject: [Minor] Add background icon to drop area X-Git-Tag: 3.9.0~106^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F4862%2Fhead;p=rspamd.git [Minor] Add background icon to drop area --- diff --git a/interface/css/rspamd.css b/interface/css/rspamd.css index 92adf52fa..d21dfd605 100644 --- a/interface/css/rspamd.css +++ b/interface/css/rspamd.css @@ -401,6 +401,14 @@ table#symbolsTable input[type="number"] { .outline-dashed-primary { outline: 2px dashed var(--bs-primary); } +#scanMsgSource:placeholder-shown { + background-image: url("../img/drop-area.svg"); + background-repeat: no-repeat; + background-position: center; + opacity: 0.8; +} +#scanMsgSource:not(:placeholder-shown) { background-image: none;} + .scorebar-spam { background-color: rgba(240 0 0 / 0.1) !important; } diff --git a/interface/img/drop-area.svg b/interface/img/drop-area.svg new file mode 100644 index 000000000..7c8c791d8 --- /dev/null +++ b/interface/img/drop-area.svg @@ -0,0 +1,70 @@ + +