From ba8083e8bfffc4e7461f28b4c4dff5b4aebe46da Mon Sep 17 00:00:00 2001 From: "Alexander R. Mcneilly" <115044628+alex-mcneilly@users.noreply.github.com> Date: Fri, 4 Jul 2025 04:49:29 -0700 Subject: [PATCH] Fix Examples Page (#96) * add hash navigation + scrollable examples list * add fullscreen example button --- examples.html | 364 +++++++++++++++++++++++++++++--------------------- 1 file changed, 213 insertions(+), 151 deletions(-) diff --git a/examples.html b/examples.html index d2e9b63..a53876c 100644 --- a/examples.html +++ b/examples.html @@ -34,7 +34,6 @@ left: 0px; width: var(--panel-width); height: 100%; - overflow: auto; border-right: var(--border-style); display: flex; flex-direction: column; @@ -48,6 +47,7 @@ align-items: center; justify-content: center; padding: 0 1rem; + flex-shrink: 0; } .header .logo { @@ -74,6 +74,12 @@ display: block; } + .examples-container { + flex: 1; + overflow-y: auto; + overflow-x: hidden; + } + .content { margin-left: var(--panel-width); width: calc(100% - var(--panel-width)); @@ -88,17 +94,28 @@ border: none; } - .code-button { + .action-buttons { position: fixed; bottom: 16px; right: 16px; + display: flex; + flex-direction: row; + gap: 12px; + z-index: 999; + } + + .action-button { padding: 12px; border-radius: 50%; - margin-bottom: 0px; background-color: #D43E4C; opacity: .9; - z-index: 999; box-shadow: 0 0 4px rgba(0, 0, 0, .15); + text-decoration: none; + transition: opacity 0.2s ease; + } + + .action-button:hover { + opacity: 1; } .example-link { @@ -167,12 +184,13 @@ right: -100%; left: auto; width: 70%; - height: 100%; + height: calc(100vh - 4rem); transform: none; transition: right 0.3s ease-in-out; z-index: 1001; background: #D43E4C; border-left: var(--border-style); + overflow-y: auto; } .mobile-panel.active { @@ -205,11 +223,79 @@ } - -
- -