From ad30c7e57f53b5e35ec68edb5e6e88f6a3e9e95e Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 13 Sep 2023 18:35:19 +0300 Subject: [PATCH] reworking of lookbars... Signed-off-by: Alex A. Naanou --- README.md | 1 + css/grid-n-view.css | 17 ++++++++++++++++- grid-n-view.html | 26 ++++++++++---------------- grid-n-view.js | 4 ++++ 4 files changed, 31 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index ef2b4bb..6a91065 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,7 @@ - BUG?: for some reason toggling fullscreen on a mobile device changes font size... +- toolbar: drag: broken for non-first relative toolbars... - Save current gallery (zip/json?) - Save current editor state (zip/json?) - ~~Views: Gallery / Details / Lightbox~~ diff --git a/css/grid-n-view.css b/css/grid-n-view.css index 052b0ed..f23d1b7 100644 --- a/css/grid-n-view.css +++ b/css/grid-n-view.css @@ -293,7 +293,9 @@ button:active { position: sticky; top: 0; + height: 0; margin: 0 calc(var(--gallery-padding-horizontal) * -1); + overflow: visible; z-index: calc(var(--base-layer) + 2); } @@ -306,13 +308,17 @@ button:active { --padding: 0.5rem; --height: calc((var(--toolbar-button-size) + var(--padding) * 2)); - position: absolute; + /*position: absolute;*/ + position: relative; display: inline-block; left: var(--move-x); top: var(--move-y); width: fit-content; + min-height: var(--toolbar-button-size); + + margin: 0.1em 0px; padding: var(--padding); padding-right: var(--height); @@ -412,6 +418,15 @@ button:active { border-right: solid 1px var(--gallery-secondary-color); } +.gallery .toolbar .states:empty:after { + display: inline-block; + content: "Empty..."; + line-height: var(--toolbar-button-size); + opacity: 0.3; + padding: 0em 0.5em; +} + + /* buttons... */ .gallery .toolbar button { min-width: var(--toolbar-button-size); diff --git a/grid-n-view.html b/grid-n-view.html index 2c410a3..ae11926 100644 --- a/grid-n-view.html +++ b/grid-n-view.html @@ -83,21 +83,6 @@ For more info see: README.md