Aller au contenu

« MediaWiki:Common.css » : différence entre les versions

De Wiki Éducation
Aucun résumé des modifications
Aucun résumé des modifications
Ligne 7 : Ligne 7 :
     margin-top: 1em;
     margin-top: 1em;
     clear: both;
     clear: both;
     border-left: 5px solid #3366cc; /* Une barre bleue pour le côté éducatif */
     border-left: 5px solid #3366cc;
}
}


Ligne 18 : Ligne 18 :
}
}


/* Style pour les bandeaux d'avertissement (Ébauche) */
.bandeau-ebauche {
.bandeau-ebauche {
     margin: 10px 0;
     margin: 10px 0;
Ligne 40 : Ligne 39 :
}
}


/* Structure ultra-stable pour les Userboxes */
.userbox {
.userbox {
     border: 1px solid #AAAAAA;
     border: 1px solid #AAAAAA;
Ligne 48 : Ligne 46 :
     height: 45px;
     height: 45px;
     background: #FFFFFF;
     background: #FFFFFF;
     display: table !important; /* Utilisation du mode table */
     display: table !important;
     border-collapse: collapse;
     border-collapse: collapse;
     font-family: sans-serif;
     font-family: sans-serif;
Ligne 72 : Ligne 70 :
}
}


/* Correction de l'interligne des badges */
body .userbox-info {
body .userbox-info {
     display: table-cell;
     display: table-cell;
     vertical-align: middle; /* Gère le centrage vertical global */
     vertical-align: middle;
     padding: 0 10px;
     padding: 0 10px;
     font-size: 0.85em;
     font-size: 0.85em;
     line-height: 1.2; /* Interligne serré et propre */
     line-height: 1.2;
     text-align: left;
     text-align: left;
     font-family: inherit;
     font-family: inherit;
}
}


/* On s'assure que les paragraphes invisibles n'ajoutent pas d'espace */
body .userbox-info p {
body .userbox-info p {
     margin: 0;
     margin: 0;
Ligne 91 : Ligne 87 :
}
}


/* Neutralisation des paragraphes automatiques de MediaWiki */
.userbox-info p {
.userbox-info p {
     margin: 0 !important;
     margin: 0 !important;
Ligne 98 : Ligne 93 :
}
}


/* Conteneur pour empiler les badges à droite */
.userbox-column {
.userbox-column {
     float: right;
     float: right;
     clear: right; /* Force le bloc à se mettre SOUS l'infobox si elle existe */
     clear: right;
     width: 250px; /* Largeur adaptée à tes badges (240px + marges) */
     width: 250px;
     margin-left: 1em;
     margin-left: 1em;
     margin-bottom: 1em;
     margin-bottom: 1em;
Ligne 108 : Ligne 102 :
}
}


/* On s'assure que les badges à l'intérieur ne flottent plus individuellement */
.userbox-column .userbox {
.userbox-column .userbox {
     float: none;
     float: none;
     display: flex;
     display: flex;
     margin-bottom: 5px; /* Petit espace entre les badges */
     margin-bottom: 5px;
}
}


/* Nettoyage forcé des badges utilisateur */
.userbox-info, .userbox-id {
.userbox-info, .userbox-id {
     display: flex;
     display: flex;
Ligne 122 : Ligne 114 :
}
}


/* On force le contenu de la partie info à se comporter comme un bloc unique */
.userbox-info {
.userbox-info {
     display: block; /* On repasse en block pour annuler l'effet colonne si flex pose problème */
     display: block;
     line-height: 45px; /* On centre verticalement via la hauteur de ligne */
     line-height: 45px;
     text-align: left;
     text-align: left;
     vertical-align: middle;
     vertical-align: middle;
}
}


/* Supprimer les marges des paragraphes invisibles créés par le wiki */
.userbox-info p, .userbox-info span {
.userbox-info p, .userbox-info span {
     margin: 0;
     margin: 0;
     padding: 0;
     padding: 0;
     display: inline;
     display: inline;
}
.mw-wiki-logo-text {
    display: none;
}
}

Version du 18 avril 2026 à 14:08

/* Le CSS placé ici sera appliqué à tous les habillages. */
/* Style pour le boîtier de documentation */
.template-documentation {
    background-color: #f8f9fa;
    border: 1px solid #a2a9b1;
    padding: 1em;
    margin-top: 1em;
    clear: both;
    border-left: 5px solid #3366cc;
}

.template-documentation-header {
    font-weight: bold;
    margin-bottom: 0.5em;
    font-size: 1.1em;
    display: flex;
    justify-content: space-between;
}

.bandeau-ebauche {
    margin: 10px 0;
    padding: 10px 15px;
    background-color: var(--background-color-neutral-subtle);
    border: 1px solid var(--border-color-base);
    border-left: 10px solid #3366cc;
    display: flex;
    align-items: center;
    border-radius: 4px;
}
.bandeau-ebauche-icone {
    font-size: 24px;
    margin-right: 15px;
}
.bandeau-ebauche-texte {
    font-size: 0.9em;
    line-height: 1;
    font-family: inherit;
    color: var(--color-base);
}

.userbox {
    border: 1px solid #AAAAAA;
    margin: 4px;
    float: left;
    width: 238px;
    height: 45px;
    background: #FFFFFF;
    display: table !important;
    border-collapse: collapse;
    font-family: sans-serif;
}

.userbox-id {
    display: table-cell !important;
    width: 45px;
    height: 45px;
    background: #CCCCCC;
    text-align: center;
    vertical-align: middle;
    font-size: 20px;
}

.userbox-info {
    display: table-cell !important;
    padding: 0 8px;
    font-size: 0.85em;
    line-height: 1.2em;
    vertical-align: middle;
    text-align: left;
}

body .userbox-info {
    display: table-cell;
    vertical-align: middle;
    padding: 0 10px;
    font-size: 0.85em;
    line-height: 1.2;
    text-align: left;
    font-family: inherit;
}

body .userbox-info p {
    margin: 0;
    padding: 0;
    line-height: 1.2;
    display: inline; 
}

.userbox-info p {
    margin: 0 !important;
    padding: 0 !important;
    display: inline !important;
}

.userbox-column {
    float: right;
    clear: right;
    width: 250px;
    margin-left: 1em;
    margin-bottom: 1em;
    background: transparent;
}

.userbox-column .userbox {
    float: none;
    display: flex;
    margin-bottom: 5px;
}

.userbox-info, .userbox-id {
    display: flex;
    align-items: center;
    justify-content: center;
}

.userbox-info {
    display: block;
    line-height: 45px;
    text-align: left;
    vertical-align: middle;
}

.userbox-info p, .userbox-info span {
    margin: 0;
    padding: 0;
    display: inline;
}

.mw-wiki-logo-text {
    display: none;
}