From 8a505033cf3ffdab616fa2371b75bf0d15d5fd2c Mon Sep 17 00:00:00 2001 From: Serghei Mihai Date: Wed, 21 Dec 2022 10:17:31 +0100 Subject: [PATCH] lille-metropole-2022: customize error message (#72683) --- static/lille-metropole-2022/_custom.scss | 13 +++++++++++++ static/lille-metropole-2022/img/error.svg | 1 + 2 files changed, 14 insertions(+) create mode 100644 static/lille-metropole-2022/img/error.svg diff --git a/static/lille-metropole-2022/_custom.scss b/static/lille-metropole-2022/_custom.scss index b36982b8..c954e412 100644 --- a/static/lille-metropole-2022/_custom.scss +++ b/static/lille-metropole-2022/_custom.scss @@ -383,6 +383,19 @@ div.file-upload-widget div.file-button div.widget-message::after { color: green; } +div.error { + color: $primary-color; + background: url('img/error.svg') center left no-repeat; +} + +div.widget-with-error .content { + input, select, textarea, .select2, .file-button { + border: 1px solid $primary-color; + &:focus { + border: $widget-focus-border; + } + } +} /* FOOTER */ diff --git a/static/lille-metropole-2022/img/error.svg b/static/lille-metropole-2022/img/error.svg new file mode 100644 index 00000000..caee0bff --- /dev/null +++ b/static/lille-metropole-2022/img/error.svg @@ -0,0 +1 @@ +