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

@ -1,9 +1,9 @@
html {
height: 100vh;
text-rendering:optimizeLegibility;
font-family: 'Montserrat';
font-style: normal;
font-weight: 400;
font-family: 'Montserrat';
font-style: normal;
font-weight: 400;
font-size: 16pt;
color: rgb(255, 255, 255);
}
@ -11,7 +11,7 @@ html {
a {
color: rgb(255, 255, 255);
text-decoration: none;
font-weight: bold;
font-weight: bold;
}
a:hover {
@ -103,7 +103,7 @@ figure.instant {
padding: 2vw 0;
}
figure > picture > img {
figure > a > picture > img {
display: block;
margin: 0 2vw;
max-width: calc(100% - 4vw);
@ -119,7 +119,6 @@ figure > figcaption > p {
@extend .instant;
padding: 1.5vw;
--row-height: 23vh;
// margin: -0.25rem;
display: flex;
flex-wrap: wrap;
overflow: hidden;
@ -138,15 +137,10 @@ figure > figcaption > p {
flex-grow: calc(var(--ratio) * 100);
flex-shrink: calc(var(--ratio) * 100);
flex-basis: calc(var(--ratio) * var(--row-height));
/*min-width: var(--min-width);*/
min-height: calc(0.7 * var(--row-height));
margin: 0.5vw;
}
// .container-gallery .gallery .box {
// margin: 0.5rem;
// }
.gallery > .box > figure {
display: block;
padding: 0;
@ -163,15 +157,3 @@ figure > figcaption > p {
min-width: 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);
// }