MediaWiki:Common.css
From M365Docs
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* CSS placed here will be applied to all skins */
.mw-prefixindex-list {
column-count: 1 !important;
columns: auto !important;
}
/* Sommaire flottant à droite du contenu */
#toc, .toc {
float: right;
clear: right;
margin: 0 0 1em 1.5em;
max-width: 320px;
}
@media (max-width: 900px) {
#toc, .toc {
float: none;
position: static;
max-width: none;
margin: 0 0 1em 0;
}
}
/* Masquer les onglets Page / Discussion */
#p-associated-pages {
display: none;
}
/* Masquer l'étoile de suivi */
#ca-watch,
#ca-unwatch {
display: none;
}
#p-Admin { display: none; }
/* Cadre Arborescence */
#p-arborescence ul ul {
margin-left: 1em;
}
#p-arborescence .arbo-courant > a {
font-weight: bold;
color: inherit;
}
/* ===== Visiteurs non connectés ===== */
/* Colonne de droite (More) */
.user-anon #ca-viewsource { display: none; } /* View source */
.user-anon #ca-history { display: none; } /* History */
.user-anon #t-whatlinkshere { display: none; } /* What links here */
.user-anon #t-recentchangeslinked { display: none; } /* Related changes */
/* .user-anon #t-print { display: none; } */ /* Printable version : visible */
.user-anon #t-permalink { display: none; } /* Permanent link */
.user-anon #t-info { display: none; } /* Page information */
.user-anon #t-pagelog { display: none; } /* Page logs */
/* Colonne de gauche (Wiki tools) */
.user-anon #p-tb { display: none; } /* Cadre Wiki tools */
/* Menu de droite (Interne) */
.user-anon #p-Interne { display: none; }
/* Citations Markdown affichées comme des bandeaux */
.mw-parser-output blockquote {
background: #fef6e7;
border-left: 4px solid #fc3;
border-radius: 4px;
padding: 0.75em 1em;
margin: 1em 0;
}
.mw-parser-output blockquote p {
margin: 0;
}
/* Couleurs des bandeaux */
.mw-parser-output blockquote.bandeau-info {
background: #eaf3ff;
border-left-color: #36c;
}
.mw-parser-output blockquote.bandeau-warning {
background: #fef6e7;
border-left-color: #fc3;
}
.mw-parser-output blockquote.bandeau-tip {
background: #eaf6ea;
border-left-color: #14866d;
}
.mw-parser-output blockquote.bandeau-danger {
background: #fee7e6;
border-left-color: #d33;
}
/* Bouton Copier sur les blocs de code */
.code-copie {
position: relative;
}
.code-copie-bouton {
position: absolute;
top: 0.4em;
right: 0.4em;
font-size: 0.8em;
padding: 0.2em 0.6em;
cursor: pointer;
opacity: 0.6;
}
.code-copie:hover .code-copie-bouton {
opacity: 1;
}