Improve css on photogallery.

This commit is contained in:
voussoir 2022-11-13 10:26:58 -08:00
parent 0c001841b3
commit e3095dc9ab

View file

@ -30,10 +30,15 @@ def imagegallery_argparse(args):
color: white;
font-family: sans-serif;
}
body
body,
body h1
{
text-align: center;
}
body *
{
text-align: initial;
}
body.noscrollbar::-webkit-scrollbar
{
display: none;
@ -49,6 +54,14 @@ def imagegallery_argparse(args):
a
{
cursor: pointer;
color: #ae81ff;
}
p
{
margin-right: auto;
margin-right: auto;
width: 100%;
max-width: 1024px;
}
.photocell
{
@ -98,6 +111,9 @@ def imagegallery_argparse(args):
{% if title %}
<h1>{{title}}</h1>
{% endif %}
<p>Click each photo to view its full resolution. Click the number to download it.</p>
{% for file in files %}
<div class="photocell">
<a target="_blank" href="{{urlroot}}{{file.relative_to('.', simple=True)}}"><img loading="lazy" src="{{urlroot}}thumbs/small_{{file.relative_to('.', simple=True)}}"/></a>