Jump to content
Basculer le menu
Changer de menu des préférences
Basculer le menu personnel
Non connecté(e)
Votre adresse IP sera visible au public si vous faites des modifications.

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

Page de l’interface de MediaWiki
m A protégé « MediaWiki:Common.css » ([Modifier=Autoriser uniquement les administrateurs] (infini) [Renommer=Autoriser uniquement les administrateurs] (infini))
Aucun résumé des modifications
Ligne 2 : Ligne 2 :


/* ============================================================
/* ============================================================
  * Infothèque — Gadget "Ajouter un téléchargement"
  * Gadget "Ajouter un téléchargement"
* À coller dans : MediaWiki:Common.css (à la suite du contenu existant)
  * ============================================================ */
  * ============================================================ */


Ligne 41 : Ligne 40 :
     max-height: 88vh;
     max-height: 88vh;
     overflow-y: auto;
     overflow-y: auto;
     background: #ffffff;
     background: var(--background-color-base);
     color: #1f2328;
     color: var(--color-base);
     border-radius: 16px;
     border-radius: 16px;
     box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
     box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
Ligne 59 : Ligne 58 :
     font-size: 0.88em;
     font-size: 0.88em;
     font-weight: 700;
     font-weight: 700;
     color: #4b5563;
     color: var(--color-subtle);
}
}


Ligne 70 : Ligne 69 :
     margin-top: 4px;
     margin-top: 4px;
     padding: 7px 10px;
     padding: 7px 10px;
     border: 1px solid #c9ced6;
     border: 1px solid var(--border-color-base);
     border-radius: 8px;
     border-radius: 8px;
     font-size: 0.95em;
     font-size: 0.95em;
     font-weight: 400;
     font-weight: 400;
     color: #1f2328;
     color: var(--color-base);
    background: var(--background-color-base);
     font-family: inherit;
     font-family: inherit;
}
}
Ligne 96 : Ligne 96 :
     font-size: 0.9em;
     font-size: 0.9em;
     cursor: pointer;
     cursor: pointer;
     border: 1px solid #c9ced6;
     border: 1px solid var(--border-color-base);
}
}


Ligne 109 : Ligne 109 :


.ith-dl-btn-secondary {
.ith-dl-btn-secondary {
     background: #f5f7fa;
     background: var(--background-color-neutral-subtle);
     color: #1f2328;
     color: var(--color-base);
}
}
.ith-dl-btn-secondary:hover {
.ith-dl-btn-secondary:hover {
     background: #eceff3;
     background: var(--background-color-interactive);
}
}


Ligne 140 : Ligne 140 :
     flex: 0 0 auto;
     flex: 0 0 auto;
     width: 30px;
     width: 30px;
     border: 1px solid #c9ced6;
     border: 1px solid var(--border-color-base);
     border-radius: 8px;
     border-radius: 8px;
     background: #f5f7fa;
     background: var(--background-color-neutral-subtle);
     color: #c0392b;
     color: #c0392b;
     font-weight: 800;
     font-weight: 800;

Version du 14 août 2026 à 12:30

/* Le CSS placé ici sera appliqué à tous les habillages. */

/* ============================================================
 * Gadget "Ajouter un téléchargement"
 * ============================================================ */

.ith-dl-add-btn {
    display: inline-block;
    margin: 0 0 10px 0;
    padding: 8px 14px;
    border: 1px solid #b6c7f2;
    border-radius: 10px;
    background: #f5f8ff;
    color: #1f2328;
    font-weight: 700;
    font-size: 0.9em;
    cursor: pointer;
}
.ith-dl-add-btn:hover {
    background: #eef3ff;
}

.ith-dl-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.ith-dl-modal {
    box-sizing: border-box;
    width: 480px;
    max-width: 92vw;
    max-height: 88vh;
    overflow-y: auto;
    background: var(--background-color-base);
    color: var(--color-base);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    padding: 20px 22px;
}

.ith-dl-modal h3 {
    margin: 0 0 14px 0;
    font-size: 18px;
    font-weight: 800;
}

.ith-dl-modal label {
    display: block;
    margin: 0 0 12px 0;
    font-size: 0.88em;
    font-weight: 700;
    color: var(--color-subtle);
}

.ith-dl-modal input[type="text"],
.ith-dl-modal select,
.ith-dl-modal textarea {
    box-sizing: border-box;
    display: block;
    width: 100%;
    margin-top: 4px;
    padding: 7px 10px;
    border: 1px solid var(--border-color-base);
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 400;
    color: var(--color-base);
    background: var(--background-color-base);
    font-family: inherit;
}

.ith-dl-req {
    color: #c0392b;
}

.ith-dl-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 6px;
}

.ith-dl-btn-primary,
.ith-dl-btn-secondary {
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9em;
    cursor: pointer;
    border: 1px solid var(--border-color-base);
}

.ith-dl-btn-primary {
    background: #2f6fed;
    border-color: #2f6fed;
    color: #ffffff;
}
.ith-dl-btn-primary:hover {
    background: #2559c4;
}

.ith-dl-btn-secondary {
    background: var(--background-color-neutral-subtle);
    color: var(--color-base);
}
.ith-dl-btn-secondary:hover {
    background: var(--background-color-interactive);
}

.ith-dl-error {
    margin: 10px 0 0 0;
    color: #c0392b;
    font-size: 0.85em;
    font-weight: 700;
}

.ith-dl-image-row {
    display: flex;
    gap: 6px;
    margin: 0 0 6px 0;
}
.ith-dl-image-row input[type="text"] {
    margin-top: 0;
}
.ith-dl-image-row .ith-dl-image-file {
    flex: 1 1 55%;
}
.ith-dl-image-row .ith-dl-image-caption {
    flex: 1 1 40%;
}
.ith-dl-btn-remove-image {
    flex: 0 0 auto;
    width: 30px;
    border: 1px solid var(--border-color-base);
    border-radius: 8px;
    background: var(--background-color-neutral-subtle);
    color: #c0392b;
    font-weight: 800;
    cursor: pointer;
}
.ith-dl-btn-remove-image:hover {
    background: #fbe9e7;
}

.ith-dl-btn-small {
    padding: 5px 10px;
    font-size: 0.82em;
    margin: 0 0 10px 0;
}