Update icons and fix cover
@@ -44,7 +44,7 @@
|
||||
{% if article.cover %}
|
||||
<img loading="lazy" src="{{ article.cover }}" alt="{{ article.title }}">
|
||||
{% else %}
|
||||
<canvas class="article__random-background"></canvas>
|
||||
<img loading="lazy" src="static/img/newsreader-not-cover.png" alt="Not cover">
|
||||
{% endif %}
|
||||
</a>
|
||||
</p>
|
||||
|
||||
@@ -85,8 +85,8 @@ pre {
|
||||
|
||||
.article__header-img > a > img {
|
||||
height: var(--height-img);
|
||||
object-position: center;
|
||||
object-fit: contain;
|
||||
object-position: top;
|
||||
object-fit: cover;
|
||||
}
|
||||
.article__random-background {
|
||||
height: 100%;
|
||||
|
||||
@@ -4,4 +4,10 @@
|
||||
|
||||
.subtitle {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.article__header-img > a > img {
|
||||
height: initial;
|
||||
object-position: initial;
|
||||
object-fit: initial;
|
||||
}
|
||||
|
Before Width: | Height: | Size: 57 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 61 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 206 KiB After Width: | Height: | Size: 48 KiB |
BIN
resources/themes/light/static/img/newsreader-not-cover.png
Normal file
|
After Width: | Height: | Size: 71 KiB |