diff --git a/archive/build.sh b/archive/build.sh old mode 100644 new mode 100755 index 47d2733..721a515 --- a/archive/build.sh +++ b/archive/build.sh @@ -23,7 +23,6 @@ concat_files \ "../shared/base.css" \ "../shared/toast.css" \ "../shared/elevation.css" \ - "../shared/nav.css" \ "../shared/logo.css" \ "css/base.css" \ "css/layout.css" \ @@ -47,7 +46,6 @@ concat_files \ "../shared/zip-source.js" \ "../shared/theme.js" \ "../shared/toast.js" \ - "../shared/nav.js" \ "../shared/logo.js" \ "../shared/preview-lib.js" \ "js/init.js" \ diff --git a/browse/build.sh b/browse/build.sh index 78c18bb..d976367 100755 --- a/browse/build.sh +++ b/browse/build.sh @@ -24,7 +24,6 @@ concat_files \ "../shared/fonts.css" \ "../shared/base.css" \ "../shared/toast.css" \ - "../shared/nav.css" \ "../shared/logo.css" \ "../shared/vendor/toastui-editor.min.css" \ "../shared/vendor/codemirror-yaml.min.css" \ @@ -51,7 +50,6 @@ concat_files \ "../shared/zip-source.js" \ "../shared/theme.js" \ "../shared/toast.js" \ - "../shared/nav.js" \ "../shared/logo.js" \ "../shared/help.js" \ "../shared/preview-lib.js" \ diff --git a/classifier/build.sh b/classifier/build.sh old mode 100644 new mode 100755 index 16eb7b1..20d066a --- a/classifier/build.sh +++ b/classifier/build.sh @@ -23,7 +23,6 @@ concat_files \ "../shared/base.css" \ "../shared/toast.css" \ "../shared/elevation.css" \ - "../shared/nav.css" \ "../shared/logo.css" \ "css/base.css" \ "css/layout.css" \ @@ -45,7 +44,6 @@ concat_files \ "../shared/zddc-source.js" \ "../shared/theme.js" \ "../shared/toast.js" \ - "../shared/nav.js" \ "../shared/logo.js" \ "../shared/preview-lib.js" \ "js/app.js" \ diff --git a/form/build.sh b/form/build.sh index 16fcdee..8f03208 100755 --- a/form/build.sh +++ b/form/build.sh @@ -22,7 +22,6 @@ concat_files \ "../shared/base.css" \ "../shared/toast.css" \ "../shared/elevation.css" \ - "../shared/nav.css" \ "../shared/logo.css" \ "css/form.css" \ > "$css_temp" @@ -30,7 +29,6 @@ concat_files \ concat_files \ "../shared/theme.js" \ "../shared/toast.js" \ - "../shared/nav.js" \ "../shared/logo.js" \ "../shared/help.js" \ "../shared/elevation.js" \ diff --git a/landing/build.sh b/landing/build.sh index ecb984f..267d605 100755 --- a/landing/build.sh +++ b/landing/build.sh @@ -22,7 +22,6 @@ concat_files \ "../shared/base.css" \ "../shared/toast.css" \ "../shared/elevation.css" \ - "../shared/nav.css" \ "../shared/logo.css" \ "css/landing.css" \ > "$css_temp" @@ -32,7 +31,6 @@ concat_files \ "../shared/zddc-filter.js" \ "../shared/theme.js" \ "../shared/toast.js" \ - "../shared/nav.js" \ "../shared/logo.js" \ "../shared/help.js" \ "../shared/elevation.js" \ diff --git a/shared/elevation.css b/shared/elevation.css index 26c02c7..b88d12e 100644 --- a/shared/elevation.css +++ b/shared/elevation.css @@ -48,16 +48,25 @@ /* Page-wide chrome when admin mode is active. The toggle alone is easy to miss; these add an inescapable visual cue: - 1. Thin red border around the entire page (body) — peripheral- + 1. Thin red border around the entire viewport — peripheral- vision reminder regardless of which tool / scroll position. 2. Sticky banner across the top with a one-click "Drop admin" button so the user can disarm without hunting for the toggle. Both rendered ONLY when the zddc-elevate cookie is set; the shared/elevation.js init() syncs the body class on every page - load and tears it down when elevation is cleared. */ -body.is-elevated { - outline: 3px solid var(--danger, #dc3545); - outline-offset: -3px; + load and tears it down when elevation is cleared. + + Frame uses fixed positioning + pointer-events:none so it doesn't + reflow content or steal clicks. An inset outline on
was + tried first but overdrew content in tools whose root layout butts + right up to the viewport edge (browse split-pane, archive grid). */ +body.is-elevated::after { + content: ""; + position: fixed; + inset: 0; + border: 3px solid var(--danger, #dc3545); + pointer-events: none; + z-index: 9200; /* above banner (9100) so the frame paints on top */ } .elevation-banner { diff --git a/shared/nav.css b/shared/nav.css deleted file mode 100644 index d7baab4..0000000 --- a/shared/nav.css +++ /dev/null @@ -1,56 +0,0 @@ -/* shared/nav.css — lateral project-stage strip paired with shared/nav.js. - Sits as a sibling immediately under .app-header (mounted by JS). - Rendered only in online mode when a project segment is in the URL. */ - -.zddc-stage-strip { - display: flex; - align-items: center; - gap: 0.5rem; - padding: 0.3rem 1rem; - background: var(--bg); - border-bottom: 1px solid var(--border); - font-size: 0.8rem; - line-height: 1.3; - flex-shrink: 0; - overflow-x: auto; - white-space: nowrap; -} - -.zddc-stage-strip__project { - color: var(--text); - font-weight: 600; - margin-right: 0.15rem; -} - -.zddc-stage-strip__divider, -.zddc-stage-strip__sep { - color: var(--text-muted); - user-select: none; -} - -.zddc-stage-strip__divider { - margin-right: 0.35rem; -} - -.zddc-stage { - color: var(--text-muted); - text-decoration: none; - padding: 0.1rem 0.25rem; - border-radius: var(--radius); - transition: color 0.15s, background 0.15s; -} - -.zddc-stage:hover { - color: var(--text); - background: var(--bg-secondary); - text-decoration: none; -} - -.zddc-stage--active { - color: var(--primary); - font-weight: 600; -} - -.zddc-stage--active:hover { - color: var(--primary); -} diff --git a/shared/nav.js b/shared/nav.js deleted file mode 100644 index 745fe93..0000000 --- a/shared/nav.js +++ /dev/null @@ -1,204 +0,0 @@ -// shared/nav.js — lateral navigation strip across the project's -// cascade-declared stages. Mounted as a sibling of