🔧 Update example site config and overrides for v3

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Nuno CoraçãoandClaude Fable 5 authored and Nuno C. committed 2026-08-17 20:19:02 +01:00
1 parent 09f0573749
commit 7659c5f23d
21 files changed
+226 -38

No files matched your search

-27
View File
@@ -26,33 +26,6 @@ window.addEventListener("DOMContentLoaded", (event) => {
);
});
function initLayoutLab() {
document.querySelectorAll("[data-layout-switcher]").forEach((lab) => {
const buttons = lab.querySelectorAll("[data-layout-switcher-button]");
const panels = lab.querySelectorAll("[data-layout-switcher-panel]");
const activate = (layout) => {
buttons.forEach((button) => {
const active = button.dataset.layoutSwitcherButton === layout;
button.setAttribute("aria-selected", String(active));
button.classList.toggle("border-primary-600", active);
button.classList.toggle("bg-primary-600", active);
button.classList.toggle("text-white", active);
button.classList.toggle("dark:border-primary-500", active);
button.classList.toggle("dark:bg-primary-500", active);
});
panels.forEach((panel) => {
panel.hidden = panel.dataset.layoutSwitcherPanel !== layout;
});
};
buttons.forEach((button) => {
button.addEventListener("click", () => activate(button.dataset.layoutSwitcherButton));
});
});
}
window.addEventListener("DOMContentLoaded", initLayoutLab);
var list_config = ["CardViewProse", "CardViewScreenWidth", "NormalView"];
var titles = {