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
+24
-13
No files matched your search
@@ -12,13 +12,14 @@
|
|||||||
demande (clavier ou clic)
|
demande (clavier ou clic)
|
||||||
========================================================================== */
|
========================================================================== */
|
||||||
|
|
||||||
/* Le terminal C64 est masqué sur tous les autres thèmes */
|
@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 {
|
.c64-terminal {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@layer themes {
|
|
||||||
|
|
||||||
[data-theme="c64-basic"] {
|
[data-theme="c64-basic"] {
|
||||||
color-scheme: dark;
|
color-scheme: dark;
|
||||||
|
|
||||||
@@ -76,8 +77,17 @@
|
|||||||
|
|
||||||
[data-theme="c64-basic"] main > .container {
|
[data-theme="c64-basic"] main > .container {
|
||||||
background-color: var(--c64-screen);
|
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);
|
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);
|
padding: var(--space-xl) clamp(1rem, 3.5vw, 2.25rem) var(--space-2xl);
|
||||||
|
min-block-size: calc(100svh - 9rem);
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+4
-4
@@ -22,10 +22,10 @@
|
|||||||
* complet, garantissant l'indexation et la lecture par les moteurs et IA.
|
* complet, garantissant l'indexation et la lecture par les moteurs et IA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { initThemeManager } from "./modules/theme-manager.js";
|
import { initThemeManager } from "./modules/theme-manager.js?v=20261127b";
|
||||||
import { initThemeSwitcher } from "./modules/theme-switcher.js";
|
import { initThemeSwitcher } from "./modules/theme-switcher.js?v=20261127b";
|
||||||
import { initC64Terminal } from "./modules/c64-terminal.js";
|
import { initC64Terminal } from "./modules/c64-terminal.js?v=20261127b";
|
||||||
import { initMotion } from "./modules/motion.js";
|
import { initMotion } from "./modules/motion.js?v=20261127b";
|
||||||
import { initNavigation } from "./modules/navigation.js";
|
import { initNavigation } from "./modules/navigation.js";
|
||||||
import { initScrollSpy } from "./modules/scroll-spy.js";
|
import { initScrollSpy } from "./modules/scroll-spy.js";
|
||||||
import { initBackToTop } from "./modules/back-to-top.js";
|
import { initBackToTop } from "./modules/back-to-top.js";
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
* - en cliquant sur un lien de la barre de navigation
|
* - 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";
|
const C64_THEME_ID = "c64-basic";
|
||||||
|
|
||||||
@@ -267,6 +267,7 @@ export function initC64Terminal({ status } = {}) {
|
|||||||
if (themeId === C64_THEME_ID) {
|
if (themeId === C64_THEME_ID) {
|
||||||
hideAllSections();
|
hideAllSections();
|
||||||
setLog([]);
|
setLog([]);
|
||||||
|
requestAnimationFrame(() => input?.focus({ preventScroll: true }));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ import {
|
|||||||
getThemeById,
|
getThemeById,
|
||||||
isValidThemeId,
|
isValidThemeId,
|
||||||
getRandomThemeId,
|
getRandomThemeId,
|
||||||
} from "../themes.js";
|
} from "../themes.js?v=20261127b";
|
||||||
|
|
||||||
/** URL de polices déjà injectées dans le <head>. */
|
/** URL de polices déjà injectées dans le <head>. */
|
||||||
const loadedFontUrls = new Set();
|
const loadedFontUrls = new Set();
|
||||||
|
|||||||
@@ -11,13 +11,13 @@
|
|||||||
* inerte n'apparaît dans la page.
|
* inerte n'apparaît dans la page.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { THEMES, getThemeById } from "../themes.js";
|
import { THEMES, getThemeById } from "../themes.js?v=20261127b";
|
||||||
import {
|
import {
|
||||||
applyTheme,
|
applyTheme,
|
||||||
getActiveThemeId,
|
getActiveThemeId,
|
||||||
onThemeChange,
|
onThemeChange,
|
||||||
pickSurpriseTheme,
|
pickSurpriseTheme,
|
||||||
} from "./theme-manager.js";
|
} from "./theme-manager.js?v=20261127b";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Crée la structure DOM du dock flottant et de la modale <dialog>.
|
* Crée la structure DOM du dock flottant et de la modale <dialog>.
|
||||||
|
|||||||
+2
-2
@@ -156,7 +156,7 @@
|
|||||||
<link rel="stylesheet" href="/assets/css/themes/obsidian-dark.css?v=20261126">
|
<link rel="stylesheet" href="/assets/css/themes/obsidian-dark.css?v=20261126">
|
||||||
<link rel="stylesheet" href="/assets/css/themes/liquid-glass.css?v=20261126">
|
<link rel="stylesheet" href="/assets/css/themes/liquid-glass.css?v=20261126">
|
||||||
<link rel="stylesheet" href="/assets/css/themes/editorial-type.css?v=20261126">
|
<link rel="stylesheet" href="/assets/css/themes/editorial-type.css?v=20261126">
|
||||||
<link rel="stylesheet" href="/assets/css/themes/c64-basic.css?v=20261127">
|
<link rel="stylesheet" href="/assets/css/themes/c64-basic.css?v=20261127b">
|
||||||
<link rel="stylesheet" href="/assets/css/utilities.css?v=20261126">
|
<link rel="stylesheet" href="/assets/css/utilities.css?v=20261126">
|
||||||
<link rel="stylesheet" href="/assets/css/theme-switcher.css?v=20261126">
|
<link rel="stylesheet" href="/assets/css/theme-switcher.css?v=20261126">
|
||||||
<!-- Chargée uniquement à l'impression : ne pénalise pas le rendu écran -->
|
<!-- Chargée uniquement à l'impression : ne pénalise pas le rendu écran -->
|
||||||
@@ -198,7 +198,7 @@
|
|||||||
l'analyse du HTML, l'exécution a lieu après. Aucun blocage du rendu,
|
l'analyse du HTML, l'exécution a lieu après. Aucun blocage du rendu,
|
||||||
donc pas besoin de l'écrire en fin de <body>.
|
donc pas besoin de l'écrire en fin de <body>.
|
||||||
========================================================================== -->
|
========================================================================== -->
|
||||||
<script type="module" src="/assets/js/main.js?v=20261127"></script>
|
<script type="module" src="/assets/js/main.js?v=20261127b"></script>
|
||||||
|
|
||||||
<!-- ==========================================================================
|
<!-- ==========================================================================
|
||||||
DONNÉES STRUCTURÉES — schema.org en JSON-LD
|
DONNÉES STRUCTURÉES — schema.org en JSON-LD
|
||||||
|
|||||||
Reference in new issue
Block a user