MediaWiki:Common.css: Difference between revisions

From M365Docs
No edit summary
No edit summary
Line 109: Line 109:
.code-copie:hover .code-copie-bouton {
.code-copie:hover .code-copie-bouton {
     opacity: 1;
     opacity: 1;
}
/* Liste des sous-pages avec puces, sur une seule colonne */
.liste-puces ul {
    list-style: disc outside;
    column-count: 1;
    column-width: auto;
    margin: 0.3em 0 0 1.6em;
    padding: 0;
}
.liste-puces li {
    list-style: disc outside;
    margin-bottom: 0.1em;
}
}

Revision as of 08:09, 25 September 2026

/* 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;
}

/* Liste des sous-pages avec puces, sur une seule colonne */
.liste-puces ul {
    list-style: disc outside;
    column-count: 1;
    column-width: auto;
    margin: 0.3em 0 0 1.6em;
    padding: 0;
}
.liste-puces li {
    list-style: disc outside;
    margin-bottom: 0.1em;
}