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 if test -z "$ATTACH_TEMPLATE"; then
ATTACH_TEMPLATE=' ATTACH_TEMPLATE='
<a href="$ATTACH_URL"> <div class="attachment">
<div class="attachment"> <a href="$ATTACH_URL"><strong>$ATTACH_NAME</strong></a>
<strong>$ATTACH_NAME</strong>
$ATTACH_DESC $ATTACH_DESC
</div> </div>
</a>' '
fi fi
if test -z "$ATTACH_IMAGE_TEMPLATE"; then if test -z "$ATTACH_IMAGE_TEMPLATE"; then
ATTACH_IMAGE_TEMPLATE=' ATTACH_IMAGE_TEMPLATE='
<figure> <figure class="attachment">
<a href="$ATTACH_URL"> <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> </a>
<figcaption> <figcaption>
<a href="$ATTACH_URL"><b>$ATTACH_NAME</b></a><br> <a href="$ATTACH_URL"><b>$ATTACH_NAME</b></a><br>

View File

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