diff --git a/docs/website/index.html b/docs/website/index.html index 83c251a..934f3de 100644 --- a/docs/website/index.html +++ b/docs/website/index.html @@ -239,17 +239,57 @@ border: 1px solid rgba(40, 36, 28, 0.12); border-radius: 2px; overflow: hidden; + position: relative; + cursor: pointer; } - .wp-screenshot-card img { + .wp-screenshot-card .ss-light, + .wp-screenshot-card .ss-dark { width: 100%; display: block; } + .wp-screenshot-card .ss-dark { + position: absolute; + top: 0; left: 0; + opacity: 0; + transition: opacity 150ms linear; + } + .wp-screenshot-card:hover .ss-dark { + opacity: 1; + } .wp-screenshot-caption { padding: 8px 14px; font-size: 0.75rem; color: #8a8578; font-weight: 500; } + .wp-screenshot-expanded { + display: none; + position: fixed; + inset: 0; + z-index: 100; + background: rgba(14,13,11,0.85); + padding: 40px; + cursor: pointer; + align-items: center; + justify-content: center; + gap: 12px; + } + .wp-screenshot-expanded.active { display: flex; } + .wp-screenshot-expanded img { + max-width: 48%; + max-height: 90vh; + border-radius: 2px; + border: 1px solid rgba(180,170,150,0.15); + } + .wp-screenshot-expanded .ss-label { + position: absolute; + bottom: 16px; + font-size: 11px; + color: #948e80; + font-family: 'IBM Plex Mono', monospace; + } + .wp-screenshot-expanded .ss-label-left { left: 40px; } + .wp-screenshot-expanded .ss-label-right { right: 40px; } /* ---- Caveats / what-it-is-not ---- */ .wp-caveats { @@ -302,7 +342,7 @@ border: 1px solid rgba(40, 36, 28, 0.12); border-radius: 2px; padding: 20px 24px; - max-width: 480px; + max-width: 640px; margin-top: 16px; overflow-x: auto; } @@ -451,45 +491,38 @@
-
+
+
-
+
+
-
+
+
-
+
+
-
-
-
-