« 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 79 : | Ligne 79 : | ||
.explorer-menu-label:hover { | .explorer-menu-label:hover { | ||
background: | background: #3c4559; | ||
} | } | ||
Version du 28 mai 2026 à 03:17
/* 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-weight: 500;
color: #060f3e;
}
.explorer-menu-label {
display: block;
cursor: pointer;
font-weight: normal;
width: 100%;
font-family: 'Spectral SC',serif;
font-size: 1.2rem;
padding: 0.75rem;
background: #4f586e;
color: #dbdeea;
}
.explorer-menu-label:hover {
background: #3c4559;
}
/* --- Pane détaillé d'une rubrique (caché par défaut) ------------------ */
.explorer-menu-pane {
display: none;
padding: 0.5em 1rem 1.5rem 1rem;
width: 100%;
box-shadow: inset 0 1px #000000, inset 0 3px #000000, inset 0 4px #000000;
text-align: start;
}
.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;
display: none;
}
/* --- Conteneur du chunk ------------------------------------------------ */
.explorer-chunk-content {
margin-top: 1em;
}
/* --- Updates panes ---------------------------------------------------- */
.explorer-menu-item[data-chunk="updates"] .explorer-menu-pane ul.mw-contributions-list > li > :not(bdi) {
display: none;
}
.explorer-menu-item[data-chunk="updates"] .explorer-menu-pane ul.mw-contributions-list > li {
font-size: 0;
display: flex;
gap: 10px;
}
.explorer-menu-item[data-chunk="updates"] .explorer-menu-pane ul.mw-contributions-list > li > bdi {
font-size: 1rem;
}
.explorer-menu-item[data-chunk="updates"] h4 {
text-align: start;
font-size: 16px;
font-weight: normal;
}