« MediaWiki:Common.css » : différence entre les versions
Jump to navigation
Jump to search
Aucun résumé des modifications |
Aucun résumé des modifications |
||
| (5 versions intermédiaires par 2 utilisateurs non affichées) | |||
| Ligne 1 : | Ligne 1 : | ||
/* Le CSS placé ici sera appliqué à tous les habillages. */ |
/* Le CSS placé ici sera appliqué à tous les habillages. */ |
||
/* ===================================================== */ |
|||
/* Couleur de fond verte pour Editsimilar. */ |
|||
/* 1. RÉPARTITION GÉNÉRALE & CENTRAGE (770px) */ |
|||
#editsimilar_links {background-color: #DDFFDD !important;color: #000000 !important;} |
|||
/* ===================================================== */ |
|||
/* Conteneur principal centré avec marges automatiques */ |
|||
/* DIFFS */ |
|||
.mw-body.container, |
|||
.mw-body-fluid, |
|||
/* Mise en évidence des diffs par du gras et de la couleur. */ |
|||
#content.container { |
|||
table.diff { |
|||
width: 770px !important; |
|||
padding:.5em; |
|||
max-width: 770px !important; |
|||
margin: 0 auto !important; |
|||
padding: 0 !important; |
|||
float: none !important; |
|||
display: block !important; |
|||
} |
} |
||
table.diff td { |
|||
/* Ligne principale (contenu + sidebar) */ |
|||
vertical-align:top; |
|||
#fluid-row { |
|||
width: 770px !important; |
|||
margin: 0 auto !important; |
|||
display: flex !important; |
|||
} |
} |
||
td.diff-addedline { |
|||
/* Zone de texte principale */ |
|||
background:#D8E4F6; |
|||
#fluid-content { |
|||
width: 510px !important; /* Largeur pour laisser la place à la sidebar */ |
|||
padding: 10px 20px 10px 10px !important; |
|||
box-sizing: border-box; |
|||
} |
} |
||
td.diff-addedline .diffchange { |
|||
/* Colonne de droite (Sidebar) */ |
|||
background:#B0C0F0; |
|||
#bodyTools.fluid-sidebar { |
|||
color:#001040; |
|||
width: 260px !important; |
|||
font-weight:bold; |
|||
padding: 0; |
|||
box-sizing: border-box; |
|||
flex-shrink: 0; |
|||
} |
} |
||
td.diff-deletedline { |
|||
/* Footer aligné sur la même largeur */ |
|||
background:#E4F6D8; |
|||
#footer { |
|||
padding: 0; |
|||
margin: 20px auto !important; |
|||
width: 770px !important; |
|||
border-top: 1px solid #e9e9e9; |
|||
} |
} |
||
td.diff-deletedline .diffchange { |
|||
body { |
|||
background:#B0E897; |
|||
overflow-x: hidden; |
|||
color:#104000; |
|||
background-color: #fcfcfc; |
|||
font-weight:bold; |
|||
} |
} |
||
td.diff-context { |
|||
/* ===================================================== */ |
|||
background:#FEFEFE; |
|||
/* 2. CORRECTIFS GRAPHIQUES (POINTS 1 À 12) */ |
|||
/* ===================================================== */ |
|||
/* [1 & 1b] Taille des polices */ |
|||
body, #content, .mw-body { |
|||
font-size: 16px !important; |
|||
} |
} |
||
/* [3] Images flottantes (ex: la télé orange ou images d'articles) */ |
|||
/* Couleur de fond transparente pour les diffs */ |
|||
.mw-parser-output .floatleft, |
|||
table.diff, td.diff-otitle, td.diff-ntitle, td.diff-context { |
|||
.mw-parser-output .tleft { |
|||
background-color: transparent; |
|||
float: left !important; |
|||
margin: 0.5em 1.4em 0.8em 0 !important; |
|||
} |
|||
.mw-parser-output .floatright, |
|||
.mw-parser-output .tright { |
|||
float: right !important; |
|||
margin: 0.5em 0 0.8em 1.4em !important; |
|||
} |
} |
||
/* [4] Hauteur du champ de recherche */ |
|||
/* -- A AJOUTER DANS LE SKIN (MW 1,25, 2015) -------------------- */ |
|||
div#simpleSearch { |
|||
height: 32px !important; |
|||
} |
|||
/* [5] Puces carrées vertes Wikimini */ |
|||
/* Visual Editor: Hide sumary and options in Save dialog */ |
|||
.mw-parser-output ul { |
|||
.ve-ui-mwSaveDialog-summaryLabel, |
|||
list-style: none !important; |
|||
.ve-ui-mwSaveDialog-summary, |
|||
margin-left: 1.5em !important; |
|||
.ve-ui-mwSaveDialog-options { |
|||
} |
|||
display: none; |
|||
.mw-parser-output ul li::before { |
|||
content: "■"; |
|||
color: #8cc63f; |
|||
font-size: 0.8em; |
|||
display: inline-block; |
|||
width: 1.2em; |
|||
margin-left: -1.2em; |
|||
} |
} |
||
/* |
/* [6] Forcer l'affichage du sous-titre */ |
||
#siteSub { |
|||
.lqt-signature-edit-button { |
|||
display: |
display: block !important; |
||
visibility: visible !important; |
|||
} |
} |
||
/* [7] Bordures des cadres d'images (thumbnails) */ |
|||
/* LQT: Hide header links */ |
|||
.thumbinner { |
|||
.lqt_header_commands { |
|||
border: 1px solid #ccc !important; |
|||
display: none; |
|||
padding: 4px !important; |
|||
background-color: #f9f9f9 !important; |
|||
} |
} |
||
/* [8] Suppression de la ligne sous le texte (Point 8) */ |
|||
/* This will hide copywarning2 message when VisualEditor is not being used */ |
|||
#mw-content-text, |
|||
#editpage-copywarn { |
|||
.mw-body-content { |
|||
display: none; |
|||
border-bottom: none !important; |
|||
margin-bottom: 0 !important; |
|||
padding-bottom: 0 !important; |
|||
} |
} |
||
/* Autres ajustements à apporter dans le skin */ |
|||
/* [9] Catégories : style "Tags" arrondis */ |
|||
/* le suivant devrait plutôt être résolu en espaçant les box gris (ils sont serrés) */ |
|||
#catlinks { |
|||
#fluid-sidebar .dailyPic { |
|||
border: none !important; |
|||
background: none !important; |
|||
margin-bottom: 20px; |
|||
padding: 15px 0 !important; |
|||
margin-top: 25px !important; |
|||
} |
|||
#catlinks ul { |
|||
display: inline; |
|||
margin: 0; |
|||
padding: 0; |
|||
list-style: none !important; |
|||
} |
|||
#catlinks li { |
|||
display: inline-block !important; |
|||
background: #f1f1f1; |
|||
border: 1px solid #ddd !important; |
|||
border-radius: 15px !important; |
|||
padding: 3px 12px !important; |
|||
margin: 0 5px 5px 0 !important; |
|||
font-size: 0.85em; |
|||
border-left: 1px solid #ddd !important; |
|||
} |
} |
||
/* [10] Icône utilisateur (Avatar) */ |
|||
/* Temporary fix: Hide wiki code edit link on main namespace for VE compatible devices: */ |
|||
li#pt-userpage, li#pt-login { |
|||
html.client-js.ve-available body.ns-0 li.ca-edit { |
|||
background: url("/w/skins/Wikimini/resources/images/user.gif") no-repeat left center !important; |
|||
display: none !important; |
|||
padding-left: 22px !important; |
|||
} |
} |
||
/* [11 & 12] Nettoyage (Logos validation et outils inutiles) */ |
|||
/* Temporary fix: Show wiki code edit link when VE is activated (edit mode): */ |
|||
#footer-icons, |
|||
html.client-js.ve-available.ve-activated body.ns-0 li.ca-edit { |
|||
#f-list li:last-child, |
|||
display: list-item !important; |
|||
#t-print, |
|||
#t-permalink, |
|||
#t-info, |
|||
#t-recentchangeslinked, |
|||
#t-specialpages, |
|||
#t-whatlinkshere { |
|||
display: none !important; |
|||
} |
} |
||
Dernière version du 20 janvier 2026 à 13:39
/* Le CSS placé ici sera appliqué à tous les habillages. */
/* ===================================================== */
/* 1. RÉPARTITION GÉNÉRALE & CENTRAGE (770px) */
/* ===================================================== */
/* Conteneur principal centré avec marges automatiques */
.mw-body.container,
.mw-body-fluid,
#content.container {
width: 770px !important;
max-width: 770px !important;
margin: 0 auto !important;
padding: 0 !important;
float: none !important;
display: block !important;
}
/* Ligne principale (contenu + sidebar) */
#fluid-row {
width: 770px !important;
margin: 0 auto !important;
display: flex !important;
}
/* Zone de texte principale */
#fluid-content {
width: 510px !important; /* Largeur pour laisser la place à la sidebar */
padding: 10px 20px 10px 10px !important;
box-sizing: border-box;
}
/* Colonne de droite (Sidebar) */
#bodyTools.fluid-sidebar {
width: 260px !important;
padding: 0;
box-sizing: border-box;
flex-shrink: 0;
}
/* Footer aligné sur la même largeur */
#footer {
padding: 0;
margin: 20px auto !important;
width: 770px !important;
border-top: 1px solid #e9e9e9;
}
body {
overflow-x: hidden;
background-color: #fcfcfc;
}
/* ===================================================== */
/* 2. CORRECTIFS GRAPHIQUES (POINTS 1 À 12) */
/* ===================================================== */
/* [1 & 1b] Taille des polices */
body, #content, .mw-body {
font-size: 16px !important;
}
/* [3] Images flottantes (ex: la télé orange ou images d'articles) */
.mw-parser-output .floatleft,
.mw-parser-output .tleft {
float: left !important;
margin: 0.5em 1.4em 0.8em 0 !important;
}
.mw-parser-output .floatright,
.mw-parser-output .tright {
float: right !important;
margin: 0.5em 0 0.8em 1.4em !important;
}
/* [4] Hauteur du champ de recherche */
div#simpleSearch {
height: 32px !important;
}
/* [5] Puces carrées vertes Wikimini */
.mw-parser-output ul {
list-style: none !important;
margin-left: 1.5em !important;
}
.mw-parser-output ul li::before {
content: "■";
color: #8cc63f;
font-size: 0.8em;
display: inline-block;
width: 1.2em;
margin-left: -1.2em;
}
/* [6] Forcer l'affichage du sous-titre */
#siteSub {
display: block !important;
visibility: visible !important;
}
/* [7] Bordures des cadres d'images (thumbnails) */
.thumbinner {
border: 1px solid #ccc !important;
padding: 4px !important;
background-color: #f9f9f9 !important;
}
/* [8] Suppression de la ligne sous le texte (Point 8) */
#mw-content-text,
.mw-body-content {
border-bottom: none !important;
margin-bottom: 0 !important;
padding-bottom: 0 !important;
}
/* [9] Catégories : style "Tags" arrondis */
#catlinks {
border: none !important;
background: none !important;
padding: 15px 0 !important;
margin-top: 25px !important;
}
#catlinks ul {
display: inline;
margin: 0;
padding: 0;
list-style: none !important;
}
#catlinks li {
display: inline-block !important;
background: #f1f1f1;
border: 1px solid #ddd !important;
border-radius: 15px !important;
padding: 3px 12px !important;
margin: 0 5px 5px 0 !important;
font-size: 0.85em;
border-left: 1px solid #ddd !important;
}
/* [10] Icône utilisateur (Avatar) */
li#pt-userpage, li#pt-login {
background: url("/w/skins/Wikimini/resources/images/user.gif") no-repeat left center !important;
padding-left: 22px !important;
}
/* [11 & 12] Nettoyage (Logos validation et outils inutiles) */
#footer-icons,
#f-list li:last-child,
#t-print,
#t-permalink,
#t-info,
#t-recentchangeslinked,
#t-specialpages,
#t-whatlinkshere {
display: none !important;
}
Ce que tu peux faire
Outils

Outils personnels