Release v2.17.0: Implement cross-page & intra-page style, font-family, background token & navigation parity with regression gates S1-S4 (Plan #65) and adaptive mobile device detection & Group 3 mobile UI across all surfaces (Plan #66 Strategies 1A/2A/3A/4A)
This commit is contained in:
1 parent
ad8e84da57
commit
6c8a5bdaae
45 files changed
+693
-219
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"$id": "urn:io:hyperstitionstud:closeups-ui-manifest",
|
||||
"ui_elements_fingerprint_sha256": "86b84c09bdef694364e6272c5e3be7b3201da28ea0d515e54238cfadc5cbd307",
|
||||
"ui_elements_fingerprint_sha256": "850e947100a471119f43bcc9317c1979447cd4c1ce3c06f4e98747be54b713b6",
|
||||
"closeup_images": [
|
||||
"quadrant-1-cybermemetics-calc-graph.png",
|
||||
"quadrant-1-tab-2-graph.png",
|
||||
@@ -507,9 +507,9 @@
|
||||
]
|
||||
},
|
||||
"graph": {
|
||||
"ui_structure_sha256": "8079dbb08ce7149fbbb482829dd8628ac0d7d6ad0625b284fe02d92c0642be2d",
|
||||
"id_count": 24,
|
||||
"button_count": 6,
|
||||
"ui_structure_sha256": "095cf74cd75866d3135d0eb0cac88c85fe2f9da1c5080c1f6f528f85e4ea1505",
|
||||
"id_count": 26,
|
||||
"button_count": 8,
|
||||
"option_count": 11,
|
||||
"input_count": 1,
|
||||
"heading_count": 5,
|
||||
@@ -534,6 +534,8 @@
|
||||
"inspectorDrawer",
|
||||
"isolationBox",
|
||||
"minDegreeFilter",
|
||||
"mobileGraphFiltersBtn",
|
||||
"mobileGraphInspectorBtn",
|
||||
"nbrList",
|
||||
"nodeTypeToggles",
|
||||
"resetViewBtn",
|
||||
@@ -548,7 +550,9 @@
|
||||
"Mode 3: Gen 0 -> Gen 1 Funnel",
|
||||
"Mode 4: 00–08 Folder Grid",
|
||||
"Reset View",
|
||||
"Export PNG"
|
||||
"Export PNG",
|
||||
"⚙ Ontology & Filters",
|
||||
"ⓘ Node Inspector"
|
||||
],
|
||||
"sample_options": [
|
||||
"Filter: All Nodes",
|
||||
@@ -799,7 +803,7 @@
|
||||
}
|
||||
},
|
||||
"ipld_dag_json_cidv1": {
|
||||
"/": "baguqeera5baatrlchklvtiktsriydquwppzhgrlkp2rc5zy2xcdkx574uchq"
|
||||
"/": "baguqeeradg673hhidck5xgxsdfmihzeoppstvdi7gxy56ejprd5ha7swxrka"
|
||||
},
|
||||
"geometry_audit": {
|
||||
"all_clean": true,
|
||||
|
||||
@@ -9,10 +9,12 @@
|
||||
========================================================================== */
|
||||
|
||||
:root {
|
||||
--font-mono: 'DejaVu Sans Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
||||
--bg-void: #020617;
|
||||
--bg-deep: #020617;
|
||||
--bg-well: #070d1b;
|
||||
--bg-card: #0c1324;
|
||||
--bg-panel: #0c1324;
|
||||
--bg-surface: #0c1324;
|
||||
--bg-elevated: #111a2e;
|
||||
--bg-bezel: #182338;
|
||||
@@ -35,6 +37,18 @@
|
||||
--accent-violet: #a855f7;
|
||||
}
|
||||
|
||||
body,
|
||||
button,
|
||||
input,
|
||||
select,
|
||||
textarea,
|
||||
code,
|
||||
pre,
|
||||
kbd,
|
||||
samp {
|
||||
font-family: var(--font-mono);
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: var(--bg-void);
|
||||
background-image:
|
||||
@@ -613,7 +627,7 @@ html[data-sigil-accents="off"] .panel::after {
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
Unified Cross-Page Navigation UI (Plan #63 — Matching Immutable Homepage)
|
||||
Unified Cross-Page Navigation UI (Plan #63 & Plan #65 — Matching Homepage)
|
||||
========================================================================== */
|
||||
.title-row {
|
||||
display: flex;
|
||||
@@ -648,27 +662,33 @@ html[data-sigil-accents="off"] .panel::after {
|
||||
|
||||
.top-nav.hs-global-nav .btn {
|
||||
text-decoration: none;
|
||||
background: #1e293b;
|
||||
color: #f8fafc;
|
||||
border: 1px solid #334155;
|
||||
border-radius: 5px;
|
||||
background-color: var(--bg-interact);
|
||||
color: var(--cyan);
|
||||
border: 1px solid rgba(56, 189, 248, 0.55);
|
||||
padding: 0.34rem 0.62rem;
|
||||
font-size: 0.7rem;
|
||||
font-weight: 600;
|
||||
white-space: nowrap;
|
||||
font-family: 'DejaVu Sans Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
||||
font-family: var(--font-mono);
|
||||
transition: all 0.15s ease;
|
||||
}
|
||||
|
||||
.top-nav.hs-global-nav .btn:hover {
|
||||
.top-nav.hs-global-nav .btn:hover,
|
||||
.meta-badges .btn:hover {
|
||||
border-color: var(--cyan) !important;
|
||||
color: var(--cyan) !important;
|
||||
background-color: #192b4b !important;
|
||||
color: #f8fafc !important;
|
||||
}
|
||||
|
||||
.top-nav.hs-global-nav .btn.primary {
|
||||
background: #22d3ee !important;
|
||||
.top-nav.hs-global-nav .btn.primary,
|
||||
.meta-badges .btn.primary,
|
||||
a.btn.primary:not(.btn-donate-pill),
|
||||
button.btn.primary:not(.tactile-donate-btn),
|
||||
button.btn.active:not(.tactile-donate-btn) {
|
||||
background-color: var(--cyan) !important;
|
||||
color: #020617 !important;
|
||||
border-color: #22d3ee !important;
|
||||
border-color: var(--cyan) !important;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.hs-subnav-bar {
|
||||
@@ -687,3 +707,110 @@ html[data-sigil-accents="off"] .panel::after {
|
||||
flex-wrap: wrap;
|
||||
gap: 0.38rem;
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
Adaptive Group 3 Mobile UI (Plan #66 — Affirmed Strategies 1A, 2A, 3A, 4A)
|
||||
Strictly scoped under html[data-device-ui="mobile"] (0 Desktop UI changes)
|
||||
========================================================================== */
|
||||
.hs-mobile-menu-btn,
|
||||
.hs-mobile-nav-sheet {
|
||||
display: none;
|
||||
}
|
||||
|
||||
html[data-device-ui="mobile"] body {
|
||||
padding: 0.65rem 0.65rem !important;
|
||||
}
|
||||
|
||||
html[data-device-ui="mobile"] header {
|
||||
flex-wrap: wrap !important;
|
||||
padding: 0.75rem 0.85rem !important;
|
||||
gap: 0.5rem !important;
|
||||
margin-bottom: 0.65rem !important;
|
||||
}
|
||||
|
||||
html[data-device-ui="mobile"] header h1 {
|
||||
white-space: normal !important;
|
||||
font-size: 0.85rem !important;
|
||||
line-height: 1.3 !important;
|
||||
}
|
||||
|
||||
html[data-device-ui="mobile"] .subtitle {
|
||||
font-size: 0.66rem !important;
|
||||
line-height: 1.35 !important;
|
||||
}
|
||||
|
||||
html[data-device-ui="mobile"] .hs-mobile-menu-btn {
|
||||
display: inline-flex !important;
|
||||
margin-left: auto;
|
||||
height: 30px !important;
|
||||
padding: 0 0.55rem !important;
|
||||
font-size: 0.68rem !important;
|
||||
font-weight: 700 !important;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
html[data-device-ui="mobile"] .meta-badges,
|
||||
html[data-device-ui="mobile"] .top-nav.hs-global-nav {
|
||||
width: 100% !important;
|
||||
margin-left: 0 !important;
|
||||
justify-content: flex-start !important;
|
||||
flex-wrap: nowrap !important;
|
||||
overflow-x: auto !important;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
padding-bottom: 4px;
|
||||
gap: 0.35rem !important;
|
||||
}
|
||||
|
||||
html[data-device-ui="mobile"] .hs-mobile-nav-sheet.open {
|
||||
display: grid !important;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 0.45rem;
|
||||
padding: 0.75rem;
|
||||
margin-bottom: 0.75rem;
|
||||
background-color: var(--bg-card);
|
||||
border: 1px solid var(--cyan);
|
||||
}
|
||||
|
||||
html[data-device-ui="mobile"] .hs-mobile-sheet-link {
|
||||
width: 100%;
|
||||
min-height: 38px !important;
|
||||
justify-content: center !important;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
html[data-device-ui="mobile"] .hs-subnav-bar {
|
||||
padding: 0.5rem 0.65rem !important;
|
||||
overflow-x: auto !important;
|
||||
}
|
||||
|
||||
html[data-device-ui="mobile"] .hs-polyglot-segmented {
|
||||
max-width: 100%;
|
||||
overflow-x: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
|
||||
html[data-device-ui="mobile"] #hsGuileReplDrawer {
|
||||
left: 8px !important;
|
||||
right: 8px !important;
|
||||
bottom: 8px !important;
|
||||
width: auto !important;
|
||||
}
|
||||
|
||||
html[data-device-ui="mobile"] #quantInfoPopover {
|
||||
left: 8px !important;
|
||||
right: 8px !important;
|
||||
bottom: 8px !important;
|
||||
top: auto !important;
|
||||
width: auto !important;
|
||||
max-width: none !important;
|
||||
}
|
||||
|
||||
html[data-device-ui="mobile"] #guildPills,
|
||||
html[data-device-ui="mobile"] #modePills,
|
||||
html[data-device-ui="mobile"] #tutEpisodeTabs {
|
||||
flex-wrap: nowrap !important;
|
||||
overflow-x: auto !important;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
max-width: 100%;
|
||||
padding-bottom: 3px;
|
||||
}
|
||||
@@ -0,0 +1,166 @@
|
||||
/* ==========================================================================
|
||||
hyperstitionstud.io — Adaptive Mobile Device Detector & Group 3 Mobile UI
|
||||
(Plan #66: PLAN-PIECEWISE-MOBILE-DEVICE-DETECTION-AND-ADAPTIVE-MOBILE-UI)
|
||||
Affirmed Strategies 1A, 2A, 3A, 4A:
|
||||
- Multi-signal synchronous detection (URL ?mobile=1|0, localStorage override,
|
||||
navigator.userAgentData.mobile, mobile UA regex, and coarse-pointer /
|
||||
<=820px viewport media query) -> sets html[data-device-ui="mobile|desktop"].
|
||||
- Strategy 2A: Injects `[ ☰ Menu ]` slide-down 2-column touch navigation
|
||||
sheet (#hsMobileNavSheet) into <header> when mobile UI is active, while
|
||||
keeping .meta-badges / .top-nav.hs-global-nav as a swipeable touch rail.
|
||||
- Strategy 1A: Injects `[ 📱 Mobile UI | 🖥 Desktop UI ]` switcher in footer.
|
||||
========================================================================== */
|
||||
(function () {
|
||||
"use strict";
|
||||
|
||||
var STORAGE_KEY = "hs_device_ui_override";
|
||||
var MOBILE_UA_RE = /\b(Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Windows Phone|Mobile)\b/i;
|
||||
|
||||
function getCookie(name) {
|
||||
try {
|
||||
var m = document.cookie.match(new RegExp("(?:^|; )" + name + "=([^;]*)"));
|
||||
return m ? decodeURIComponent(m[1]) : "";
|
||||
} catch (_) {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
function detectMobileDevice() {
|
||||
try {
|
||||
var params = new URLSearchParams(window.location.search || "");
|
||||
var qMob = params.get("mobile");
|
||||
if (qMob === "1" || qMob === "true") {
|
||||
try { localStorage.setItem(STORAGE_KEY, "mobile"); } catch (_) {}
|
||||
return true;
|
||||
}
|
||||
if (qMob === "0" || qMob === "false") {
|
||||
try { localStorage.setItem(STORAGE_KEY, "desktop"); } catch (_) {}
|
||||
return false;
|
||||
}
|
||||
var saved = "";
|
||||
try { saved = localStorage.getItem(STORAGE_KEY) || ""; } catch (_) {}
|
||||
if (saved === "mobile") return true;
|
||||
if (saved === "desktop") return false;
|
||||
} catch (_) {}
|
||||
|
||||
if (getCookie("hs_device_hint") === "mobile") return true;
|
||||
if (typeof navigator !== "undefined") {
|
||||
if (navigator.userAgentData && navigator.userAgentData.mobile === true) return true;
|
||||
if (MOBILE_UA_RE.test(navigator.userAgent || "")) return true;
|
||||
}
|
||||
if (typeof window !== "undefined" && typeof window.matchMedia === "function") {
|
||||
if (window.matchMedia("(max-width: 820px), (hover: none) and (pointer: coarse)").matches) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function applyDeviceUiMode(mode) {
|
||||
var root = document.documentElement;
|
||||
if (!root) return;
|
||||
root.setAttribute("data-device-ui", mode);
|
||||
var switchBtn = document.getElementById("hsMobileUiSwitchBtn");
|
||||
if (switchBtn) {
|
||||
switchBtn.textContent = mode === "mobile" ? "[ \uD83D\uDCF1 Mobile UI: ON \u2022 Switch to Desktop ]" : "[ \uD83D\uDDA5 Desktop UI \u2022 Switch to Mobile UI ]";
|
||||
switchBtn.setAttribute("aria-pressed", mode === "mobile" ? "true" : "false");
|
||||
}
|
||||
if (mode !== "mobile") {
|
||||
var sheet = document.getElementById("hsMobileNavSheet");
|
||||
if (sheet) sheet.classList.remove("open");
|
||||
var menuBtn = document.getElementById("hsMobileMenuBtn");
|
||||
if (menuBtn) menuBtn.setAttribute("aria-expanded", "false");
|
||||
}
|
||||
}
|
||||
|
||||
// Run synchronous detection immediately
|
||||
var initialMode = detectMobileDevice() ? "mobile" : "desktop";
|
||||
applyDeviceUiMode(initialMode);
|
||||
|
||||
function initMobileNavAndFooterSwitcher() {
|
||||
var hdr = document.querySelector("header");
|
||||
var navEl = hdr && hdr.querySelector(".top-nav.hs-global-nav, .meta-badges");
|
||||
if (hdr && navEl && !document.getElementById("hsMobileMenuBtn")) {
|
||||
var menuBtn = document.createElement("button");
|
||||
menuBtn.type = "button";
|
||||
menuBtn.id = "hsMobileMenuBtn";
|
||||
menuBtn.className = "btn hs-mobile-menu-btn";
|
||||
menuBtn.setAttribute("aria-expanded", "false");
|
||||
menuBtn.setAttribute("aria-controls", "hsMobileNavSheet");
|
||||
menuBtn.textContent = "\u2630 Menu";
|
||||
|
||||
var sheet = document.createElement("div");
|
||||
sheet.id = "hsMobileNavSheet";
|
||||
sheet.className = "hs-mobile-nav-sheet hs-plate-g3";
|
||||
sheet.setAttribute("aria-label", "Mobile Ecosystem Navigation Drawer");
|
||||
|
||||
var links = navEl.querySelectorAll("a");
|
||||
links.forEach(function (a) {
|
||||
var clone = a.cloneNode(true);
|
||||
clone.removeAttribute("id");
|
||||
clone.classList.add("hs-mobile-sheet-link");
|
||||
sheet.appendChild(clone);
|
||||
});
|
||||
|
||||
menuBtn.addEventListener("click", function () {
|
||||
var isOpen = sheet.classList.toggle("open");
|
||||
menuBtn.setAttribute("aria-expanded", isOpen ? "true" : "false");
|
||||
menuBtn.textContent = isOpen ? "\u2715 Close" : "\u2630 Menu";
|
||||
});
|
||||
|
||||
var titleRow = hdr.querySelector(".title-row");
|
||||
if (titleRow) {
|
||||
titleRow.appendChild(menuBtn);
|
||||
} else {
|
||||
hdr.insertBefore(menuBtn, navEl);
|
||||
}
|
||||
hdr.parentNode.insertBefore(sheet, hdr.nextSibling);
|
||||
}
|
||||
|
||||
var ftr = document.querySelector("footer");
|
||||
if (ftr && !document.getElementById("hsMobileUiSwitchBtn")) {
|
||||
var wrap = document.createElement("div");
|
||||
wrap.style.cssText = "margin-top:6px;";
|
||||
var swBtn = document.createElement("button");
|
||||
swBtn.type = "button";
|
||||
swBtn.id = "hsMobileUiSwitchBtn";
|
||||
swBtn.className = "btn hs-rain-toggle-btn";
|
||||
swBtn.addEventListener("click", function () {
|
||||
var cur = document.documentElement.getAttribute("data-device-ui") || "desktop";
|
||||
var next = cur === "mobile" ? "desktop" : "mobile";
|
||||
try { localStorage.setItem(STORAGE_KEY, next); } catch (_) {}
|
||||
applyDeviceUiMode(next);
|
||||
window.dispatchEvent(new Event("resize"));
|
||||
});
|
||||
wrap.appendChild(swBtn);
|
||||
ftr.appendChild(wrap);
|
||||
applyDeviceUiMode(document.documentElement.getAttribute("data-device-ui") || initialMode);
|
||||
}
|
||||
}
|
||||
|
||||
if (document.readyState === "loading") {
|
||||
document.addEventListener("DOMContentLoaded", initMobileNavAndFooterSwitcher);
|
||||
} else {
|
||||
initMobileNavAndFooterSwitcher();
|
||||
}
|
||||
|
||||
window.addEventListener("resize", function () {
|
||||
var saved = "";
|
||||
try { saved = localStorage.getItem(STORAGE_KEY) || ""; } catch (_) {}
|
||||
if (!saved) {
|
||||
applyDeviceUiMode(detectMobileDevice() ? "mobile" : "desktop");
|
||||
}
|
||||
});
|
||||
|
||||
window.HyperstitionStudio = window.HyperstitionStudio || {};
|
||||
window.HyperstitionStudio.MobileUI = {
|
||||
detectMobileDevice: detectMobileDevice,
|
||||
setMode: function (mode) {
|
||||
try { localStorage.setItem(STORAGE_KEY, mode); } catch (_) {}
|
||||
applyDeviceUiMode(mode);
|
||||
},
|
||||
getMode: function () {
|
||||
return document.documentElement.getAttribute("data-device-ui") || "desktop";
|
||||
}
|
||||
};
|
||||
})();
|
||||
Reference in new issue
Block a user