From 2df37688e198ae1a51f9a3487dd382b6732bbfbc Mon Sep 17 00:00:00 2001 From: SowinskiBraeden Date: Mon, 29 Jun 2026 20:48:28 -0700 Subject: [PATCH] dismess popups --- boker/config.py | 2 +- static/css/style.css | 31 +++++++++++++++++++++++++++++++ templates/base.html | 17 ++++++++++++++++- 3 files changed, 48 insertions(+), 2 deletions(-) diff --git a/boker/config.py b/boker/config.py index 151384e..dc03473 100644 --- a/boker/config.py +++ b/boker/config.py @@ -8,7 +8,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent DEFAULT_DATABASE_URL = f"sqlite:///{BASE_DIR / 'data' / 'boker-dev.sqlite3'}" DEFAULT_SECRET_KEY = "change-this-before-deploying" -APP_VERSION = "2.5.33" +APP_VERSION = "2.5.34" def load_local_env(env_path: Path) -> None: diff --git a/static/css/style.css b/static/css/style.css index 42ceaeb..368b2ad 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -627,12 +627,37 @@ h1, h2, h3, h4 { margin: 0; } ================================================================ */ .flash-stack { display: grid; gap: 10px; margin-bottom: 24px; } .flash { + display: flex; + align-items: flex-start; + justify-content: space-between; + gap: 12px; padding: 11px 16px; border-radius: var(--r-sm); font-size: 14px; + line-height: 1.45; border: 1px solid var(--border); background: var(--surface); } +.flash__message { + min-width: 0; + overflow-wrap: anywhere; +} +.flash__dismiss { + appearance: none; + border: 0; + background: transparent; + color: currentColor; + opacity: .62; + font-size: 20px; + line-height: 1; + padding: 0 0 0 8px; + cursor: pointer; + flex: none; +} +.flash__dismiss:hover, +.flash__dismiss:focus-visible { + opacity: 1; +} .flash.success { color: var(--pos); border-color: var(--pos-tint-bd); @@ -5738,6 +5763,12 @@ select.control { cursor: pointer; } padding: 0; max-width: none; } +.page--auth > .flash-stack { + width: min(380px, calc(100% - 48px)); + margin: 24px auto -20px; + position: relative; + z-index: 2; +} .auth-split { display: flex; diff --git a/templates/base.html b/templates/base.html index be3180e..ac1b106 100644 --- a/templates/base.html +++ b/templates/base.html @@ -76,7 +76,10 @@ {% if messages %}
{% for category, message in messages %} -
{{ message }}
+
+ {{ message }} + +
{% endfor %}
{% endif %} @@ -133,6 +136,18 @@ })(); +