From 0128568e2221f1d0d5df9fe3a1ab6e5911c0655a Mon Sep 17 00:00:00 2001 From: Joe Carstairs <65492573+Sycamost@users.noreply.github.com> Date: Sat, 26 Aug 2023 08:24:35 +0100 Subject: Adds xs breakpoint --- public/css/modules/link-gallery.xs.css | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 public/css/modules/link-gallery.xs.css (limited to 'public/css/modules/link-gallery.xs.css') diff --git a/public/css/modules/link-gallery.xs.css b/public/css/modules/link-gallery.xs.css new file mode 100644 index 0000000..729ff01 --- /dev/null +++ b/public/css/modules/link-gallery.xs.css @@ -0,0 +1,21 @@ +.link-gallery { + grid-auto-rows: calc( + var(--gallery-row-image-height) + + var(--margin-block-sm) + + var(--gallery-row-title-height) + ); + --gallery-item-column-span: 2; + --gallery-row-title-height: 11ex; + text-align: center; +} + +.link-gallery__title { + width: 100%; + height: min-content; + max-height: 100%; + text-overflow: ellipsis; + display: -webkit-box; + -webkit-line-clamp: 3; + -webkit-box-orient: vertical; + overflow: hidden; +} -- cgit v1.2.3