2018-11-13 06:15:59 +00:00
|
|
|
.album_card
|
|
|
|
{
|
2019-01-02 01:20:22 +00:00
|
|
|
background-color: var(--color_theme_secondary);
|
2018-11-13 06:15:59 +00:00
|
|
|
}
|
|
|
|
.album_card:hover
|
|
|
|
{
|
|
|
|
box-shadow: 2px 2px 5px 0px var(--color_site_dropshadow);
|
|
|
|
}
|
|
|
|
.album_card_list
|
|
|
|
{
|
|
|
|
display: grid;
|
|
|
|
grid-template:
|
|
|
|
"title metadata"
|
|
|
|
/1fr;
|
|
|
|
|
|
|
|
margin: 8px;
|
|
|
|
padding: 4px;
|
|
|
|
}
|
|
|
|
.album_card_grid
|
|
|
|
{
|
|
|
|
position: relative;
|
|
|
|
display: inline-grid;
|
|
|
|
vertical-align: top;
|
|
|
|
grid-template:
|
2018-12-22 07:44:11 +00:00
|
|
|
"thumbnail title" 1fr
|
2018-11-13 06:15:59 +00:00
|
|
|
"thumbnail metadata" auto
|
|
|
|
/auto 1fr;
|
|
|
|
|
2018-12-22 07:44:11 +00:00
|
|
|
width: 325px;
|
2018-11-13 06:15:59 +00:00
|
|
|
margin: 8px;
|
|
|
|
padding: 8px;
|
|
|
|
}
|
|
|
|
.album_card_thumbnail
|
|
|
|
{
|
|
|
|
grid-area: thumbnail;
|
|
|
|
background-color: var(--color_site_transparency);
|
|
|
|
width: 64px;
|
|
|
|
height: 64px;
|
|
|
|
margin-right: 8px;
|
|
|
|
}
|
|
|
|
.album_card_thumbnail img
|
|
|
|
{
|
|
|
|
max-width: 100%;
|
|
|
|
max-height: 100%;
|
|
|
|
margin: auto;
|
|
|
|
}
|
|
|
|
.album_card_title
|
|
|
|
{
|
|
|
|
grid-area: title;
|
|
|
|
}
|
|
|
|
.album_card_metadata
|
|
|
|
{
|
|
|
|
grid-area: metadata;
|
|
|
|
}
|
|
|
|
.album_card_tools
|
|
|
|
{
|
|
|
|
position: absolute;
|
|
|
|
right: 4px;
|
|
|
|
bottom: 4px;
|
|
|
|
}
|
|
|
|
|
2018-02-24 08:58:43 +00:00
|
|
|
.photo_card
|
|
|
|
{
|
2019-01-02 01:20:22 +00:00
|
|
|
background-color: var(--color_theme_secondary);
|
2018-02-24 08:58:43 +00:00
|
|
|
}
|
|
|
|
.photo_card_list
|
|
|
|
{
|
|
|
|
display: grid;
|
2018-11-13 06:15:59 +00:00
|
|
|
grid-template:
|
|
|
|
"checkbox filename metadata" auto
|
|
|
|
/auto 1fr auto;
|
2018-02-24 08:58:43 +00:00
|
|
|
|
|
|
|
margin: 8px;
|
|
|
|
padding: 4px;
|
|
|
|
}
|
2018-11-13 06:15:59 +00:00
|
|
|
.photo_card:hover
|
2018-02-24 08:58:43 +00:00
|
|
|
{
|
2018-09-22 23:01:34 +00:00
|
|
|
box-shadow: 2px 2px 5px 0px var(--color_site_dropshadow);
|
2018-02-24 08:58:43 +00:00
|
|
|
}
|
|
|
|
.photo_card_list .photo_card_selector_checkbox
|
|
|
|
{
|
|
|
|
grid-area: checkbox;
|
2018-12-22 07:44:11 +00:00
|
|
|
align-self: center;
|
2018-02-24 08:58:43 +00:00
|
|
|
}
|
|
|
|
.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:
|
|
|
|
"thumbnail thumbnail" auto
|
|
|
|
"filename filename" 1fr
|
|
|
|
"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;
|
2018-10-22 01:46:27 +00:00
|
|
|
height: 210px;
|
2018-02-24 08:58:43 +00:00
|
|
|
padding: 8px;
|
|
|
|
margin: 8px;
|
|
|
|
|
|
|
|
border-radius: 8px;
|
|
|
|
}
|
|
|
|
.photo_card_grid .photo_card_selector_checkbox
|
|
|
|
{
|
|
|
|
position:absolute;
|
|
|
|
left:5px;
|
|
|
|
top:5px;
|
|
|
|
}
|
|
|
|
.photo_card_thumbnail
|
|
|
|
{
|
|
|
|
grid-area: thumbnail;
|
|
|
|
align-self: start;
|
|
|
|
justify-self: center;
|
2018-03-11 03:53:29 +00:00
|
|
|
display: flex;
|
|
|
|
width: 100%;
|
|
|
|
height: 150px;
|
2018-02-24 08:58:43 +00:00
|
|
|
}
|
|
|
|
.photo_card_thumbnail img
|
|
|
|
{
|
|
|
|
max-width: 100%;
|
2018-03-11 03:53:29 +00:00
|
|
|
max-height: 100%;
|
|
|
|
margin: auto;
|
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;
|
|
|
|
|
|
|
|
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
|
|
|
}
|
|
|
|
.photo_card_list .photo_card_filename
|
|
|
|
{
|
|
|
|
align-self: center;
|
|
|
|
}
|
|
|
|
.photo_card_filename:hover
|
|
|
|
{
|
|
|
|
overflow: visible;
|
|
|
|
max-height: none;
|
2018-10-22 01:46:27 +00:00
|
|
|
z-index: 1;
|
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
|
|
|
}
|
|
|
|
.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;
|
|
|
|
}
|