fix overlapping text and other layout weirdness

This commit is contained in:
rhiannon morris 2023-07-10 10:59:07 +02:00
parent db83137243
commit f16c2f549a
2 changed files with 10 additions and 4 deletions

View File

@ -154,11 +154,13 @@ make' root siteName prefix nsfw _dataDir dir
<div class=page>
<header>
<h1>$title</h1>
$artistTag
<h2 id=date class="right corner">
$formattedDate $updateDate
</h2>
<a class="left corner" href=$undir>back to gallery</a>
<h2 class="left corner">
$artistTag
<a href=$undir>back to gallery</a>
</h2>
</header>
$2.buttonBar
@ -193,7 +195,7 @@ last' xs = if null xs then Nothing else Just $ last xs
makeArtist :: Artist -> Builder
makeArtist (Artist {name, url}) =
[b|<h2 id=artist class="left corner">by $artistLink</h2>|]
[b|by $artistLink <br>|]
where
artistLink = case url of
Just u -> [b|<a href="$u">$name</a>|]

View File

@ -96,10 +96,13 @@
}
#info figure {
width: min-content;
margin: 0.25em auto;
}
#info figure img {
max-width: 100%;
}
#info .light-bg {
background: hsl(0deg, 0%, 100%, 75%);
padding: 5px;
@ -109,6 +112,7 @@
#info .floating {
float: right;
margin-left: 0.8em;
max-width: 40%;
}
#info .floating.left {