summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Carstairs <jcarstairs@scottlogic.com>2023-10-20 13:20:16 +0100
committerJoe Carstairs <jcarstairs@scottlogic.com>2023-10-20 13:20:16 +0100
commit8038cbe1938f9567856bb97fd4ed24376f74dbf1 (patch)
tree87f3b7ce27e4aef26d426430838e75f006b9fd7c
parenta1cabdeaaf3bade1bd0872bcafc52c81f1c31ce8 (diff)
Nests link-gallery bits and pieces
-rw-r--r--scss/modules/link-gallery.scss20
1 files changed, 10 insertions, 10 deletions
diff --git a/scss/modules/link-gallery.scss b/scss/modules/link-gallery.scss
index d9f9514..2c2cdb7 100644
--- a/scss/modules/link-gallery.scss
+++ b/scss/modules/link-gallery.scss
@@ -7,10 +7,17 @@
--gallery-row-image-height: 12rem;
--gallery-row-title-height: fit-content;
text-align: center;
-}
-.link-gallery li {
- grid-column: span var(--gallery-item-column-span);
+ li {
+ grid-column: span var(--gallery-item-column-span);
+ }
+
+ img {
+ max-width: 100%;
+ max-height: 100%;
+ margin: auto;
+ height: auto;
+ }
}
.link-gallery__container {
@@ -26,13 +33,6 @@
border: solid calc(2 * var(--relative-eighth-rem)) var(--text-color);
}
-.link-gallery img {
- max-width: 100%;
- max-height: 100%;
- margin: auto;
- height: auto;
-}
-
.link-gallery__title {
width: 100%;
height: min-content;