From 72d4092b213d09cb88aed2efea76bf8d820b35f7 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Mon, 25 Jul 2022 21:20:19 +0200 Subject: Fix lightbox padding --- src/objects/_lightbox.scss | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/objects/_lightbox.scss b/src/objects/_lightbox.scss index a5f077f..3e4037d 100644 --- a/src/objects/_lightbox.scss +++ b/src/objects/_lightbox.scss @@ -72,7 +72,7 @@ max-width: 100%; max-height: 100%; margin: auto; - padding: fn.dim(--pad) 0; + padding: fn.dim(--pad); } @include iro.bem-elem('thumbnails') { @@ -133,13 +133,15 @@ } @include iro.bem-modifier('prev') { - grid-area: prev; - margin-left: calc(.5 * fn.dim(--pad)); + grid-area: prev; + margin-right: calc(-1 * fn.dim(--pad)); + margin-left: calc(.5 * fn.dim(--pad)); } @include iro.bem-modifier('next') { grid-area: next; margin-right: calc(.5 * fn.dim(--pad)); + margin-left: calc(-1 * fn.dim(--pad)); } } } -- cgit v1.2.3-70-g09d2