« 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 |
||
| Ligne 1 : | Ligne 1 : | ||
/* ============================================================ | /* ============================================================ | ||
* | * CSS partagé pour toutes les infobox | ||
* ============================================================ */ | * ============================================================ */ | ||
| Ligne 26 : | Ligne 25 : | ||
background: #f4f4f6; | background: #f4f4f6; | ||
display: block; | display: block; | ||
} | |||
.ith-infobox__logo { | |||
width: 100%; | |||
max-height: 120px; | |||
object-fit: contain; | |||
background: #ffffff; | |||
display: block; | |||
padding: 12px 16px; | |||
box-sizing: border-box; | |||
} | } | ||
Version du 12 août 2026 à 15:32
/* ============================================================
* 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 #c9ced6;
border-radius: 16px;
overflow: hidden;
background: #ffffff;
color: #1f2328;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
font-size: 0.92em;
line-height: 1.4;
}
.ith-infobox__media {
width: 100%;
aspect-ratio: 4 / 3;
object-fit: contain;
background: #f4f4f6;
display: block;
}
.ith-infobox__logo {
width: 100%;
max-height: 120px;
object-fit: contain;
background: #ffffff;
display: block;
padding: 12px 16px;
box-sizing: border-box;
}
.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: #4b5563;
border-top: 1px solid #e5e7eb;
}
.ith-infobox__row {
display: flex;
gap: 10px;
padding: 7px 16px;
border-top: 1px solid #f0f0f2;
}
.ith-infobox__row:first-of-type {
border-top: none;
}
.ith-infobox__label {
flex: 0 0 42%;
font-weight: 600;
color: #55575c;
}
.ith-infobox__value {
flex: 1;
min-width: 0;
overflow-wrap: break-word;
}
.ith-infobox__value a {
text-decoration: none;
}
.ith-infobox--ordinateur .ith-infobox__title,
.ith-infobox--ordinateur .ith-infobox__section {
background: #fff0e0;
}
.ith-infobox--peripherique .ith-infobox__title,
.ith-infobox--peripherique .ith-infobox__section {
background: #efefef;
}
.ith-infobox--logiciel .ith-infobox__title,
.ith-infobox--logiciel .ith-infobox__section {
background: #f8f8ff;
}
.ith-infobox--os .ith-infobox__title,
.ith-infobox--os .ith-infobox__section {
background: #eef0fb;
}
.ith-infobox--jeu .ith-infobox__title,
.ith-infobox--jeu .ith-infobox__section {
background: #dfefdf;
}
@media (max-width: 640px) {
.ith-infobox {
float: none;
width: 100%;
margin: 0 0 20px 0;
}
}