From 9617cf7cc855b15899320d71d2a29d6d8bd6cf72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Sat, 13 Jun 2020 12:02:53 +0200 Subject: [PATCH] css: add style for field live hint (#42396) --- gadjo/static/css/_forms.scss | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/gadjo/static/css/_forms.scss b/gadjo/static/css/_forms.scss index 73a7f43..c015852 100644 --- a/gadjo/static/css/_forms.scss +++ b/gadjo/static/css/_forms.scss @@ -351,3 +351,39 @@ form.small button + a.button { [name$="-clear"] + label { display: inline; } + +.field-live-hint { + position: absolute; + background: #ffffee; + color: #333; + z-index: 1000000; + padding: 1em 1em; + box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.16); +} + +.field-live-hint span::before { + font-family: FontAwesome; + content: "\f071"; /* exclamation triangle */ + padding-right: 0.5em; +} + +.field-live-hint button.action, +.field-live-hint button.close { + margin: 0 1em; + padding: 0; + color: blue !important; + border: none; + text-decoration: underline !important; + background: transparent !important; + box-shadow: none !important; +} + +.field-live-hint button.close { + color: #333 !important; + margin: 0; + text-decoration: none !important; +} + +.field-live-hint button.close::after { + content: "×"; +}