diff --git a/css/grid-n-view.css b/css/grid-n-view.css index 2d7dbb3..ee4619f 100644 --- a/css/grid-n-view.css +++ b/css/grid-n-view.css @@ -22,6 +22,7 @@ --lightbox-text-color: black; --lightbox-background-color: white; + /*--lightbox-background-color: rgba(0,0,0,0.8);*/ } .gallery-dark { @@ -80,9 +81,8 @@ body { width: auto; image-rendering: crisp-edges; box-sizing: border-box; -} -.gallery .images img { - cursor: hand; + + cursor: pointer; } .gallery .images img.current { border: solid 2px red; @@ -134,7 +134,7 @@ body { left: 0.5em; } .gallery .lightbox.clickable { - cursor: hand; + cursor: pointer; } /* XXX add metadata display... */ .gallery .lightbox img { @@ -150,14 +150,14 @@ body { * var(--lightbox-image-margin-top)); } /* controls: next/prev... */ -.lightbox .button { - cursor: hand; +.gallery .lightbox .button { + cursor: pointer; font-size: var(--lightbox-button-size); padding: 0 0.25em; filter: saturate(0); opacity: 0.1; } -.lightbox .button:hover { +.gallery .lightbox .button:hover { opacity: 1; filter: saturate(1); } diff --git a/grid-n-view.js b/grid-n-view.js index 0da54fb..db4af85 100644 --- a/grid-n-view.js +++ b/grid-n-view.js @@ -135,6 +135,18 @@ var keyboard = { //--------------------------------------------------------------------- var Gallery = { + code: ` +