From d9214b156e6dca2a7c3d26de2d1b636f70e9f6f7 Mon Sep 17 00:00:00 2001 From: Alexander Medvedev Date: Sat, 11 Apr 2026 11:13:25 +0200 Subject: [PATCH] chore: forgot the css --- src/App.css | 69 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/src/App.css b/src/App.css index d7cab7c..b44c320 100644 --- a/src/App.css +++ b/src/App.css @@ -2081,4 +2081,73 @@ h3 { margin: 0; max-width: 280px; line-height: 1.6; +} + +/* ── Lightbox navigation arrows ─────────────────────────────────────────── */ + +.lightbox-arrow { + position: absolute; + top: 50%; + transform: translateY(-50%); + background: rgba(0, 0, 0, 0.55); + border: 1px solid rgba(255, 255, 255, 0.15); + color: #fff; + font-size: 2.2rem; + line-height: 1; + width: 48px; + height: 48px; + border-radius: 50%; + cursor: pointer; + display: flex; + align-items: center; + justify-content: center; + transition: background 0.18s ease, transform 0.18s ease; + z-index: 10; + /* prevent text selection on rapid clicks */ + user-select: none; +} + +.lightbox-arrow:hover { + background: rgba(0, 0, 0, 0.82); + transform: translateY(-50%) scale(1.08); +} + +.lightbox-arrow-left { + left: 16px; +} + +.lightbox-arrow-right { + right: 16px; +} + +/* ── Lightbox dot indicators ─────────────────────────────────────────────── */ + +.lightbox-dots { + position: absolute; + bottom: 14px; + left: 50%; + transform: translateX(-50%); + display: flex; + gap: 6px; + z-index: 10; +} + +.lightbox-dot { + width: 8px; + height: 8px; + border-radius: 50%; + border: none; + background: rgba(255, 255, 255, 0.4); + cursor: pointer; + padding: 0; + transition: background 0.18s ease, transform 0.18s ease; +} + +.lightbox-dot.active { + background: #fff; + transform: scale(1.25); +} + +.lightbox-dot:hover:not(.active) { + background: rgba(255, 255, 255, 0.7); } \ No newline at end of file