feat: refactor image loading

This commit is contained in:
Cory Dransfeldt 2024-05-01 17:46:07 -07:00
parent 22fd3850ef
commit 93fb7eafeb
No known key found for this signature in database
30 changed files with 3408 additions and 4023 deletions

View file

@ -28,7 +28,7 @@
& .item-wrapper {
position: relative;
&.shadow picture::after {
&.shadow image::after {
position: absolute;
z-index: 1;
content: '';
@ -39,7 +39,7 @@
height: calc(100% - 1px);
}
& picture {
& image {
width: 100%;
height: 100%;
position: relative;

View file

@ -15,8 +15,7 @@
border: 1px solid var(--accent-color);
}
& img,
& picture {
& img {
width: calc(var(--sizing-3xl) * 1.5);
height: calc(var(--sizing-3xl) * 1.5);
}
@ -117,12 +116,9 @@
&.grid {
grid-template-columns: repeat(3,minmax(0,1fr));
& .item {
& img,
& picture {
width: calc(var(--sizing-3xl) * 2);
height: calc(var(--sizing-3xl) * 2);
}
& .item img {
width: calc(var(--sizing-3xl) * 2);
height: calc(var(--sizing-3xl) * 2);
}
}
}

View file

@ -19,7 +19,6 @@
justify-content: center;
overflow: hidden;
& picture > *,
& img {
width: 100%;
height: 100%;

View file

@ -22,8 +22,7 @@
border-color: var(--accent-color-hover)
}
& img,
& picture {
& img {
max-width: calc(var(--sizing-3xl) * 4);
height: auto;
}
@ -68,11 +67,6 @@
gap: var(--sizing-base);
align-items: start;
& picture {
display: block;
margin-bottom: var(--sizing-md);
}
& .book-meta {
align-items: start;
}