mirror of
https://github.com/danbulant/Mangades
synced 2026-07-07 03:51:00 +00:00
improved manga item rendering
This commit is contained in:
parent
ea72132b43
commit
c3e0dbe394
1 changed files with 15 additions and 2 deletions
|
|
@ -43,7 +43,7 @@
|
||||||
<span>{score}/10</span>
|
<span>{score}/10</span>
|
||||||
{/if}
|
{/if}
|
||||||
{#if description}
|
{#if description}
|
||||||
<p><SvelteMarkdown source={description} isInline /></p>
|
<p class="description"><SvelteMarkdown source={description} isInline /></p>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -55,6 +55,15 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
.description {
|
||||||
|
line-height: 1.5rem;
|
||||||
|
height: calc(1.5rem * 3);
|
||||||
|
display: -webkit-box;
|
||||||
|
-webkit-line-clamp: 3;
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
.item.grid {
|
.item.grid {
|
||||||
width: 11rem;
|
width: 11rem;
|
||||||
}
|
}
|
||||||
|
|
@ -66,6 +75,10 @@
|
||||||
}
|
}
|
||||||
.r18 img {
|
.r18 img {
|
||||||
filter: blur(10px);
|
filter: blur(10px);
|
||||||
|
/* filter transition applied on the image later */
|
||||||
|
}
|
||||||
|
.item:hover .r18 img {
|
||||||
|
filter: blur(0);
|
||||||
}
|
}
|
||||||
.info {
|
.info {
|
||||||
display: none;
|
display: none;
|
||||||
|
|
@ -107,7 +120,7 @@
|
||||||
height: 15rem;
|
height: 15rem;
|
||||||
width: auto;
|
width: auto;
|
||||||
box-shadow: 0 0 0 var(--box-shadow-color);
|
box-shadow: 0 0 0 var(--box-shadow-color);
|
||||||
transition: .4s box-shadow, .3s height;
|
transition: .4s box-shadow, .3s height, .4s filter;
|
||||||
}
|
}
|
||||||
.item.list img.cover {
|
.item.list img.cover {
|
||||||
height: 8rem;
|
height: 8rem;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue