From 2458f575478894a950a4e50232ff13d00cee02e9 Mon Sep 17 00:00:00 2001 From: Karl Stolley Date: Fri, 30 May 2025 15:49:25 -0500 Subject: [PATCH] lightbox: Use icons for control elements. Fixes #33068. Co-Authored-By: sammamama --- web/shared/icons/chevron-left.svg | 3 +++ web/styles/lightbox.css | 16 ++++++---------- web/templates/lightbox_overlay.hbs | 8 +++++--- 3 files changed, 14 insertions(+), 13 deletions(-) create mode 100644 web/shared/icons/chevron-left.svg diff --git a/web/shared/icons/chevron-left.svg b/web/shared/icons/chevron-left.svg new file mode 100644 index 0000000000..814afce603 --- /dev/null +++ b/web/shared/icons/chevron-left.svg @@ -0,0 +1,3 @@ + + + diff --git a/web/styles/lightbox.css b/web/styles/lightbox.css index c8093444ea..11c8d5dd43 100644 --- a/web/styles/lightbox.css +++ b/web/styles/lightbox.css @@ -53,11 +53,8 @@ flex-shrink: 0; color: hsl(0deg 0% 100% / 80%); - font-size: 2rem; - line-height: 1.8rem; - - transform: scaleY(0.75); - font-weight: 300; + font-size: 14px; + line-height: 31px; opacity: 0; pointer-events: none; @@ -180,13 +177,12 @@ padding: 12px 20px; .arrow { - padding: 0 10px; color: hsl(0deg 0% 100%); - font-size: 1.8rem; - line-height: 1.6rem; - font-weight: 200; + /* The thumbnails do not scale, so we express these + dimensions as pixels, too. */ + font-size: 35px; + line-height: 25.6px; - transform: scaleY(2); cursor: pointer; opacity: 0.5; diff --git a/web/templates/lightbox_overlay.hbs b/web/templates/lightbox_overlay.hbs index d6411e52d3..b8dc16fdd2 100644 --- a/web/templates/lightbox_overlay.hbs +++ b/web/templates/lightbox_overlay.hbs @@ -9,7 +9,9 @@ {{t "Open" }} {{t "Download" }} -
+
+ +
@@ -18,8 +20,8 @@
-
<
+
-
>
+