fix gallery

This commit is contained in:
Felipe 2023-06-06 00:02:20 -04:00
parent 77dd363db7
commit 8aea6915c0
Signed by: pitbuster
SSH key fingerprint: SHA256:HDYu2Pm4/TmSX8GBwV49UvFWr1Ljg8XlHxKeCpjJpOk

View file

@ -103,7 +103,7 @@ figure.instant {
padding: 2vw 0; padding: 2vw 0;
} }
figure > picture > img { figure > a > picture > img {
display: block; display: block;
margin: 0 2vw; margin: 0 2vw;
max-width: calc(100% - 4vw); max-width: calc(100% - 4vw);
@ -119,7 +119,6 @@ figure > figcaption > p {
@extend .instant; @extend .instant;
padding: 1.5vw; padding: 1.5vw;
--row-height: 23vh; --row-height: 23vh;
// margin: -0.25rem;
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
overflow: hidden; overflow: hidden;
@ -138,15 +137,10 @@ figure > figcaption > p {
flex-grow: calc(var(--ratio) * 100); flex-grow: calc(var(--ratio) * 100);
flex-shrink: calc(var(--ratio) * 100); flex-shrink: calc(var(--ratio) * 100);
flex-basis: calc(var(--ratio) * var(--row-height)); flex-basis: calc(var(--ratio) * var(--row-height));
/*min-width: var(--min-width);*/
min-height: calc(0.7 * var(--row-height)); min-height: calc(0.7 * var(--row-height));
margin: 0.5vw; margin: 0.5vw;
} }
// .container-gallery .gallery .box {
// margin: 0.5rem;
// }
.gallery > .box > figure { .gallery > .box > figure {
display: block; display: block;
padding: 0; padding: 0;
@ -163,15 +157,3 @@ figure > figcaption > p {
min-width: 100%; min-width: 100%;
min-height: 100%; min-height: 100%;
} }
// .gallery + .box {
// margin-top: calc(0.5rem);
// }
//
// .gallery + .gallery {
// margin-top: calc(0.25rem);
// }
//
// .box + .gallery {
// margin-top: calc(0.25rem - 10px);
// }