From 4762946fc78613239dbcdde0af79564c19a9803f Mon Sep 17 00:00:00 2001 From: Volpeon Date: Fri, 12 Jan 2024 12:12:46 +0100 Subject: Support basic JS-free lightbox --- src/objects/_lightbox.scss | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/objects') diff --git a/src/objects/_lightbox.scss b/src/objects/_lightbox.scss index 74515c4..2af8b0a 100644 --- a/src/objects/_lightbox.scss +++ b/src/objects/_lightbox.scss @@ -69,12 +69,21 @@ } @include iro.bem-elem('img') { + display: none; box-sizing: border-box; grid-area: content; max-width: 100%; max-height: 100%; margin: auto; padding: fn.dim(--pad); + + &:target { + display: block; + } + + @include iro.bem-is('visible') { + display: block; + } } @include iro.bem-elem('thumbnails') { -- cgit v1.2.3-70-g09d2