From ef048fcc1c05cf5073e767ff65a5c24dabc640a8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Wed, 11 Dec 2019 09:23:53 +0100 Subject: [PATCH] Add warning class --- Resources/public/css/screen.css | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Resources/public/css/screen.css b/Resources/public/css/screen.css index 271e7d6..953d83f 100644 --- a/Resources/public/css/screen.css +++ b/Resources/public/css/screen.css @@ -137,6 +137,8 @@ body { /* Message */ .notice::before, .notice::after, +.warning::before, +.warning::after, .error::before, .error::after { content: "⚠"; @@ -146,6 +148,7 @@ body { } .notice, +.warning, .error { display: flex; flex-direction: row; @@ -173,11 +176,26 @@ body { color: #3333c3; } +.warning::before, +.warning::after { + /*XXX: see https://www.fileformat.info/info/unicode/char/2139/fontsupport.htm + * DejaVu Sans/FreeSans/FreeSerif/Linux Libertine/Symbola/Unifont*/ + content: "?"; + /*content: "⌘";*/ +} + +.warning { + border-color: #c39333; + background-color: #f9c333; + color: #936333; +} + .flash { margin: 0 .5rem .5rem; } p.notice, +p.warning, p.error { margin-bottom: .5rem; } -- 2.41.0