diff options
| author | Martin Ridgers <[email protected]> | 2024-09-26 08:57:02 +0200 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2024-09-26 08:57:02 +0200 |
| commit | 31ffbab2352d727543db41f4a954fc68da085c04 (patch) | |
| tree | 5d533425aaf2b97bf664f265e552da516cff674b /src/zenserver/frontend/html/zen.js | |
| parent | 5.5.8-pre2 (diff) | |
| download | zen-31ffbab2352d727543db41f4a954fc68da085c04.tar.xz zen-31ffbab2352d727543db41f4a954fc68da085c04.zip | |
CSS colours in one place + small modal dialog fix. (#169)
* Separate modal dialog's background into its own div with own opacity
* Use :root and CSS vars for colours
* An html.zip refresh
Diffstat (limited to 'src/zenserver/frontend/html/zen.js')
| -rw-r--r-- | src/zenserver/frontend/html/zen.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/zenserver/frontend/html/zen.js b/src/zenserver/frontend/html/zen.js index 469d2f6f1..6bd74de0c 100644 --- a/src/zenserver/frontend/html/zen.js +++ b/src/zenserver/frontend/html/zen.js @@ -183,7 +183,9 @@ class Modal { const body = new Component(document.body); this._root = body.tag().classify("zen_modal"); - this._root.on("click", () => this._root.destroy()); + + const bg = this._root.tag().classify("zen_modal_bg"); + bg.on("click", () => this._root.destroy()); const rect = this._root.tag(); this._title = rect.tag().classify("zen_modal_title") |