Aller au contenu

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

De Sara'h
Ajout des styles pour Infobox Biographie
Ajout des styles pour Modèles de notice
Ligne 200 : Ligne 200 :
.infobox-bio-value {
.infobox-bio-value {
     padding: 0.4em 0.6em;
     padding: 0.4em 0.6em;
}
/* ==========================================================================
  Styles pour Modèle:Confusion et Modèle:Voir homonymes
  ========================================================================== */
.template-notice {
    padding: 8px 12px;
    margin: 0 0 1.2em 0;
    background: #f1f5f9;
    border-left: 4px solid #2563eb;
    border-radius: 4px;
    font-size: 90%;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 8px;
}
}

Version du 10 septembre 2026 à 12:00

/* ==========================================================================
   Styles pour le catalogue des œuvres de Sara'h (Liste des chansons de Sara'h)
   ========================================================================== */
.sarah-catalog-table {
    width: 100%;
    font-size: 92%;
    border-collapse: collapse;
    margin-top: 1em;
}

.sarah-catalog-table th {
    background: #1e3a8a !important;
    color: #ffffff !important;
    padding: 10px 12px;
    font-weight: bold;
    text-align: left;
    border-color: #1e3a8a;
}

.sarah-catalog-table tr {
    border-bottom: 1px solid #e2e8f0;
}

.sarah-catalog-table td {
    padding: 8px 10px;
    vertical-align: middle;
}

.sarah-catalog-table .col-title {
    font-weight: bold;
}

.sarah-catalog-table .col-views {
    text-align: right;
    font-weight: 600;
    color: #1e3a8a;
    white-space: nowrap;
}

.sarah-catalog-table .col-date {
    white-space: nowrap;
}

.sarah-catalog-table .col-listen {
    white-space: nowrap;
}

/* ==========================================================================
   Styles pour l'Infobox Chanson et les paroles (Remplace le CSS inline)
   ========================================================================== */
.infobox-chanson {
    width: 320px;
    float: right;
    margin: 0 0 1.2em 1.5em;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 90%;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.08);
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

.infobox-chanson-title {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: #ffffff !important;
    padding: 12px;
    font-size: 115%;
    text-align: center;
    font-weight: bold;
}

.infobox-chanson-image {
    text-align: center;
    padding: 8px;
    background: #f8fafc;
}

.infobox-chanson-row {
    border-top: 1px solid #e2e8f0;
}

.infobox-chanson-label {
    padding: 6px 10px;
    text-align: left;
    background: #f8fafc;
    color: #334155;
    font-weight: 600;
}

.infobox-chanson-label-w40 {
    width: 40%;
}

.infobox-chanson-value {
    padding: 6px 10px;
    color: #0f172a;
}

.infobox-chanson-value-bold {
    font-weight: bold;
}

.infobox-chanson-value-lh {
    line-height: 1.6;
}

.infobox-chanson-desc-container {
    padding: 8px 10px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.infobox-chanson-desc-collapsible {
    font-size: 90%;
}

.infobox-chanson-desc-header {
    font-weight: bold;
    color: #1e40af;
    cursor: pointer;
    padding: 2px 0;
}

.infobox-chanson-desc-content {
    margin-top: 6px;
    padding: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    line-height: 1.45;
    color: #334155;
    max-height: 200px;
    overflow-y: auto;
}

.sarah-lyrics {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5em;
    margin: 1em 0;
    line-height: 1.8;
    font-size: 0.95em;
    white-space: pre-line;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.03);
}


/* ==========================================================================
   Styles pour l'Infobox Biographie et Musique
   ========================================================================== */
.infobox-bio {
    width: 22em;
    font-size: 90%;
    border: 1px solid #a2a9b1;
    background-color: #f8f9fa;
    color: #202122;
    margin: 0 0 1em 1em;
    padding: 0.2em;
    float: right;
    clear: right;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.infobox-bio-title {
    font-size: 130%;
    font-weight: bold;
    background-color: #e8ecf1;
    padding: 0.5em;
    text-align: center;
    border-radius: 4px 4px 0 0;
    color: #1a1a1a;
}

.infobox-bio-image-desc {
    text-align: center;
    font-size: 95%;
    color: #54595d;
    padding: 0.2em 0.5em 0.5em;
}

.infobox-bio-row {
    border-top: 1px solid #a2a9b1;
}

.infobox-bio-label {
    text-align: left;
    padding: 0.4em 0.6em;
    font-weight: 600;
    color: #404244;
}

.infobox-bio-label-w40 {
    width: 40%;
}

.infobox-bio-value {
    padding: 0.4em 0.6em;
}


/* ==========================================================================
   Styles pour Modèle:Confusion et Modèle:Voir homonymes
   ========================================================================== */
.template-notice {
    padding: 8px 12px;
    margin: 0 0 1.2em 0;
    background: #f1f5f9;
    border-left: 4px solid #2563eb;
    border-radius: 4px;
    font-size: 90%;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 8px;
}