Skip to content

Commit bb9b667

Browse files
authored
Improve image lightbox controls (#1084)
1 parent 7b0500c commit bb9b667

2 files changed

Lines changed: 923 additions & 125 deletions

File tree

‎desktop/src/shared/styles/globals.css‎

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2021,6 +2021,73 @@
20212021
}
20222022
}
20232023

2024+
/* ── Image lightbox zoom slider (shared/ui/markdown) ───────────────────
2025+
Matches the white-on-glass media control track used by the video player. */
2026+
.image-zoom-slider {
2027+
appearance: none;
2028+
background: transparent;
2029+
}
2030+
2031+
.image-zoom-slider:focus-visible {
2032+
outline: none;
2033+
border-radius: 9999px;
2034+
box-shadow: 0 0 0 2px rgb(255 255 255 / 0.7);
2035+
}
2036+
2037+
.image-zoom-slider::-webkit-slider-runnable-track {
2038+
height: 4px;
2039+
border-radius: 9999px;
2040+
background: linear-gradient(
2041+
to right,
2042+
white var(--image-zoom-fill, 0%),
2043+
rgb(255 255 255 / 0.3) var(--image-zoom-fill, 0%)
2044+
);
2045+
}
2046+
2047+
.image-zoom-slider::-webkit-slider-thumb {
2048+
-webkit-appearance: none;
2049+
appearance: none;
2050+
margin-top: -4px;
2051+
height: 12px;
2052+
width: 12px;
2053+
border-radius: 9999px;
2054+
background: white;
2055+
box-shadow: 0 1px 3px rgb(0 0 0 / 0.3);
2056+
}
2057+
2058+
.image-zoom-slider:focus-visible::-webkit-slider-thumb {
2059+
box-shadow:
2060+
0 0 0 3px rgb(255 255 255 / 0.25),
2061+
0 1px 3px rgb(0 0 0 / 0.3);
2062+
}
2063+
2064+
.image-zoom-slider::-moz-range-track {
2065+
height: 4px;
2066+
border-radius: 9999px;
2067+
background: rgb(255 255 255 / 0.3);
2068+
}
2069+
2070+
.image-zoom-slider::-moz-range-progress {
2071+
height: 4px;
2072+
border-radius: 9999px;
2073+
background: white;
2074+
}
2075+
2076+
.image-zoom-slider::-moz-range-thumb {
2077+
border: none;
2078+
height: 12px;
2079+
width: 12px;
2080+
border-radius: 9999px;
2081+
background: white;
2082+
box-shadow: 0 1px 3px rgb(0 0 0 / 0.3);
2083+
}
2084+
2085+
.image-zoom-slider:focus-visible::-moz-range-thumb {
2086+
box-shadow:
2087+
0 0 0 3px rgb(255 255 255 / 0.25),
2088+
0 1px 3px rgb(0 0 0 / 0.3);
2089+
}
2090+
20242091
/* ── Video review overlay theme (shared/ui/VideoPlayer) ─────────────────
20252092
The review dialog uses the shadcn "neutral" dark palette regardless of
20262093
the app theme. Applied together with `.dark` on the portal root; this

0 commit comments

Comments
 (0)