« MediaWiki:Common.css » : différence entre les versions
Page de l’interface de MediaWiki
Autres actions
Page créée avec « @import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300..700&family=Plus+Jakarta+Sans:wght@300..800&display=swap'); :root{ →— Charte (pour nos propres règles) — : --itr-marine:#103a4a; --itr-marine-900:#0a2734; --itr-calanque:#1f9c92; --itr-calanque-600:#178a81; --itr-calanque-100:#e3f4f2; --itr-brass:#c2a15a; --itr-brass-100:#f4ecda; --itr-coral:#e3845f; --itr-sand:#f6f2ea; --itr-surface:#ffffff; --itr-ink:... » |
Aucun résumé des modifications |
||
| (3 versions intermédiaires par le même utilisateur non affichées) | |||
| Ligne 1 : | Ligne 1 : | ||
@ | /* ===================================================================== | ||
NAOKO — déclarations @font-face (woff2, toutes graisses + italiques) | |||
--------------------------------------------------------------------- | |||
1. Noms de fichiers = gamme réelle (vérifiée). Pas de SemiBold 600 : | |||
une demande de 600 résoudra vers Bold 700. | |||
1bis. Anciennement : ls /home/<user>/web/wiki.intrepides.paris/public_html/fonts/ | |||
et ajuste les url() ci-dessous si la casse ou les tirets diffèrent. | |||
2. Colle ce bloc EN HAUT de MediaWiki:Common.css, À LA PLACE de la | |||
ancienne ligne @import Google — désormais tout est auto-hébergé, | |||
(Naoko est l'unique famille de la charte : display ET corps). | |||
3. Supprime les blocs des graisses que tu n'as pas : chaque fichier | |||
manquant déclaré = une 404 au chargement (inoffensif mais sale). | |||
===================================================================== */ | |||
@font-face{ font-family:'Naoko'; src:url('/fonts/naoko-01-light-webfont.woff2') format('woff2'); | |||
font-weight:300; font-style:normal; font-display:swap; } | |||
@font-face{ font-family:'Naoko'; src:url('/fonts/naoko-01-light-italic-webfont.woff2') format('woff2'); | |||
font-weight:300; font-style:italic; font-display:swap; } | |||
- | |||
- | |||
@font-face{ font-family:'Naoko'; src:url('/fonts/naoko-02-semilight-webfont.woff2') format('woff2'); | |||
font-weight:350; font-style:normal; font-display:swap; } | |||
-- | @font-face{ font-family:'Naoko'; src:url('/fonts/naoko-02-semilight-italic-webfont.woff2') format('woff2'); | ||
font-weight:350; font-style:italic; font-display:swap; } | |||
--font- | |||
} | |||
/ | @font-face{ font-family:'Naoko'; src:url('/fonts/naoko-03-regular-webfont.woff2') format('woff2'); | ||
font-weight:400; font-style:normal; font-display:swap; } | |||
- | @font-face{ font-family:'Naoko'; src:url('/fonts/naoko-03-regular-italic-webfont.woff2') format('woff2'); | ||
font-weight:400; font-style:italic; font-display:swap; } | |||
- | |||
} | |||
@font-face{ font-family:'Naoko'; src:url('/fonts/naoko-04-medium-webfont.woff2') format('woff2'); | |||
font-weight:500; font-style:normal; font-display:swap; } | |||
@font-face{ font-family:'Naoko'; src:url('/fonts/naoko-04-medium-italic-webfont.woff2') format('woff2'); | |||
font-weight:500; font-style:italic; font-display:swap; } | |||
} | |||
@font-face{ font-family:'Naoko'; src:url('/fonts/naoko-05-bold-webfont.woff2') format('woff2'); | |||
font-weight:700; font-style:normal; font-display:swap; } | |||
@font-face{ font-family:'Naoko'; src:url('/fonts/naoko-05-bold-italic-webfont.woff2') format('woff2'); | |||
font-weight:700; font-style:italic; font-display:swap; } | |||
} | |||
@font-face{ font-family:'Naoko'; src:url('/fonts/naoko-06-extrabold-webfont.woff2') format('woff2'); | |||
font-weight:800; font-style:normal; font-display:swap; } | |||
@font-face{ font-family:'Naoko'; src:url('/fonts/naoko-06-extrabold-italic-webfont.woff2') format('woff2'); | |||
font-weight:800; font-style:italic; font-display:swap; } | |||
:: | |||
@font-face{ font-family:'Naoko'; src:url('/fonts/naoko-07-black-webfont.woff2') format('woff2'); | |||
. | font-weight:900; font-style:normal; font-display:swap; } | ||
@font-face{ font-family:'Naoko'; src:url('/fonts/naoko-07-black-italic-webfont.woff2') format('woff2'); | |||
font-weight:900; font-style:italic; font-display:swap; } | |||
/* | /* ===================================================================== | ||
BRANCHEMENT — décommente UNE des deux options dans le :root du thème | |||
(remplace les lignes existantes correspondantes) : | |||
OPTION A — Naoko en police de TITRES seulement : | |||
--itr-font-display:"Naoko",Georgia,serif; | |||
OPTION B — Naoko en police d'INTERFACE + CORPS : | |||
--itr-font-ui:"Naoko",-apple-system,"Segoe UI",sans-serif; | |||
--font-family-citizen-base:'Naoko'; | |||
(cette 2e ligne est le token Citizen : elle propage Naoko au rail, | |||
aux menus et à la recherche, pas seulement au contenu) | |||
Les deux à la fois = tout le wiki en Naoko ; supprime alors l'@import | |||
Google Fonts entièrement. | |||
===================================================================== */ | |||
. | |||
*/ | |||
Dernière version du 10 juin 2026 à 21:42
/* =====================================================================
NAOKO — déclarations @font-face (woff2, toutes graisses + italiques)
---------------------------------------------------------------------
1. Noms de fichiers = gamme réelle (vérifiée). Pas de SemiBold 600 :
une demande de 600 résoudra vers Bold 700.
1bis. Anciennement : ls /home/<user>/web/wiki.intrepides.paris/public_html/fonts/
et ajuste les url() ci-dessous si la casse ou les tirets diffèrent.
2. Colle ce bloc EN HAUT de MediaWiki:Common.css, À LA PLACE de la
ancienne ligne @import Google — désormais tout est auto-hébergé,
(Naoko est l'unique famille de la charte : display ET corps).
3. Supprime les blocs des graisses que tu n'as pas : chaque fichier
manquant déclaré = une 404 au chargement (inoffensif mais sale).
===================================================================== */
@font-face{ font-family:'Naoko'; src:url('/fonts/naoko-01-light-webfont.woff2') format('woff2');
font-weight:300; font-style:normal; font-display:swap; }
@font-face{ font-family:'Naoko'; src:url('/fonts/naoko-01-light-italic-webfont.woff2') format('woff2');
font-weight:300; font-style:italic; font-display:swap; }
@font-face{ font-family:'Naoko'; src:url('/fonts/naoko-02-semilight-webfont.woff2') format('woff2');
font-weight:350; font-style:normal; font-display:swap; }
@font-face{ font-family:'Naoko'; src:url('/fonts/naoko-02-semilight-italic-webfont.woff2') format('woff2');
font-weight:350; font-style:italic; font-display:swap; }
@font-face{ font-family:'Naoko'; src:url('/fonts/naoko-03-regular-webfont.woff2') format('woff2');
font-weight:400; font-style:normal; font-display:swap; }
@font-face{ font-family:'Naoko'; src:url('/fonts/naoko-03-regular-italic-webfont.woff2') format('woff2');
font-weight:400; font-style:italic; font-display:swap; }
@font-face{ font-family:'Naoko'; src:url('/fonts/naoko-04-medium-webfont.woff2') format('woff2');
font-weight:500; font-style:normal; font-display:swap; }
@font-face{ font-family:'Naoko'; src:url('/fonts/naoko-04-medium-italic-webfont.woff2') format('woff2');
font-weight:500; font-style:italic; font-display:swap; }
@font-face{ font-family:'Naoko'; src:url('/fonts/naoko-05-bold-webfont.woff2') format('woff2');
font-weight:700; font-style:normal; font-display:swap; }
@font-face{ font-family:'Naoko'; src:url('/fonts/naoko-05-bold-italic-webfont.woff2') format('woff2');
font-weight:700; font-style:italic; font-display:swap; }
@font-face{ font-family:'Naoko'; src:url('/fonts/naoko-06-extrabold-webfont.woff2') format('woff2');
font-weight:800; font-style:normal; font-display:swap; }
@font-face{ font-family:'Naoko'; src:url('/fonts/naoko-06-extrabold-italic-webfont.woff2') format('woff2');
font-weight:800; font-style:italic; font-display:swap; }
@font-face{ font-family:'Naoko'; src:url('/fonts/naoko-07-black-webfont.woff2') format('woff2');
font-weight:900; font-style:normal; font-display:swap; }
@font-face{ font-family:'Naoko'; src:url('/fonts/naoko-07-black-italic-webfont.woff2') format('woff2');
font-weight:900; font-style:italic; font-display:swap; }
/* =====================================================================
BRANCHEMENT — décommente UNE des deux options dans le :root du thème
(remplace les lignes existantes correspondantes) :
OPTION A — Naoko en police de TITRES seulement :
--itr-font-display:"Naoko",Georgia,serif;
OPTION B — Naoko en police d'INTERFACE + CORPS :
--itr-font-ui:"Naoko",-apple-system,"Segoe UI",sans-serif;
--font-family-citizen-base:'Naoko';
(cette 2e ligne est le token Citizen : elle propage Naoko au rail,
aux menus et à la recherche, pas seulement au contenu)
Les deux à la fois = tout le wiki en Naoko ; supprime alors l'@import
Google Fonts entièrement.
===================================================================== */