From 2b2b477b1c8887076defe6cce7d914db224dcede Mon Sep 17 00:00:00 2001 From: James Mills Date: Tue, 24 Dec 2024 15:53:21 +1000 Subject: Add alert styles and default alert banner to warn of illegal content and abuse --- static/theme.css | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) (limited to 'static') diff --git a/static/theme.css b/static/theme.css index c013f3e..17bc6d8 100644 --- a/static/theme.css +++ b/static/theme.css @@ -557,3 +557,50 @@ footer p a:hover { display: block; text-align: left; } + +/* Alert styles */ + +alert { + /* grid-area: alert;*/ + /* display: flex;*/ + display: block; + width: 100%; + margin: 0; + padding: 0.5rem; + text-align: center; + font-weight: bold; + color: white; + align-items: center; + justify-content: center; + /* border-radius: var(--border-radius);*/ +} + +alert a { + color: white; + text-decoration: underline; +} + +alert.float { + top: 0; + left: 0; + /* position: fixed;*/ + position: sticky; + z-index: 9999; +} + + +alert.safe { + background-color: #4f8811; +} + +alert.warn { + background-color: #ff5500; +} + +alert.panic { + background-color: #ee1515; +} + +alert.update { + background-color: #2986cc; +} -- cgit v1.2.3