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