« Modèle:Joueur/styles.css » : différence entre les versions
De Nefald
Autres actions
Aucun résumé des modifications |
mAucun résumé des modifications |
||
| Ligne 7 : | Ligne 7 : | ||
border-radius: 6px; | border-radius: 6px; | ||
overflow: hidden; | overflow: hidden; | ||
vertical-align: | vertical-align: top; | ||
max-width: 100%; | max-width: 100%; | ||
width: 200px; | |||
min-height: var(--joueur-h, 60px); | min-height: var(--joueur-h, 60px); | ||
transition: background-color 0.2s, box-shadow 0.2s, transform 0.2s; | transition: background-color 0.2s, box-shadow 0.2s, transform 0.2s; | ||
| Ligne 67 : | Ligne 68 : | ||
gap: 1px; | gap: 1px; | ||
min-width: 0; | min-width: 0; | ||
flex: 1; | |||
overflow: hidden; | |||
} | } | ||
| Ligne 75 : | Ligne 78 : | ||
line-height: 1.3; | line-height: 1.3; | ||
white-space: nowrap; | white-space: nowrap; | ||
overflow: hidden; | |||
text-overflow: ellipsis; | |||
} | } | ||
| Ligne 80 : | Ligne 85 : | ||
font-size: 0.8em; | font-size: 0.8em; | ||
line-height: 1.2; | line-height: 1.2; | ||
white-space: nowrap; | |||
overflow: hidden; | |||
text-overflow: ellipsis; | |||
} | } | ||
.joueur-grade a { | .joueur-grade a { | ||
color: var(--color-link); | color: var(--color-link); | ||
| Ligne 95 : | Ligne 102 : | ||
color: var(--color-subtle); | color: var(--color-subtle); | ||
line-height: 1.2; | line-height: 1.2; | ||
white-space: | white-space: normal; | ||
word-wrap: break-word; | |||
overflow-wrap: break-word; | |||
} | } | ||
Version du 20 février 2026 à 06:16
/* === BANNIÈRE NORMALE === */
.joueur-banniere {
display: inline-flex;
align-items: center;
background-color: var(--color-surface-2);
border: 1px solid var(--color-surface-3);
border-radius: 6px;
overflow: hidden;
vertical-align: top;
max-width: 100%;
width: 200px;
min-height: var(--joueur-h, 60px);
transition: background-color 0.2s, box-shadow 0.2s, transform 0.2s;
cursor: default;
}
.joueur-banniere:hover {
background-color: var(--color-surface-3);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
transform: translateY(-1px);
}
.joueur-banniere.joueur-droite {
float: right;
margin: 0 0 8px 12px;
}
.joueur-banniere.joueur-gauche {
float: left;
margin: 0 12px 8px 0;
}
.joueur-avatar {
flex: 0 0 var(--joueur-h, 60px);
width: var(--joueur-h, 60px);
height: var(--joueur-h, 60px);
box-sizing: border-box;
}
.joueur-avatar a {
display: block;
width: 100%;
height: 100%;
line-height: 0;
margin: 0;
padding: 0 !important;
background: none !important;
overflow: hidden;
}
.joueur-avatar a::after {
display: none !important;
}
.joueur-avatar img {
display: block;
width: 100%;
height: 100%;
image-rendering: pixelated;
}
.joueur-contenu {
display: flex;
flex-direction: column;
justify-content: center;
padding: 4px 12px 4px 10px;
min-height: var(--joueur-h, 60px);
gap: 1px;
min-width: 0;
flex: 1;
overflow: hidden;
}
.joueur-nom {
font-weight: 700;
font-size: 0.95em;
color: var(--color-emphasized);
line-height: 1.3;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.joueur-grade {
font-size: 0.8em;
line-height: 1.2;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.joueur-grade a {
color: var(--color-link);
text-decoration: none;
}
.joueur-grade a:hover {
text-decoration: underline;
}
.joueur-texte {
font-size: 0.75em;
color: var(--color-subtle);
line-height: 1.2;
white-space: normal;
word-wrap: break-word;
overflow-wrap: break-word;
}
/* === MODE AVATAR SEUL === */
.joueur-avatar-seul {
display: inline-block;
width: var(--joueur-h, 60px);
height: var(--joueur-h, 60px);
background-color: var(--color-surface-2);
border: 1px solid var(--color-surface-3);
border-radius: 8px;
overflow: hidden;
vertical-align: middle;
transition: background-color 0.2s, box-shadow 0.2s, transform 0.2s;
cursor: default;
}
.joueur-avatar-seul:hover {
background-color: var(--color-surface-3);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
transform: translateY(-1px);
}
.joueur-avatar-seul.joueur-droite {
float: right;
margin: 0 0 8px 12px;
}
.joueur-avatar-seul.joueur-gauche {
float: left;
margin: 0 12px 8px 0;
}
.joueur-avatar-seul a {
display: block;
width: 100%;
height: 100%;
line-height: 0;
background: none !important;
padding: 0 !important;
}
.joueur-avatar-seul a::after {
display: none !important;
}
.joueur-avatar-seul img {
display: block;
width: 100%;
height: 100%;
image-rendering: pixelated;
}
.joueur-erreur {
color: #d33;
font-style: italic;
}