diff --git a/assets/css/themes/c64-basic.css b/assets/css/themes/c64-basic.css index 6197046..ca186ed 100644 --- a/assets/css/themes/c64-basic.css +++ b/assets/css/themes/c64-basic.css @@ -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; } diff --git a/assets/js/main.js b/assets/js/main.js index 17cc6bd..9671962 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -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"; diff --git a/assets/js/modules/c64-terminal.js b/assets/js/modules/c64-terminal.js index bac64fb..5b7162e 100644 --- a/assets/js/modules/c64-terminal.js +++ b/assets/js/modules/c64-terminal.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 })); } }; diff --git a/assets/js/modules/theme-manager.js b/assets/js/modules/theme-manager.js index 0d1c824..c7fa5f7 100644 --- a/assets/js/modules/theme-manager.js +++ b/assets/js/modules/theme-manager.js @@ -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 . */ const loadedFontUrls = new Set(); diff --git a/assets/js/modules/theme-switcher.js b/assets/js/modules/theme-switcher.js index 11b5f9e..fff96f9 100644 --- a/assets/js/modules/theme-switcher.js +++ b/assets/js/modules/theme-switcher.js @@ -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 . diff --git a/index.html b/index.html index 07da31e..1674c78 100644 --- a/index.html +++ b/index.html @@ -156,7 +156,7 @@ - + @@ -198,7 +198,7 @@ l'analyse du HTML, l'exécution a lieu après. Aucun blocage du rendu, donc pas besoin de l'écrire en fin de . ========================================================================== --> - +