« MediaWiki:Timeless.css » : différence entre les versions
De WikiPerche
Aucun résumé des modifications |
Aucun résumé des modifications |
||
| Ligne 2 : | Ligne 2 : | ||
/* ============================================================ | /* ============================================================ | ||
THÈME « PERCHE NOGENTAIS » — | THÈME « PERCHE NOGENTAIS » — VERSION STABLE POUR TIMELESS | ||
============================================================ */ | ============================================================ */ | ||
/* ---------- | /* ---------- Fond de page ---------- */ | ||
body { | body.skin-timeless { | ||
background: linear-gradient(180deg, #dfe7d4 0% | background: linear-gradient(180deg, #dfe7d4 0%, #f7f5ef 340px) !important; | ||
color: | color: #26251f !important; | ||
} | } | ||
/* ---------- Barre latérale | /* ---------- Barre latérale (fond sombre) ---------- */ | ||
. | .skin-timeless .ts-sidebar { | ||
background: #1a2018 !important; | |||
.ts-sidebar | border-right: 1px solid #333b2e !important; | ||
padding: 1em !important; | |||
width: 250px !important; | |||
} | |||
.skin-timeless .ts-sidebar .sidebar-inner { | |||
background: transparent !important; | |||
background: #1a2018 !important; | padding: 0 !important; | ||
border- | |||
padding: | |||
} | } | ||
.skin-timeless #site-navigation, | |||
. | .skin-timeless #site-tools, | ||
border | .skin-timeless #user-tools { | ||
padding: | background: transparent !important; | ||
border: none !important; | |||
padding: 0.5em !important; | |||
margin-bottom: 1em !important; | |||
} | } | ||
/* | /* Titres des sections de la barre latérale */ | ||
. | .skin-timeless #site-navigation .sidebar-chunk h2, | ||
#site-navigation .sidebar-chunk h2, | .skin-timeless #site-tools .sidebar-chunk h2, | ||
#site-tools .sidebar-chunk h2, | .skin-timeless #user-tools .sidebar-chunk h2 { | ||
#user-tools .sidebar-chunk h2 { | |||
color: #a9c79b !important; | color: #a9c79b !important; | ||
border-bottom: 2px solid #8c5a2b !important; | border-bottom: 2px solid #8c5a2b !important; | ||
| Ligne 47 : | Ligne 42 : | ||
padding-bottom: 0.3em !important; | padding-bottom: 0.3em !important; | ||
margin-bottom: 0.5em !important; | margin-bottom: 0.5em !important; | ||
} | } | ||
/* | /* Liens dans la barre latérale */ | ||
. | .skin-timeless #site-navigation a, | ||
#site-navigation a, | .skin-timeless #site-tools a, | ||
#site-tools a, | .skin-timeless #user-tools a { | ||
#user-tools a { | |||
color: #e9e7dc !important; | color: #e9e7dc !important; | ||
text-decoration: none !important; | text-decoration: none !important; | ||
} | } | ||
. | |||
#site-navigation a:hover, | .skin-timeless #site-navigation a:hover, | ||
#site-tools a:hover, | .skin-timeless #site-tools a:hover, | ||
#user-tools a:hover { | .skin-timeless #user-tools a:hover { | ||
background: #2a3028 !important; | background: #2a3028 !important; | ||
border-radius: 4px !important; | border-radius: 4px !important; | ||
| Ligne 69 : | Ligne 61 : | ||
/* ---------- Contenu principal (fond clair) ---------- */ | /* ---------- Contenu principal (fond clair) ---------- */ | ||
#mw-content, | .skin-timeless #mw-content, | ||
. | .skin-timeless .mw-body { | ||
.mw-body | |||
background: #ffffff !important; | background: #ffffff !important; | ||
border: 1px solid #d9d5c7 !important; | border: 1px solid #d9d5c7 !important; | ||
| Ligne 78 : | Ligne 69 : | ||
padding: 1.4em !important; | padding: 1.4em !important; | ||
color: #26251f !important; | color: #26251f !important; | ||
} | |||
/* Titres dans le contenu */ | |||
.skin-timeless .mw-body h1, | |||
.skin-timeless .mw-body h2, | |||
.skin-timeless .mw-body h3 { | |||
color: #2f5233 !important; | |||
} | } | ||
/* ---------- Table des matières ---------- */ | /* ---------- Table des matières ---------- */ | ||
#toc, | .skin-timeless #toc, | ||
.toc { | .skin-timeless .toc { | ||
background: transparent !important; | background: transparent !important; | ||
border: none !important; | border: none !important; | ||
padding-left: 0 !important; | padding-left: 0 !important; | ||
} | } | ||
#toc::after { | |||
.skin-timeless #toc::after { | |||
content: none !important; | content: none !important; | ||
} | } | ||
/* ---------- Tableaux ---------- */ | /* ---------- Tableaux ---------- */ | ||
table.wikitable > caption, | .skin-timeless table.wikitable > caption, | ||
table.infobox .infobox-title { | .skin-timeless table.infobox .infobox-title { | ||
background: #2f5233 !important; | background: #2f5233 !important; | ||
color: #ffffff !important; | color: #ffffff !important; | ||
| Ligne 101 : | Ligne 99 : | ||
/* ---------- Pied de page ---------- */ | /* ---------- Pied de page ---------- */ | ||
#footer, | .skin-timeless #footer, | ||
.footer { | .skin-timeless .footer { | ||
background: transparent !important; | background: transparent !important; | ||
border-top: 2px solid #8c5a2b !important; | border-top: 2px solid #8c5a2b !important; | ||
color: #55524a !important; | color: #55524a !important; | ||
} | } | ||
#footer a { | |||
.skin-timeless #footer a { | |||
color: #2b6cb0 !important; | color: #2b6cb0 !important; | ||
} | } | ||
/* ---------- Liens [modifier] ---------- */ | /* ---------- Liens [modifier] ---------- */ | ||
.mw-editsection a { | .skin-timeless .mw-editsection a { | ||
color: #8c5a2b !important; | color: #8c5a2b !important; | ||
} | |||
/* ---------- Logo et titre ---------- */ | |||
.skin-timeless #mw-header, | |||
.skin-timeless .mw-wiki-title, | |||
.skin-timeless .ts-logo { | |||
background: transparent !important; | |||
} | |||
.skin-timeless .mw-wiki-title a, | |||
.skin-timeless .ts-logo a { | |||
color: #2f5233 !important; | |||
font-weight: 600 !important; | |||
letter-spacing: 0.3px !important; | |||
} | |||
/* ---------- Onglets page/discussion ---------- */ | |||
.skin-timeless #p-page-tools, | |||
.skin-timeless .toolset { | |||
border: none !important; | |||
} | |||
.skin-timeless #p-page-tools li.selected a, | |||
.skin-timeless .ns-talk .toolset a:hover { | |||
color: #2f5233 !important; | |||
font-weight: 600 !important; | |||
} | } | ||
/* ---------- Mode sombre ---------- */ | /* ---------- Mode sombre ---------- */ | ||
@media (prefers-color-scheme: dark) { | @media (prefers-color-scheme: dark) { | ||
body { | .skin-timeless body { | ||
background: linear-gradient(180deg, #171d14 0%, #12160f 340px) !important; | background: linear-gradient(180deg, #171d14 0%, #12160f 340px) !important; | ||
color: #e9e7dc !important; | color: #e9e7dc !important; | ||
} | } | ||
. | .skin-timeless .ts-sidebar { | ||
background: #12160f !important; | background: #12160f !important; | ||
border-right-color: #2a3028 !important; | border-right-color: #2a3028 !important; | ||
} | } | ||
#mw-content, | |||
.mw-body { | .skin-timeless #mw-content, | ||
.skin-timeless .mw-body { | |||
background: #1a2018 !important; | background: #1a2018 !important; | ||
border-color: #333b2e !important; | border-color: #333b2e !important; | ||
color: #e9e7dc !important; | color: #e9e7dc !important; | ||
} | } | ||
.mw-body h1, | |||
.mw-body h2, | .skin-timeless .mw-body h1, | ||
.mw-body h3 { | .skin-timeless .mw-body h2, | ||
.skin-timeless .mw-body h3 { | |||
color: #a9c79b !important; | color: #a9c79b !important; | ||
} | } | ||
#footer { | |||
.skin-timeless #footer { | |||
color: #9aa292 !important; | color: #9aa292 !important; | ||
} | } | ||
| Ligne 146 : | Ligne 173 : | ||
/* ---------- Mobile ---------- */ | /* ---------- Mobile ---------- */ | ||
@media screen and (max-width: 720px) { | @media screen and (max-width: 720px) { | ||
body { | .skin-timeless body { | ||
background: #f7f5ef !important; | background: #f7f5ef !important; | ||
} | } | ||
.ts-sidebar { | |||
.skin-timeless .ts-sidebar { | |||
background: #1a2018 !important; | background: #1a2018 !important; | ||
border-right: none !important; | border-right: none !important; | ||
| Ligne 155 : | Ligne 183 : | ||
padding: 0.5em !important; | padding: 0.5em !important; | ||
} | } | ||
#mw-content, | |||
.mw-body { | .skin-timeless #mw-content, | ||
.skin-timeless .mw-body { | |||
padding: 0.8em !important; | padding: 0.8em !important; | ||
border-radius: 0 !important; | border-radius: 0 !important; | ||
| Ligne 162 : | Ligne 191 : | ||
border-right: none !important; | border-right: none !important; | ||
} | } | ||
table.infobox { | |||
.skin-timeless table.infobox { | |||
float: none !important; | float: none !important; | ||
width: 100% !important; | width: 100% !important; | ||
Version du 22 septembre 2026 à 21:47
/* Tout CSS placé ici sera chargé avec les pages accédées par les utilisateurs de l’habillage Timeless */
/* ============================================================
THÈME « PERCHE NOGENTAIS » — VERSION STABLE POUR TIMELESS
============================================================ */
/* ---------- Fond de page ---------- */
body.skin-timeless {
background: linear-gradient(180deg, #dfe7d4 0%, #f7f5ef 340px) !important;
color: #26251f !important;
}
/* ---------- Barre latérale (fond sombre) ---------- */
.skin-timeless .ts-sidebar {
background: #1a2018 !important;
border-right: 1px solid #333b2e !important;
padding: 1em !important;
width: 250px !important;
}
.skin-timeless .ts-sidebar .sidebar-inner {
background: transparent !important;
padding: 0 !important;
}
.skin-timeless #site-navigation,
.skin-timeless #site-tools,
.skin-timeless #user-tools {
background: transparent !important;
border: none !important;
padding: 0.5em !important;
margin-bottom: 1em !important;
}
/* Titres des sections de la barre latérale */
.skin-timeless #site-navigation .sidebar-chunk h2,
.skin-timeless #site-tools .sidebar-chunk h2,
.skin-timeless #user-tools .sidebar-chunk h2 {
color: #a9c79b !important;
border-bottom: 2px solid #8c5a2b !important;
font-size: 1em !important;
padding-bottom: 0.3em !important;
margin-bottom: 0.5em !important;
}
/* Liens dans la barre latérale */
.skin-timeless #site-navigation a,
.skin-timeless #site-tools a,
.skin-timeless #user-tools a {
color: #e9e7dc !important;
text-decoration: none !important;
}
.skin-timeless #site-navigation a:hover,
.skin-timeless #site-tools a:hover,
.skin-timeless #user-tools a:hover {
background: #2a3028 !important;
border-radius: 4px !important;
color: #ffffff !important;
}
/* ---------- Contenu principal (fond clair) ---------- */
.skin-timeless #mw-content,
.skin-timeless .mw-body {
background: #ffffff !important;
border: 1px solid #d9d5c7 !important;
border-radius: 8px !important;
box-shadow: 0 2px 8px rgba(47, 82, 51, 0.1) !important;
padding: 1.4em !important;
color: #26251f !important;
}
/* Titres dans le contenu */
.skin-timeless .mw-body h1,
.skin-timeless .mw-body h2,
.skin-timeless .mw-body h3 {
color: #2f5233 !important;
}
/* ---------- Table des matières ---------- */
.skin-timeless #toc,
.skin-timeless .toc {
background: transparent !important;
border: none !important;
padding-left: 0 !important;
}
.skin-timeless #toc::after {
content: none !important;
}
/* ---------- Tableaux ---------- */
.skin-timeless table.wikitable > caption,
.skin-timeless table.infobox .infobox-title {
background: #2f5233 !important;
color: #ffffff !important;
border-radius: 6px 6px 0 0 !important;
}
/* ---------- Pied de page ---------- */
.skin-timeless #footer,
.skin-timeless .footer {
background: transparent !important;
border-top: 2px solid #8c5a2b !important;
color: #55524a !important;
}
.skin-timeless #footer a {
color: #2b6cb0 !important;
}
/* ---------- Liens [modifier] ---------- */
.skin-timeless .mw-editsection a {
color: #8c5a2b !important;
}
/* ---------- Logo et titre ---------- */
.skin-timeless #mw-header,
.skin-timeless .mw-wiki-title,
.skin-timeless .ts-logo {
background: transparent !important;
}
.skin-timeless .mw-wiki-title a,
.skin-timeless .ts-logo a {
color: #2f5233 !important;
font-weight: 600 !important;
letter-spacing: 0.3px !important;
}
/* ---------- Onglets page/discussion ---------- */
.skin-timeless #p-page-tools,
.skin-timeless .toolset {
border: none !important;
}
.skin-timeless #p-page-tools li.selected a,
.skin-timeless .ns-talk .toolset a:hover {
color: #2f5233 !important;
font-weight: 600 !important;
}
/* ---------- Mode sombre ---------- */
@media (prefers-color-scheme: dark) {
.skin-timeless body {
background: linear-gradient(180deg, #171d14 0%, #12160f 340px) !important;
color: #e9e7dc !important;
}
.skin-timeless .ts-sidebar {
background: #12160f !important;
border-right-color: #2a3028 !important;
}
.skin-timeless #mw-content,
.skin-timeless .mw-body {
background: #1a2018 !important;
border-color: #333b2e !important;
color: #e9e7dc !important;
}
.skin-timeless .mw-body h1,
.skin-timeless .mw-body h2,
.skin-timeless .mw-body h3 {
color: #a9c79b !important;
}
.skin-timeless #footer {
color: #9aa292 !important;
}
}
/* ---------- Mobile ---------- */
@media screen and (max-width: 720px) {
.skin-timeless body {
background: #f7f5ef !important;
}
.skin-timeless .ts-sidebar {
background: #1a2018 !important;
border-right: none !important;
width: 100% !important;
padding: 0.5em !important;
}
.skin-timeless #mw-content,
.skin-timeless .mw-body {
padding: 0.8em !important;
border-radius: 0 !important;
border-left: none !important;
border-right: none !important;
}
.skin-timeless table.infobox {
float: none !important;
width: 100% !important;
margin: 0 0 1em 0 !important;
}
}
