« MediaWiki:Gadget-explorer.css » : différence entre les versions
Page de l’interface de MediaWiki
Autres actions
mAucun résumé des modifications |
mAucun résumé des modifications |
||
| Ligne 53 : | Ligne 53 : | ||
.explorer-menu-item { | .explorer-menu-item { | ||
display: flex; | |||
flex-flow: column; | |||
justify-content: center; | |||
align-items: center; | |||
text-align: center; | |||
overflow: hidden; | |||
background: linear-gradient(transparent 50%, white 75%, #ffffff42, #26242414 98%, white), radial-gradient(at center, #ffffff 0%, #ffffff 55%, #4f586e4a 100%) white; | |||
--content-margin: calc(calc(95% - calc(var(--width-layout) + var(--width-toc))) / 2); | |||
border-radius: 10px; | |||
font-family: 'Spectral SC', serif; | |||
color: #b19456; | |||
font-size: 1.2rem; | |||
font-weight: 500; | |||
} | } | ||
.explorer-menu-label { | .explorer-menu-label { | ||
display: block; | display: block; | ||
cursor: pointer; | cursor: pointer; | ||
font-size: 1.2em; | font-size: 1.2em; | ||
font-weight: | font-weight: normal; | ||
} | } | ||
Version du 28 mai 2026 à 02:09
/* MediaWiki:Gadget-explorer.css
* Styles de base de l'explorateur — fonctionnels, non décoratifs.
* À remplacer par le thème custom une fois la mécanique validée.
*/
/* --- Bouton déclencheur ------------------------------------------------- */
.explorer-trigger {
appearance: none;
background: transparent;
border: 0;
padding: 0.5em 0.75em;
font-size: 1.5em;
line-height: 1;
cursor: pointer;
color: inherit;
}
.explorer-trigger:hover,
.explorer-trigger:focus {
opacity: 0.8;
}
/* --- Panneau racine (overlay plein écran) ------------------------------ */
.explorer-root {
position: fixed;
inset: 0;
z-index: 1000;
background: rgba(0, 0, 0, 0.85);
color: #fff;
overflow-y: auto;
padding: 2em;
}
.explorer-root[data-state="closed"] {
display: none;
}
.explorer-root[data-state="open"] {
display: block;
}
/* --- Liste des rubriques ----------------------------------------------- */
.explorer-menu {
max-width: 60em;
margin: 0 auto;
display: flex;
flex-direction: column;
gap: 0.5em;
}
.explorer-menu-item {
display: flex;
flex-flow: column;
justify-content: center;
align-items: center;
text-align: center;
overflow: hidden;
background: linear-gradient(transparent 50%, white 75%, #ffffff42, #26242414 98%, white), radial-gradient(at center, #ffffff 0%, #ffffff 55%, #4f586e4a 100%) white;
--content-margin: calc(calc(95% - calc(var(--width-layout) + var(--width-toc))) / 2);
border-radius: 10px;
font-family: 'Spectral SC', serif;
color: #b19456;
font-size: 1.2rem;
font-weight: 500;
}
.explorer-menu-label {
display: block;
cursor: pointer;
font-size: 1.2em;
font-weight: normal;
}
.explorer-menu-label:hover {
background: rgba(255, 255, 255, 0.1);
}
/* --- Pane détaillé d'une rubrique (caché par défaut) ------------------ */
.explorer-menu-pane {
display: none;
padding: 1.5em;
border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.explorer-menu-item[data-active] > .explorer-menu-pane {
display: block;
}
/* --- Fiche immersive --------------------------------------------------- */
.explorer-fiche {
margin-bottom: 1.5em;
}
.explorer-fiche-title {
font-size: 1.1em;
font-weight: bold;
margin-bottom: 0.5em;
}
/* --- Conteneur du chunk ------------------------------------------------ */
.explorer-chunk-content {
margin-top: 1em;
}