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 %}