fix: affiche la console C64 (@layer themes) et cache-busting complet des modules JS
This commit is contained in:
1 parent
579ad8b15d
commit
fa22f766ea
6 files changed
+26
-15
No files matched your search
@@ -12,13 +12,14 @@
|
||||
demande (clavier ou clic)
|
||||
========================================================================== */
|
||||
|
||||
/* Le terminal C64 est masqué sur tous les autres thèmes */
|
||||
.c64-terminal {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@layer themes {
|
||||
|
||||
/* Le terminal C64 est masqué sur tous les autres thèmes (dans @layer themes
|
||||
pour ne pas écraser la règle [data-theme="c64-basic"] ci-dessous) */
|
||||
.c64-terminal {
|
||||
display: none;
|
||||
}
|
||||
|
||||
[data-theme="c64-basic"] {
|
||||
color-scheme: dark;
|
||||
|
||||
@@ -76,8 +77,17 @@
|
||||
|
||||
[data-theme="c64-basic"] main > .container {
|
||||
background-color: var(--c64-screen);
|
||||
background-image: repeating-linear-gradient(
|
||||
0deg,
|
||||
rgb(0 0 0 / 10%) 0px,
|
||||
rgb(0 0 0 / 10%) 1px,
|
||||
transparent 1px,
|
||||
transparent 3px
|
||||
);
|
||||
border: 4px solid var(--c64-ink-muted);
|
||||
box-shadow: 0 0 0 12px var(--c64-border), inset 0 0 48px rgb(0 0 0 / 28%);
|
||||
padding: var(--space-xl) clamp(1rem, 3.5vw, 2.25rem) var(--space-2xl);
|
||||
min-block-size: calc(100svh - 9rem);
|
||||
position: relative;
|
||||
}
|
||||
|
||||
|
||||
+4
-4
@@ -22,10 +22,10 @@
|
||||
* complet, garantissant l'indexation et la lecture par les moteurs et IA.
|
||||
*/
|
||||
|
||||
import { initThemeManager } from "./modules/theme-manager.js";
|
||||
import { initThemeSwitcher } from "./modules/theme-switcher.js";
|
||||
import { initC64Terminal } from "./modules/c64-terminal.js";
|
||||
import { initMotion } from "./modules/motion.js";
|
||||
import { initThemeManager } from "./modules/theme-manager.js?v=20261127b";
|
||||
import { initThemeSwitcher } from "./modules/theme-switcher.js?v=20261127b";
|
||||
import { initC64Terminal } from "./modules/c64-terminal.js?v=20261127b";
|
||||
import { initMotion } from "./modules/motion.js?v=20261127b";
|
||||
import { initNavigation } from "./modules/navigation.js";
|
||||
import { initScrollSpy } from "./modules/scroll-spy.js";
|
||||
import { initBackToTop } from "./modules/back-to-top.js";
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
* - en cliquant sur un lien de la barre de navigation
|
||||
*/
|
||||
|
||||
import { getActiveThemeId, onThemeChange } from "./theme-manager.js";
|
||||
import { getActiveThemeId, onThemeChange } from "./theme-manager.js?v=20261127b";
|
||||
|
||||
const C64_THEME_ID = "c64-basic";
|
||||
|
||||
@@ -267,6 +267,7 @@ export function initC64Terminal({ status } = {}) {
|
||||
if (themeId === C64_THEME_ID) {
|
||||
hideAllSections();
|
||||
setLog([]);
|
||||
requestAnimationFrame(() => input?.focus({ preventScroll: true }));
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ import {
|
||||
getThemeById,
|
||||
isValidThemeId,
|
||||
getRandomThemeId,
|
||||
} from "../themes.js";
|
||||
} from "../themes.js?v=20261127b";
|
||||
|
||||
/** URL de polices déjà injectées dans le <head>. */
|
||||
const loadedFontUrls = new Set();
|
||||
|
||||
@@ -11,13 +11,13 @@
|
||||
* inerte n'apparaît dans la page.
|
||||
*/
|
||||
|
||||
import { THEMES, getThemeById } from "../themes.js";
|
||||
import { THEMES, getThemeById } from "../themes.js?v=20261127b";
|
||||
import {
|
||||
applyTheme,
|
||||
getActiveThemeId,
|
||||
onThemeChange,
|
||||
pickSurpriseTheme,
|
||||
} from "./theme-manager.js";
|
||||
} from "./theme-manager.js?v=20261127b";
|
||||
|
||||
/**
|
||||
* Crée la structure DOM du dock flottant et de la modale <dialog>.
|
||||
|
||||
Reference in new issue
Block a user