Better default CSS/class for non-image attachments

This commit is contained in:
Jaidyn Ann 2024-05-05 22:46:25 -05:00
parent 58797c1b3a
commit 63e8608c9b
2 changed files with 8 additions and 9 deletions

View File

@ -34,20 +34,19 @@ fi
if test -z "$ATTACH_TEMPLATE"; then
ATTACH_TEMPLATE='
<a href="$ATTACH_URL">
<div class="attachment">
<strong>$ATTACH_NAME</strong>
$ATTACH_DESC
</div>
</a>'
<div class="attachment">
<a href="$ATTACH_URL"><strong>$ATTACH_NAME</strong></a>
$ATTACH_DESC
</div>
'
fi
if test -z "$ATTACH_IMAGE_TEMPLATE"; then
ATTACH_IMAGE_TEMPLATE='
<figure>
<figure class="attachment">
<a href="$ATTACH_URL">
<img class="attachment" src="$ATTACH_URL" alt="$ATTACH_DESC" title="$ATTACH_DESC">
<img src="$ATTACH_URL" alt="$ATTACH_DESC" title="$ATTACH_DESC">
</a>
<figcaption>
<a href="$ATTACH_URL"><b>$ATTACH_NAME</b></a><br>

View File

@ -95,7 +95,7 @@
width: 1.5em;
}
.comment figure {
.comment .attachment {
padding: 10px;
border: 1px solid gray;
border-radius: 10px;