From 8aea6915c0d27d0d8995b33e79acf0d68efa3019 Mon Sep 17 00:00:00 2001 From: Felipe Contreras Salinas Date: Tue, 6 Jun 2023 00:02:20 -0400 Subject: [PATCH] fix gallery --- sass/main.scss | 28 +++++----------------------- 1 file changed, 5 insertions(+), 23 deletions(-) diff --git a/sass/main.scss b/sass/main.scss index 2d75c6d..520797f 100644 --- a/sass/main.scss +++ b/sass/main.scss @@ -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); -// }