Update .cover-caption name and styles

This commit is contained in:
Joachim 2021-05-24 16:16:33 +02:00
parent 4c55f07f2a
commit c1456ce853
2 changed files with 8 additions and 3 deletions

View file

@ -219,16 +219,21 @@ body {
/* Cover caption
* -------------------------------------------------------------------------- */
.no-cover .cover_caption {
.no-cover .cover-caption {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
padding: 0.25em;
padding: 0.5em;
font-size: 0.75em;
color: white;
background-color: #002549;
display: flex;
align-items: center;
justify-content: center;
white-space: initial;
text-align: center;
}
/** Avatars

View file

@ -135,8 +135,8 @@
class="book-cover"
src="/static/images/no_cover.jpg"
alt="{% trans "No cover" %}"
<figcaption class="cover_caption">
>
<figcaption class="cover-caption">
<p>{{ book.alt_text }}</p>
</figcaption>
</figure>