Improve css on photogallery.
This commit is contained in:
parent
0c001841b3
commit
e3095dc9ab
1 changed files with 17 additions and 1 deletions
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue