tweaks and notes...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2023-08-03 16:40:59 +03:00
parent 9b518a3b06
commit ff90a6deee
2 changed files with 30 additions and 13 deletions

View File

@ -201,13 +201,17 @@ body {
text-align: center;
color: var(--lightbox-text-color);
background: var(--lightbox-background-color);
color: var(--gallery-text-color);
background: var(--gallery-background-color);
}
/*------------------------------------------------------ Lightbox ---*/
.gallery .lightbox {
color: var(--lightbox-text-color);
background: var(--lightbox-background-color);
}
.gallery .lightbox.show-caption:before {
content: attr(caption);
position: absolute;
@ -259,12 +263,20 @@ body {
font-size: var(--lightbox-button-size);
line-height: var(--lightbox-button-size);
filter: saturate(0);
opacity: 0.1;
}
.gallery .button:hover {
opacity: 1;
filter: saturate(1);
color: black;
color: var(--gallery-text-color);
/* XXX HACK: might be better to use SVG for this... */
text-shadow:
0.02em 0.02em 0em var(--gallery-background-color),
-0.02em -0.02em 0em var(--gallery-background-color),
-0.02em 0.02em 0em var(--gallery-background-color),
0.02em -0.02em 0em var(--gallery-background-color);
}
/* controls: close... */
.gallery .button.close:after {

View File

@ -51,23 +51,26 @@ var restoreScroll = function(){
<h3>ToDo</h3>
<pre>
- Views:
- <s>Gallery</s>
- <s>Details</s>
- <s>Lightbox</s>
- toolbar -- floating over image (gallery/lightbox/details/...)
- select / deselect
- delete / clear deleted
- <s>Views: Gallery />Details / Lightbox</s>
- Details: populate fields
- toolbar -- floating over gallery
- lightbox (current)
- info (current)
- select / deselect (current / all)
- delete / clear deleted (current / all)
- crop
- load
- Lightbox: indicators:
- toolbar -- floating over image (gallery/lightbox/details/...)
- lightbox
- info
- select / deselect
- delete
- Lightbox: hover indicators:
- start/end (a-la ImageGrid.Viewer??)
- next/prev
- <s>count</s>
- <s>selection</s>
- <s>Gallery: Adaptable image justification in grid</s>
- <s>Make more accurate -- align right side to pixel...</s>
- Can we make this passive??? (i.e. CSS only... likely not as flexible...)
- <s>Gallery: Spacial navigation (up/down/left/right)</s>
- <b>auto focus image iff the gallery is visible</b>
- handle focus / tabindex (???)
@ -122,6 +125,8 @@ var restoreScroll = function(){
<div class="lightbox">
<img>
<div class="buttons">
<div class="button prev"></div>
<div class="button next"></div>
<div class="button info"></div>
<div class="button fullscreen"></div>
<div class="button close"></div>