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