« Modèle:Joueur/styles.css » : différence entre les versions
De Nefald
Autres actions
Aucun résumé des modifications |
Aucun résumé des modifications |
||
| Ligne 12 : | Ligne 12 : | ||
transition: background-color 0.2s, box-shadow 0.2s, transform 0.2s; | transition: background-color 0.2s, box-shadow 0.2s, transform 0.2s; | ||
cursor: default; | cursor: default; | ||
} | } | ||
| Ligne 32 : | Ligne 31 : | ||
.joueur-avatar { | .joueur-avatar { | ||
flex: 0 0 var(--joueur-h, 60px); | |||
width: var(--joueur-h, 60px); | width: var(--joueur-h, 60px); | ||
height: var(--joueur-h, 60px); | height: var(--joueur-h, 60px); | ||
overflow: hidden; | |||
} | } | ||
.joueur-avatar a | .joueur-avatar a { | ||
display: block; | display: block; | ||
width: 100%; | width: 100%; | ||
height: 100%; | height: 100%; | ||
line-height: 0; | |||
background: none !important; | background: none !important; | ||
padding: 0 !important; | padding: 0 !important; | ||
} | } | ||
.joueur-avatar a | .joueur-avatar a::after { | ||
display: none !important; | display: none !important; | ||
} | } | ||
| Ligne 55 : | Ligne 52 : | ||
.joueur-avatar img { | .joueur-avatar img { | ||
display: block; | display: block; | ||
width: | width: 100%; | ||
height: | height: 100%; | ||
image-rendering: pixelated; | image-rendering: pixelated; | ||
} | } | ||
| Ligne 65 : | Ligne 61 : | ||
flex-direction: column; | flex-direction: column; | ||
justify-content: center; | justify-content: center; | ||
padding: | padding: 4px 12px 4px 10px; | ||
gap: | min-height: var(--joueur-h, 60px); | ||
gap: 1px; | |||
min-width: 0; | min-width: 0; | ||
} | } | ||
| Ligne 129 : | Ligne 126 : | ||
} | } | ||
.joueur-avatar-seul a | .joueur-avatar-seul a { | ||
display: block; | display: block; | ||
width: 100%; | width: 100%; | ||
height: 100%; | height: 100%; | ||
line-height: 0; | |||
background: none !important; | background: none !important; | ||
padding: 0 !important; | padding: 0 !important; | ||
} | } | ||
.joueur-avatar-seul a | .joueur-avatar-seul a::after { | ||
display: none !important; | display: none !important; | ||
} | } | ||
| Ligne 143 : | Ligne 141 : | ||
.joueur-avatar-seul img { | .joueur-avatar-seul img { | ||
display: block; | display: block; | ||
width: | width: 100%; | ||
height: | height: 100%; | ||
image-rendering: pixelated; | image-rendering: pixelated; | ||
} | } | ||
Version du 19 février 2026 à 14:58
/* === 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: middle;
max-width: 100%;
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);
overflow: hidden;
}
.joueur-avatar a {
display: block;
width: 100%;
height: 100%;
line-height: 0;
background: none !important;
padding: 0 !important;
}
.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;
}
.joueur-nom {
font-weight: 700;
font-size: 0.95em;
color: var(--color-emphasized);
line-height: 1.3;
white-space: nowrap;
}
.joueur-grade {
font-size: 0.8em;
line-height: 1.2;
}
.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: nowrap;
}
/* === 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;
}