added toolbar button grouping...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
383134a917
commit
45130ab8d2
@ -228,10 +228,12 @@ body {
|
||||
|
||||
/* XXX make the toolbar swirchable and contextual... */
|
||||
.gallery .toolbar {
|
||||
--padding: 0.5rem;
|
||||
|
||||
display: inline-block;
|
||||
position: sticky;
|
||||
top: 1em;
|
||||
padding: 0.5rem;
|
||||
padding: var(--padding);
|
||||
|
||||
z-index: calc(var(--base-layer) + 1);
|
||||
|
||||
@ -244,6 +246,15 @@ body {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* groups... */
|
||||
.gallery .toolbar>div {
|
||||
display: inline-block;
|
||||
}
|
||||
.gallery .toolbar>div:not(:last-child) {
|
||||
padding-right: calc(var(--padding) / 2);
|
||||
border-right: solid 1px var(--gallery-secondary-color);
|
||||
}
|
||||
|
||||
/* buttons... */
|
||||
.gallery .toolbar button {
|
||||
line-height: 1.5rem;
|
||||
|
||||
@ -78,18 +78,20 @@ For more info see: <a href="./README.md">README.md</a>
|
||||
<div class="gallery">
|
||||
<!-- toolbar -->
|
||||
<div class="toolbar">
|
||||
<button onclick="gallery.toggleMark()" title="toggle mark current (space)">◐</button>
|
||||
<button onclick="gallery.markAll()" title="mark all (ctrl-a)">⏺*</button>
|
||||
<button onclick="gallery.unmarkAll()" title="unmark all (ctrl-d)">⭘*</button>
|
||||
<button onclick="gallery.markInverse()" title="reverse mark (ctrl-i)">◐*</button>
|
||||
<button onclick="gallery.remove('marked')" title="remove marked">⦻</button>
|
||||
|
|
||||
<button onclick="gallery.toggleQueueRemoval()" title="queue removal (del)">◧</button>
|
||||
<button onclick="gallery.queueRemoval('marked')" title="queue marked removal">◼⏺</button>
|
||||
<button onclick="gallery.unqueueRemoval('marked')" title="unqueue marked removal">◻⏺</button>
|
||||
<button onclick="gallery.toggleQueueRemoval('marked')" title="toggle marked removal">◧⏺</button>
|
||||
<button onclick="gallery.removeQueued()" title="remove queued (shift-del)">☒</button>
|
||||
|
|
||||
<div>
|
||||
<button onclick="gallery.toggleMark()" title="toggle mark current (space)">◐</button>
|
||||
<button onclick="gallery.markAll()" title="mark all (ctrl-a)">⏺*</button>
|
||||
<button onclick="gallery.unmarkAll()" title="unmark all (ctrl-d)">⭘*</button>
|
||||
<button onclick="gallery.markInverse()" title="reverse mark (ctrl-i)">◐*</button>
|
||||
<button onclick="gallery.remove('marked')" title="remove marked">⦻</button>
|
||||
</div>
|
||||
<div>
|
||||
<button onclick="gallery.toggleQueueRemoval()" title="queue removal (del)">◧</button>
|
||||
<button onclick="gallery.queueRemoval('marked')" title="queue marked removal">◼⏺</button>
|
||||
<button onclick="gallery.unqueueRemoval('marked')" title="unqueue marked removal">◻⏺</button>
|
||||
<button onclick="gallery.toggleQueueRemoval('marked')" title="toggle marked removal">◧⏺</button>
|
||||
<button onclick="gallery.removeQueued()" title="remove queued (shift-del)">☒</button>
|
||||
</div>
|
||||
<button onclick="gallery.clear()" title="clear">Clear</button>
|
||||
</div>
|
||||
<!-- gallery: content -->
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user