« Modèle:Infobox/styles.css » : différence entre les versions
De Infothèque
Autres actions
m A protégé « Modèle:Infobox/styles.css » : Modèle/page sensible du wiki : modification réservée aux administrateurs ([Modifier=Autoriser uniquement les administrateurs] (infini) [Renommer=Autoriser uniquement les administrateurs] (infini)) [protection en cascade] |
Aucun résumé des modifications |
||
| (7 versions intermédiaires par le même utilisateur non affichées) | |||
| Ligne 1 : | Ligne 1 : | ||
/* ============================================================ | /* ============================================================ | ||
* | * CSS partagé pour toutes les infobox | ||
* ============================================================ */ | * ============================================================ */ | ||
| Ligne 10 : | Ligne 9 : | ||
max-width: 100%; | max-width: 100%; | ||
margin: 0 0 20px 20px; | margin: 0 0 20px 20px; | ||
border: 1px solid | border: 1px solid var(--border-color-base); | ||
border-radius: 16px; | border-radius: 16px; | ||
overflow: hidden; | overflow: hidden; | ||
background: | background: var(--background-color-base); | ||
color: | color: var(--color-base); | ||
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); | box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); | ||
font-size: 0.92em; | font-size: 0.92em; | ||
| Ligne 21 : | Ligne 20 : | ||
.ith-infobox__media { | .ith-infobox__media { | ||
display: block; | |||
width: 100%; | |||
background: var(--background-color-neutral-subtle); | |||
} | |||
.ith-infobox__media img { | |||
display: block; | |||
width: 100%; | width: 100%; | ||
aspect-ratio: 4 / 3; | aspect-ratio: 4 / 3; | ||
object-fit: contain; | object-fit: contain; | ||
} | |||
.ith-infobox__logo { | |||
display: block; | display: block; | ||
width: 100%; | |||
padding: 12px 16px; | |||
box-sizing: border-box; | |||
background: var(--background-color-base); | |||
text-align: center; | |||
} | |||
.ith-infobox__logo img { | |||
max-width: 100%; | |||
max-height: 120px; | |||
width: auto; | |||
height: auto; | |||
object-fit: contain; | |||
} | } | ||
| Ligne 42 : | Ligne 63 : | ||
text-transform: uppercase; | text-transform: uppercase; | ||
letter-spacing: 0.05em; | letter-spacing: 0.05em; | ||
color: | color: var(--color-subtle); | ||
border-top: 1px solid | border-top: 1px solid var(--border-color-base); | ||
} | } | ||
| Ligne 50 : | Ligne 71 : | ||
gap: 10px; | gap: 10px; | ||
padding: 7px 16px; | padding: 7px 16px; | ||
border-top: 1px solid | border-top: 1px solid var(--border-color-subtle); | ||
} | } | ||
| Ligne 60 : | Ligne 81 : | ||
flex: 0 0 42%; | flex: 0 0 42%; | ||
font-weight: 600; | font-weight: 600; | ||
color: | color: var(--color-subtle); | ||
} | } | ||
| Ligne 73 : | Ligne 94 : | ||
} | } | ||
/* Bandeaux d'accent par type de fiche : fond pastel volontairement fixe | |||
* (identité visuelle), texte volontairement fixe en sombre (pas de | |||
* var(--color-base)) pour rester lisible en thème clair ET sombre. */ | |||
.ith-infobox--ordinateur .ith-infobox__title, | .ith-infobox--ordinateur .ith-infobox__title, | ||
.ith-infobox--ordinateur .ith-infobox__section { | .ith-infobox--ordinateur .ith-infobox__section { | ||
background: #fff0e0; | background: #fff0e0; | ||
color: #1f2328; | |||
} | } | ||
| Ligne 81 : | Ligne 106 : | ||
.ith-infobox--peripherique .ith-infobox__section { | .ith-infobox--peripherique .ith-infobox__section { | ||
background: #efefef; | background: #efefef; | ||
color: #1f2328; | |||
} | } | ||
| Ligne 86 : | Ligne 112 : | ||
.ith-infobox--logiciel .ith-infobox__section { | .ith-infobox--logiciel .ith-infobox__section { | ||
background: #f8f8ff; | background: #f8f8ff; | ||
color: #1f2328; | |||
} | } | ||
| Ligne 91 : | Ligne 118 : | ||
.ith-infobox--os .ith-infobox__section { | .ith-infobox--os .ith-infobox__section { | ||
background: #eef0fb; | background: #eef0fb; | ||
color: #1f2328; | |||
} | } | ||
| Ligne 96 : | Ligne 124 : | ||
.ith-infobox--jeu .ith-infobox__section { | .ith-infobox--jeu .ith-infobox__section { | ||
background: #dfefdf; | background: #dfefdf; | ||
color: #1f2328; | |||
} | |||
.ith-infobox--entreprise .ith-infobox__title, | |||
.ith-infobox--entreprise .ith-infobox__section { | |||
background: #fef3d9; | |||
color: #1f2328; | |||
} | } | ||
Dernière version du 14 août 2026 à 12:27
/* ============================================================
* CSS partagé pour toutes les infobox
* ============================================================ */
.ith-infobox {
float: right;
clear: right;
width: 300px;
max-width: 100%;
margin: 0 0 20px 20px;
border: 1px solid var(--border-color-base);
border-radius: 16px;
overflow: hidden;
background: var(--background-color-base);
color: var(--color-base);
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
font-size: 0.92em;
line-height: 1.4;
}
.ith-infobox__media {
display: block;
width: 100%;
background: var(--background-color-neutral-subtle);
}
.ith-infobox__media img {
display: block;
width: 100%;
aspect-ratio: 4 / 3;
object-fit: contain;
}
.ith-infobox__logo {
display: block;
width: 100%;
padding: 12px 16px;
box-sizing: border-box;
background: var(--background-color-base);
text-align: center;
}
.ith-infobox__logo img {
max-width: 100%;
max-height: 120px;
width: auto;
height: auto;
object-fit: contain;
}
.ith-infobox__title {
padding: 14px 16px 10px 16px;
text-align: center;
font-size: 1.2em;
font-weight: 800;
line-height: 1.2;
}
.ith-infobox__section {
padding: 6px 16px;
font-weight: 700;
font-size: 0.78em;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--color-subtle);
border-top: 1px solid var(--border-color-base);
}
.ith-infobox__row {
display: flex;
gap: 10px;
padding: 7px 16px;
border-top: 1px solid var(--border-color-subtle);
}
.ith-infobox__row:first-of-type {
border-top: none;
}
.ith-infobox__label {
flex: 0 0 42%;
font-weight: 600;
color: var(--color-subtle);
}
.ith-infobox__value {
flex: 1;
min-width: 0;
overflow-wrap: break-word;
}
.ith-infobox__value a {
text-decoration: none;
}
/* Bandeaux d'accent par type de fiche : fond pastel volontairement fixe
* (identité visuelle), texte volontairement fixe en sombre (pas de
* var(--color-base)) pour rester lisible en thème clair ET sombre. */
.ith-infobox--ordinateur .ith-infobox__title,
.ith-infobox--ordinateur .ith-infobox__section {
background: #fff0e0;
color: #1f2328;
}
.ith-infobox--peripherique .ith-infobox__title,
.ith-infobox--peripherique .ith-infobox__section {
background: #efefef;
color: #1f2328;
}
.ith-infobox--logiciel .ith-infobox__title,
.ith-infobox--logiciel .ith-infobox__section {
background: #f8f8ff;
color: #1f2328;
}
.ith-infobox--os .ith-infobox__title,
.ith-infobox--os .ith-infobox__section {
background: #eef0fb;
color: #1f2328;
}
.ith-infobox--jeu .ith-infobox__title,
.ith-infobox--jeu .ith-infobox__section {
background: #dfefdf;
color: #1f2328;
}
.ith-infobox--entreprise .ith-infobox__title,
.ith-infobox--entreprise .ith-infobox__section {
background: #fef3d9;
color: #1f2328;
}
@media (max-width: 640px) {
.ith-infobox {
float: none;
width: 100%;
margin: 0 0 20px 0;
}
}