« MediaWiki:Citizen.css » : différence entre les versions
Page de l’interface de MediaWiki
Autres actions
Page créée avec « →La totalité du CSS placé ici s’appliquera aux utilisateurs de l’habillage Citizen. : →Mode Clair (par défaut) : .citizen-header__logo { color: #000000; →Couleur noire pour le mode clair : } →Mode Sombre : .skin-citizen-dark .citizen-header__logo { color: #ffffff; →Couleur blanche pour le mode sombre : } » |
Aucun résumé des modifications |
||
(22 versions intermédiaires par le même utilisateur non affichées) | |||
Ligne 1 : | Ligne 1 : | ||
/* La totalité du CSS placé ici s’appliquera aux utilisateurs de l’habillage Citizen. */ | /* La totalité du CSS placé ici s’appliquera aux utilisateurs de l’habillage Citizen. */ | ||
/* | :root { | ||
. | --color-progressive-oklch__h: 230; | ||
color: # | --color-progressive-hsl__h: 205; | ||
} | |||
h1, | |||
h2, | |||
h3, | |||
h4, | |||
h5, | |||
h6, | |||
.mw-logo-wordmark, | |||
.citizen-sticky-header-page-title { | |||
font-weight: var( --font-weight-medium ); | |||
} | |||
h4, | |||
h5, | |||
h6 { | |||
letter-spacing: 0.0125em; | |||
} | |||
/* Align icon opacity with skin default */ | |||
/* Main Logo */ | |||
.citizen-header__logo { | |||
} | |||
.mw-logo-icon { | |||
opacity: var( --opacity-icon-base ); | |||
filter: var( --filter-invert ); | |||
} | |||
/* === Couleurs de tableaux modernes === */ | |||
/* Transition douce au survol */ | |||
.table-color-cell { | |||
transition: all 0.2s ease; | |||
} | |||
/* Effet au survol - légèrement plus foncé */ | |||
.wikitable tr:hover .table-color-cell { | |||
filter: brightness(0.95); | |||
} | |||
/* Support du mode sombre Citizen */ | |||
@media (prefers-color-scheme: dark) { | |||
.table-color-success { background-color: #1b4332 !important; color: #95d5b2 !important; } | |||
.table-color-danger { background-color: #641220 !important; color: #ffccd5 !important; } | |||
.table-color-warning { background-color: #664d03 !important; color: #ffe69c !important; } | |||
.table-color-info { background-color: #052c65 !important; color: #9ec5fe !important; } | |||
.table-color-secondary { background-color: #41464b !important; color: #e2e3e5 !important; } | |||
} | |||
/* Bordures subtiles */ | |||
.wikitable .table-color-cell { | |||
border-left: 3px solid rgba(0,0,0,0.1); | |||
} | |||
/* Accessibilité - focus clavier */ | |||
.table-color-cell:focus-within { | |||
outline: 2px solid currentColor; | |||
outline-offset: -2px; | |||
} | |||
/* Style pour les balises code dans les cellules colorées */ | |||
[style*="background-color"] code { | |||
background-color: rgba(0, 0, 0, 0.1) !important; | |||
color: inherit !important; | |||
border: 1px solid rgba(0, 0, 0, 0.15); | |||
padding: 2px 6px; | |||
border-radius: 3px; | |||
font-family: 'Courier New', Consolas, monospace; | |||
font-size: 0.9em; | |||
} | |||
/* Variante plus contrastée pour les fonds clairs */ | |||
[style*="background-color: #f8f9fa"] code, | |||
[style*="background-color: #e3f2fd"] code, | |||
[style*="background-color: #e8f5e9"] code, | |||
[style*="background-color: #fffde7"] code, | |||
[style*="background-color: #ffebee"] code { | |||
background-color: rgba(0, 0, 0, 0.08) !important; | |||
} | |||
/* Variante pour les fonds foncés */ | |||
[style*="background-color: #ced4da"] code, | |||
[style*="background-color: #e2e3e5"] code { | |||
background-color: rgba(0, 0, 0, 0.15) !important; | |||
} | |||
/* | |||
* Menu | |||
* Rich format menu to have more hierarchy | |||
*/ | |||
/* Remove bottom spacing as it is handled in footer portlet */ | |||
.citizen-drawer__menu { | |||
margin-bottom: 0; | |||
padding-bottom: 0; | |||
} | |||
.mw-portlet-External { | |||
position: sticky; | |||
bottom: 0; | |||
margin-top: var( --space-md ); | |||
margin-inline: calc( var( --space-xs ) * -1 ); | |||
padding: var( --space-xs ); | |||
border-top: var( --border-base ); | |||
backdrop-filter: var( --backdrop-filter-frosted-glass ); | |||
font-size: var( --font-size-x-small ); | |||
grid-column: 1 / -1; | |||
white-space: nowrap; | |||
} | |||
.mw-portlet-External .citizen-menu__heading { | |||
display: none; | |||
} | |||
.mw-portlet-External ul { | |||
display: flex; | |||
overflow: auto; | |||
} | |||
.mw-portlet-External .mw-list-item a { | |||
gap: 0; | |||
} | |||
/* Label */ | |||
.citizen-drawer__menu [id^="n-sidebar-label-"] a { | |||
pointer-events: none; | |||
margin-left: var( --space-xs ); | |||
padding-left: var( --space-md ); | |||
padding-right: var( --space-xs ); | |||
border-left: 1px solid var( --border-color-base ); | |||
border-radius: 0; | |||
letter-spacing: 0.05em; | |||
font-weight: var( --font-weight-normal ); | |||
color: var( --color-subtle ) !important; | |||
} | |||
/* Icons */ | |||
.citizen-drawer__menu [id^="n-sidebar-icon-"] a { | |||
font-size: 0; | |||
content-visibility: auto; | |||
} | |||
.citizen-drawer__menu [id^="n-sidebar-icon-"] a:before { | |||
display: block; | |||
content: ""; | |||
width: var( --size-icon ); | |||
height: var( --size-icon ); | |||
background-color: currentColor; | |||
mask-size: contain; | |||
mask-repeat: no-repeat; | |||
mask-position: center; | |||
} | |||
#n-sidebar-icon-discord a:before { | |||
mask-image: url( https://wiki.nefald.fr/images/9/9c/Discord_Icons.svg ); | |||
} | |||
#n-sidebar-icon-twitter a:before { | |||
mask-image: url( https://commons.wikimedia.org/wiki/File:X_logo_2023.svg ); | |||
} | |||
#n-sidebar-icon-patreon a:before { | |||
mask-image: url( ); | |||
} | |||
/* Footer changes */ | |||
.citizen-footer { | |||
padding-block: 6rem; | |||
background-color: transparent; | |||
} | |||
.citizen-footer__siteinfo { | |||
justify-content: space-between; | |||
} | |||
.citizen-footer__sitetitle mw-logo-icon { | |||
display: none; | |||
} | |||
/*.citizen-footer__sitetitle .mw-logo-wordmark { | |||
display: none; | |||
}*/ | |||
/* | |||
* Footer icons | |||
* We use custom footer icons so we need to fine tune it | |||
*/ | |||
#footer-icons a { | |||
border: 0; | |||
padding: 0; | |||
background: transparent; | |||
opacity: var( --opacity-icon-base ); | |||
transition: opacity 250ms ease; | |||
} | |||
#footer-icons a:hover { | |||
opacity: var( --opacity-icon-base--hover ); | |||
} | |||
#footer-icons a:active { | |||
opacity: var( --opacity-icon-base--active ); | |||
} | |||
/* More space between icons */ | |||
#footer-icons ul, | |||
#footer-icons li { | |||
column-gap: var( --space-md ); | |||
} | |||
#footer-icons img { | |||
width: auto; | |||
height: 32px; | |||
} | } |