2018-11-13 06:15:59 +00:00
|
|
|
.album_card
|
|
|
|
{
|
2020-06-25 17:03:50 +00:00
|
|
|
background-color: var(--color_secondary);
|
2018-11-13 06:15:59 +00:00
|
|
|
}
|
|
|
|
.album_card:hover
|
|
|
|
{
|
2020-06-25 17:03:50 +00:00
|
|
|
box-shadow: 2px 2px 5px 0px var(--color_dropshadow);
|
2018-11-13 06:15:59 +00:00
|
|
|
}
|
|
|
|
.album_card_list
|
|
|
|
{
|
2023-09-17 21:07:22 +00:00
|
|
|
display: inline-grid;
|
2018-11-13 06:15:59 +00:00
|
|
|
grid-template:
|
|
|
|
"title metadata"
|
|
|
|
/1fr;
|
|
|
|
|
|
|
|
margin: 8px;
|
|
|
|
padding: 4px;
|
|
|
|
}
|
|
|
|
.album_card_grid
|
|
|
|
{
|
|
|
|
position: relative;
|
|
|
|
display: inline-grid;
|
|
|
|
vertical-align: top;
|
|
|
|
grid-template:
|
2020-04-03 05:28:36 +00:00
|
|
|
"thumbnail" auto
|
|
|
|
"title" auto
|
|
|
|
"metadata" auto
|
|
|
|
/1fr;
|
2018-11-13 06:15:59 +00:00
|
|
|
|
2020-04-03 05:28:36 +00:00
|
|
|
min-width: 150px;
|
|
|
|
max-width: 300px;
|
|
|
|
height: 225px;
|
2020-04-03 04:59:22 +00:00
|
|
|
margin: 8px;
|
2018-11-13 06:15:59 +00:00
|
|
|
padding: 8px;
|
2020-07-27 02:17:47 +00:00
|
|
|
|
|
|
|
border-radius: 8px;
|
2018-11-13 06:15:59 +00:00
|
|
|
}
|
|
|
|
.album_card_thumbnail
|
|
|
|
{
|
|
|
|
grid-area: thumbnail;
|
2020-04-03 05:28:36 +00:00
|
|
|
display: flex;
|
|
|
|
width: 100%;
|
|
|
|
height: 150px;
|
2018-11-13 06:15:59 +00:00
|
|
|
}
|
|
|
|
.album_card_thumbnail img
|
|
|
|
{
|
|
|
|
max-width: 100%;
|
2021-06-16 05:01:43 +00:00
|
|
|
max-height: 150px;
|
2018-11-13 06:15:59 +00:00
|
|
|
margin: auto;
|
|
|
|
}
|
2019-12-21 22:47:04 +00:00
|
|
|
.album_card_list .album_card_thumbnail
|
|
|
|
{
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2018-11-13 06:15:59 +00:00
|
|
|
.album_card_title
|
|
|
|
{
|
|
|
|
grid-area: title;
|
|
|
|
}
|
|
|
|
.album_card_metadata
|
|
|
|
{
|
|
|
|
grid-area: metadata;
|
|
|
|
}
|
|
|
|
.album_card_tools
|
|
|
|
{
|
2021-01-19 18:37:11 +00:00
|
|
|
display: none;
|
2018-11-13 06:15:59 +00:00
|
|
|
position: absolute;
|
|
|
|
right: 4px;
|
|
|
|
bottom: 4px;
|
2021-01-19 18:37:11 +00:00
|
|
|
background-color: var(--color_transparency);
|
|
|
|
min-width: max-content;
|
2018-11-13 06:15:59 +00:00
|
|
|
}
|
2021-01-19 18:37:11 +00:00
|
|
|
.album_card_tools:hover,
|
|
|
|
.album_card:hover .album_card_tools
|
2019-12-21 22:47:04 +00:00
|
|
|
{
|
2021-01-19 18:37:11 +00:00
|
|
|
display: initial;
|
2019-12-21 22:47:04 +00:00
|
|
|
}
|
2018-11-13 06:15:59 +00:00
|
|
|
|
2020-04-03 05:28:36 +00:00
|
|
|
/* ########################################################################## */
|
|
|
|
/* ########################################################################## */
|
|
|
|
/* ########################################################################## */
|
|
|
|
|
2021-01-08 21:41:49 +00:00
|
|
|
.bookmark_card
|
|
|
|
{
|
|
|
|
position: relative;
|
2021-10-31 23:08:41 +00:00
|
|
|
display: inline-block;
|
2021-01-08 21:41:49 +00:00
|
|
|
|
|
|
|
padding: 8px;
|
|
|
|
margin: 8px;
|
|
|
|
max-width: 500px;
|
2021-06-04 00:43:06 +00:00
|
|
|
word-break: break-all;
|
2021-01-08 21:41:49 +00:00
|
|
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
|
|
|
background-color: var(--color_secondary);
|
|
|
|
}
|
|
|
|
|
|
|
|
.bookmark_card:hover
|
|
|
|
{
|
|
|
|
box-shadow: 2px 2px 5px 0px var(--color_dropshadow);
|
|
|
|
}
|
|
|
|
|
|
|
|
.bookmark_card .bookmark_url
|
|
|
|
{
|
2021-10-31 23:12:14 +00:00
|
|
|
display: none;
|
2021-01-08 21:41:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.bookmark_card input
|
|
|
|
{
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.bookmark_card .bookmark_url
|
|
|
|
{
|
|
|
|
color: #aaa;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* ########################################################################## */
|
|
|
|
/* ########################################################################## */
|
|
|
|
/* ########################################################################## */
|
|
|
|
|
2018-02-24 08:58:43 +00:00
|
|
|
.photo_card
|
|
|
|
{
|
2020-06-25 17:03:50 +00:00
|
|
|
background-color: var(--color_secondary);
|
2023-09-17 21:07:22 +00:00
|
|
|
width: max-content;
|
2018-02-24 08:58:43 +00:00
|
|
|
}
|
2019-12-21 22:50:38 +00:00
|
|
|
.photo_card:hover
|
|
|
|
{
|
2020-06-25 17:03:50 +00:00
|
|
|
box-shadow: 2px 2px 5px 0px var(--color_dropshadow);
|
2019-12-21 22:50:38 +00:00
|
|
|
}
|
2021-01-21 02:58:13 +00:00
|
|
|
.photo_card_searchhidden
|
|
|
|
{
|
|
|
|
border: 2px dotted var(--color_shadow);
|
|
|
|
}
|
|
|
|
|
|
|
|
.photo_card_selected::after
|
|
|
|
{
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
top: 0; bottom: 0; left: 0; right: 0;
|
|
|
|
pointer-events: none;
|
|
|
|
border: 2px solid blue;
|
|
|
|
background-color: rgba(0, 0, 255, 0.25);
|
|
|
|
border-radius: inherit;
|
|
|
|
}
|
|
|
|
|
2018-02-24 08:58:43 +00:00
|
|
|
.photo_card_list
|
|
|
|
{
|
2020-01-12 00:33:30 +00:00
|
|
|
position: relative;
|
2018-02-24 08:58:43 +00:00
|
|
|
display: grid;
|
2018-11-13 06:15:59 +00:00
|
|
|
grid-template:
|
2021-10-31 23:15:01 +00:00
|
|
|
"checkbox filename metadata tags toolbutton" auto
|
|
|
|
/auto 1fr auto auto auto;
|
2021-01-20 00:33:34 +00:00
|
|
|
grid-column-gap: 4px;
|
2018-02-24 08:58:43 +00:00
|
|
|
margin: 8px;
|
|
|
|
padding: 4px;
|
|
|
|
}
|
|
|
|
.photo_card_grid
|
|
|
|
{
|
|
|
|
position: relative;
|
|
|
|
display: inline-grid;
|
2018-03-11 03:53:29 +00:00
|
|
|
vertical-align: top;
|
2018-10-22 01:46:27 +00:00
|
|
|
grid-template:
|
2021-10-31 23:15:57 +00:00
|
|
|
"thumbnail thumbnail" minmax(0, 1fr)
|
|
|
|
"filename filename" 50px
|
2018-10-22 01:46:27 +00:00
|
|
|
"tags metadata" auto
|
2018-11-13 06:15:59 +00:00
|
|
|
/10px auto;
|
2018-02-24 08:58:43 +00:00
|
|
|
min-width: 150px;
|
|
|
|
max-width: 300px;
|
2019-09-10 22:32:35 +00:00
|
|
|
height: 225px;
|
2018-02-24 08:58:43 +00:00
|
|
|
padding: 8px;
|
|
|
|
margin: 8px;
|
|
|
|
|
|
|
|
border-radius: 8px;
|
|
|
|
}
|
2021-01-21 02:58:13 +00:00
|
|
|
|
2021-01-05 07:31:41 +00:00
|
|
|
.photo_card_grid .photo_clipboard_selector_checkbox
|
2018-02-24 08:58:43 +00:00
|
|
|
{
|
|
|
|
position:absolute;
|
|
|
|
left:5px;
|
|
|
|
top:5px;
|
|
|
|
}
|
2021-01-21 02:58:13 +00:00
|
|
|
.photo_card_list .photo_clipboard_selector_checkbox
|
|
|
|
{
|
|
|
|
grid-area: checkbox;
|
|
|
|
align-self: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.photo_card_grid .photo_card_thumbnail
|
2018-02-24 08:58:43 +00:00
|
|
|
{
|
|
|
|
grid-area: thumbnail;
|
|
|
|
align-self: start;
|
|
|
|
justify-self: center;
|
2018-03-11 03:53:29 +00:00
|
|
|
display: flex;
|
2021-06-16 05:26:42 +00:00
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
2018-03-11 03:53:29 +00:00
|
|
|
width: 100%;
|
2021-10-31 23:15:57 +00:00
|
|
|
height: 100%;
|
2018-02-24 08:58:43 +00:00
|
|
|
}
|
2021-01-21 02:58:13 +00:00
|
|
|
.photo_card_grid .photo_card_thumbnail img
|
2018-02-24 08:58:43 +00:00
|
|
|
{
|
2021-10-31 23:15:57 +00:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
object-fit: contain;
|
2018-02-24 08:58:43 +00:00
|
|
|
}
|
2021-01-21 02:58:13 +00:00
|
|
|
|
2018-02-24 08:58:43 +00:00
|
|
|
.photo_card_filename
|
|
|
|
{
|
|
|
|
/*
|
|
|
|
The width of photo cards should be based on the aspect ratio of the
|
|
|
|
thumbnail image. Previously, I had problems where the card would be wider
|
|
|
|
than necessary because the file had a long name.
|
|
|
|
The min-width:100% + width:0 prevent the info div from controlling
|
|
|
|
card size, so we can prioritize the thumbnail instead.
|
|
|
|
*/
|
|
|
|
justify-self: start;
|
|
|
|
grid-area: filename;
|
|
|
|
|
2019-07-12 20:57:52 +00:00
|
|
|
position: relative;
|
2018-02-24 08:58:43 +00:00
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
min-width: 100%;
|
|
|
|
width: 0;
|
|
|
|
background-color: inherit;
|
|
|
|
word-break: break-word;
|
|
|
|
}
|
|
|
|
.photo_card_grid .photo_card_filename
|
|
|
|
{
|
|
|
|
align-self: start;
|
2018-12-27 23:30:30 +00:00
|
|
|
max-height: 30px;
|
2018-11-13 06:15:59 +00:00
|
|
|
font-size: 12.8px;
|
2018-02-24 08:58:43 +00:00
|
|
|
}
|
2019-12-21 22:49:42 +00:00
|
|
|
.photo_card_grid .photo_card_filename:hover
|
2018-02-24 08:58:43 +00:00
|
|
|
{
|
|
|
|
overflow: visible;
|
|
|
|
max-height: none;
|
2020-08-29 00:12:32 +00:00
|
|
|
z-index: 1;
|
2019-07-12 20:57:52 +00:00
|
|
|
}
|
2019-12-21 22:49:42 +00:00
|
|
|
.photo_card_grid .photo_card_filename:hover a
|
2019-07-12 20:57:52 +00:00
|
|
|
{
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
background-color: inherit;
|
2018-02-24 08:58:43 +00:00
|
|
|
}
|
2021-01-21 02:58:13 +00:00
|
|
|
.photo_card_list .photo_card_filename
|
|
|
|
{
|
|
|
|
align-self: center;
|
|
|
|
}
|
|
|
|
|
2018-02-24 08:58:43 +00:00
|
|
|
.photo_card_tags
|
|
|
|
{
|
|
|
|
grid-area: tags;
|
|
|
|
align-self: end;
|
|
|
|
justify-self: start;
|
|
|
|
|
|
|
|
font-family: monospace;
|
|
|
|
font-size: 11px;
|
2018-11-13 06:15:59 +00:00
|
|
|
|
|
|
|
cursor: help;
|
2018-02-24 08:58:43 +00:00
|
|
|
}
|
2021-01-21 02:58:13 +00:00
|
|
|
|
2018-02-24 08:58:43 +00:00
|
|
|
.photo_card_metadata
|
|
|
|
{
|
|
|
|
grid-area: metadata;
|
2018-12-22 07:44:11 +00:00
|
|
|
align-self: center;
|
2018-02-24 08:58:43 +00:00
|
|
|
justify-self: end;
|
|
|
|
|
|
|
|
font-family: monospace;
|
|
|
|
font-size: 11px;
|
|
|
|
}
|
2020-01-12 00:33:30 +00:00
|
|
|
|
2021-10-31 23:15:01 +00:00
|
|
|
.photo_card_grid .photo_card_toolbutton
|
2021-01-21 23:37:05 +00:00
|
|
|
{
|
|
|
|
position: absolute;
|
|
|
|
top: 4px;
|
|
|
|
right: 4px;
|
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
|
|
|
}
|
2021-10-31 23:15:01 +00:00
|
|
|
.photo_card_list .photo_card_toolbutton
|
|
|
|
{
|
|
|
|
grid-area: toolbutton;
|
|
|
|
}
|
|
|
|
|
2022-08-04 01:40:36 +00:00
|
|
|
.photo_card_contextmenu
|
2021-01-21 23:37:05 +00:00
|
|
|
{
|
|
|
|
display: none;
|
|
|
|
background-color: var(--color_secondary);
|
|
|
|
border: 2px solid var(--color_shadow);
|
|
|
|
z-index: 1;
|
|
|
|
width: max-content;
|
|
|
|
}
|
2022-08-04 01:40:36 +00:00
|
|
|
.photo_card_contextmenu.open_contextmenu
|
2021-01-21 23:37:05 +00:00
|
|
|
{
|
|
|
|
display: initial;
|
2022-08-04 01:40:36 +00:00
|
|
|
position: absolute;
|
2021-01-21 23:37:05 +00:00
|
|
|
}
|
|
|
|
|
2021-01-08 22:16:59 +00:00
|
|
|
/* ########################################################################## */
|
|
|
|
/* ########################################################################## */
|
|
|
|
/* ########################################################################## */
|
|
|
|
|
2023-09-17 21:07:22 +00:00
|
|
|
.photo_tag_card
|
|
|
|
{
|
|
|
|
position: relative;
|
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* ########################################################################## */
|
|
|
|
/* ########################################################################## */
|
|
|
|
/* ########################################################################## */
|
|
|
|
|
2021-01-08 22:16:59 +00:00
|
|
|
.tag_card
|
|
|
|
{
|
2023-09-17 21:07:22 +00:00
|
|
|
position: relative;
|
|
|
|
display: inline-block;
|
2021-01-08 22:16:59 +00:00
|
|
|
border-radius: 2px;
|
|
|
|
padding-left: 2px;
|
|
|
|
padding-right: 2px;
|
|
|
|
|
|
|
|
background-color: var(--color_tag_card_bg);
|
|
|
|
color: var(--color_tag_card_fg);
|
|
|
|
|
|
|
|
font-size: 0.9em;
|
|
|
|
font-family: monospace;
|
2023-09-17 21:07:22 +00:00
|
|
|
}
|
|
|
|
.tag_card,
|
|
|
|
.tag_card a
|
|
|
|
{
|
|
|
|
color: var(--color_tag_card_fg);
|
|
|
|
text-decoration: none;
|
2021-01-08 22:16:59 +00:00
|
|
|
}
|