« 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 95 : | Ligne 95 : | ||
border-image-width: 60px; | border-image-width: 60px; | ||
border-image-outset: 5px; | border-image-outset: 5px; | ||
font-weight: 400; | |||
} | } | ||
Version du 29 mai 2026 à 14:26
/* 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.25em;
font-size: 1.2em;
line-height: 1;
cursor: pointer;
color: inherit;
font-weight: 100;
}
.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;
text-align: start;
}
.explorer-menu-label:hover {
background: #3c4559;
}
/* --- Pane détaillé d'une rubrique (caché par défaut) ------------------ */
.explorer-menu-pane {
display: none;
width: 100%;
text-align: start;
border: 40px solid transparent;
border-image-source: url(/images/1/16/Bg-sun-aos.png);
border-image-slice: 120 120 120 120;
border-image-width: 60px;
border-image-outset: 5px;
font-weight: 400;
}
.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;
}
.explorer-trees .CategoryTreeItem > span:last-child {
display: none;
}
.explorer-trees .CategoryTreeTag * {
margin-bottom: 7px;
}
.explorer-trees span.CategoryTreeBullet {
margin-right: 5px;
}
.explorer-trees .CategoryTreeTag a {
color: #005173;
}
.explorer-trees i.CategoryTreeNotice {
display: none;
}
/* --- Updates panes ---------------------------------------------------- */
.explorer-menu-item[data-chunk="updates"] ul.smw-format {
margin-left: 0;
}
.explorer-menu-item[data-chunk="updates"] li.smw-row {
font-size: 0;
display: flex;
align-items: center;
flex-flow: row-reverse;
margin-bottom: 5px;
}
.explorer-menu-item[data-chunk="updates"] li.smw-row > :first-child,
.explorer-menu-item[data-chunk="updates"] li.smw-row > :last-child .smw-value {
font-size: 1rem;
color: #4f586e;
font-weight: 300;
}
.explorer-menu-item[data-chunk="updates"] li.smw-row > :first-child {
flex: 1;
margin-left: 1rem;
}
.explorer-menu-item[data-chunk="updates"] a.external.text {
display: none;
}
.explorer-menu-item[data-chunk="updates"] li.smw-row > :first-child a {
color: #005173;
}
.explorer-menu-pane .smw-ul-furtherresults {
display: none;
}
/* --- Tree node style ---------------------------------------------------- */
.CategoryTreeToggle.CategoryTreeToggleHandlerAttached {
mask: none !important;
overflow: visible;
position: relative;
background: none;
}
.CategoryTreeToggle.CategoryTreeToggleHandlerAttached::before {
content: "\f107";
mask: none !important;
overflow: visible;
position: absolute;
inset: 0 0 0 0;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
font-style: normal;
font-weight: bold;
font-variant: normal;
text-rendering: auto;
font-family: "Font Awesome 7 Free";
color: #c6ba9e;
}
.CategoryTreeToggle.CategoryTreeToggleHandlerAttached:hover::before {
color: #a19374;
}