From a71c5a26a31bc7cd3770b2ce0daad2986204fccd Mon Sep 17 00:00:00 2001 From: moisseev Date: Thu, 7 Mar 2024 18:00:38 +0300 Subject: [Minor] Add background icon to drop area --- interface/css/rspamd.css | 8 ++++++ interface/img/drop-area.svg | 70 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 78 insertions(+) create mode 100644 interface/img/drop-area.svg (limited to 'interface') 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 @@ + + -- cgit v1.2.3