From 7dce98739582020708f71e83195f73b2a0f2bf79 Mon Sep 17 00:00:00 2001 From: David Mzareulyan Date: Sat, 13 Jan 2024 14:44:26 +0300 Subject: [PATCH] Use transparent background of the lightbox image It allow to see low-res placeholder while the hi-res image loading --- styles/shared/attachments.scss | 4 ---- styles/shared/lighbox.scss | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/styles/shared/attachments.scss b/styles/shared/attachments.scss index 1aa627a58..2e879d891 100644 --- a/styles/shared/attachments.scss +++ b/styles/shared/attachments.scss @@ -123,10 +123,6 @@ } } -.pswp__img { - background-color: #fff; -} - .sortable-images .image-attachment-link { cursor: move; } diff --git a/styles/shared/lighbox.scss b/styles/shared/lighbox.scss index 332461aa1..93adebc30 100644 --- a/styles/shared/lighbox.scss +++ b/styles/shared/lighbox.scss @@ -33,8 +33,8 @@ height: 100%; } -// Override the 'zoom-in' cursor for images that cannot be zoomed in .pswp__img { + // Override the 'zoom-in' cursor for images that cannot be zoomed in cursor: default; }