diff --git a/css/grid-n-view.css b/css/grid-n-view.css index 795aabb..8b68674 100644 --- a/css/grid-n-view.css +++ b/css/grid-n-view.css @@ -10,8 +10,8 @@ :root { /* dimensions */ --gallery-image-margin: 0; - --gallery-current-image-border: 0.7em; - --gallery-padding: 3em; + --gallery-current-image-border: 0.7rem; + --gallery-padding: 3rem; --gallery-padding-horizontal: var(--gallery-padding); --gallery-padding-vertical: var(--gallery-current-image-border); --gallery-padding-top: var(--gallery-padding-vertical); @@ -19,8 +19,8 @@ --gallery-padding-left: var(--gallery-padding-horizontal); --gallery-padding-right: var(--gallery-padding-horizontal); --gallery-image-scroll-margin: calc(2 * var(--gallery-current-image-border)); - --gallery-scrollbar-width: 0.5em; - --gallery-empty-height: 20em; + --gallery-scrollbar-width: 0.5rem; + --gallery-empty-height: 20rem; --lightbox-frame: 5vmin; --lightbox-image-margin-top: 0.75; @@ -96,19 +96,33 @@ body { align-content: flex-start; flex-flow: row wrap; } + +/* empty... */ .gallery .images:empty { height: var(--gallery-empty-height); border: dashed 1px black; } -.gallery .images:empty:after { - content: "Empty..."; +.gallery .images:empty:after, +.gallery .images:empty:before { position: absolute; width: 100%; left: 0; top: 0; - padding: calc((var(--gallery-empty-height) - 1em) / 2) 0; + line-height: var(--gallery-empty-height); text-align: center; + opacity: 0.6; } +.gallery .images:empty:before { + content: "Empty"; +} +.gallery .images:empty:after { + content: "(drag new images here)"; + font-size: small; + margin-top: 1.1em; + opacity: 0.4; +} + +/* image... */ .gallery .images img { height: 300px; width: auto; diff --git a/grid-n-view.html b/grid-n-view.html index 68bcdb6..a2b61be 100644 --- a/grid-n-view.html +++ b/grid-n-view.html @@ -112,7 +112,7 @@ var restoreScroll = function(){
-Controls:
+Keyboard controls:
     Left / Reight   - Previos / next image
     Up / Down       - Image above / below
     Space           - Mark image (also shift-click)
@@ -127,10 +127,32 @@ Controls:
 NOTE: if the grid behaves in an odd way on resize tweak PATCH_MARGIN value,
 	though this sould not be necessary.
 	(optimal range >1 and <3)	
+NOTE: the "basic actions" below are to be moved to the toolbar...
+
+For more info see: README.md
 

+Basic actions:
+toggle mark current (space) | +mark all (ctrl-a) | +unmark all (ctrl-d) | +reverse mark (ctrl-i) | +remove marked +
+
+toggle removal | +queue marked removal | +unqueue marked removal | +toggle marked removal | +remove queued +
+
+clear + +
+