« Modèle:Joueur/styles.css » : différence entre les versions
De Nefald
Autres actions
Page créée avec « .joueur-banniere { display: inline-flex; align-items: center; background: #1a1a2e; border: 2px solid #4a4a6a; border-radius: 6px; padding: 4px 10px 4px 4px; gap: 8px; box-sizing: border-box; vertical-align: middle; font-family: sans-serif; text-decoration: none; } .joueur-avatar { image-rendering: pixelated; border-radius: 3px; flex-shrink: 0; } .joueur-infos { display: flex; flex-direction: column... » |
Aucun résumé des modifications |
||
| (24 versions intermédiaires par le même utilisateur non affichées) | |||
| Ligne 1 : | Ligne 1 : | ||
/* === CONTENEUR GRILLE === */ | |||
.joueurs-grille { | |||
display: flex; | |||
flex-wrap: wrap; | |||
gap: 10px; | |||
align-items: stretch; | |||
} | |||
/* === BANNIÈRE NORMALE === */ | |||
.joueur-banniere { | .joueur-banniere { | ||
display: inline-flex; | |||
align-items: center; | |||
background-color: var(--color-surface-2); | |||
border: 1px solid var(--color-surface-3); | |||
border-radius: 10px; | |||
overflow: hidden; | |||
vertical-align: top; | |||
max-width: 100%; | |||
width: 300px; | |||
min-height: var(--joueur-h, 80px); | |||
transition: background-color 0.2s, box-shadow 0.2s, transform 0.2s; | |||
cursor: default; | |||
} | |||
.joueurs-grille .joueur-banniere { | |||
vertical-align: unset; | |||
} | |||
.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; | |||
} | |||
/* === BANNIÈRE CLIQUABLE === */ | |||
.joueur-banniere.joueur-lien { | |||
position: relative; | |||
cursor: pointer; | |||
} | |||
.joueur-lien-overlay { | |||
position: absolute; | |||
inset: 0; | |||
z-index: 2; | |||
display: block; | |||
} | |||
/* Masquer les styles par défaut du lien wiki */ | |||
.joueur-banniere.joueur-lien > a { | |||
color: inherit; | |||
text-decoration: none; | |||
} | |||
.joueur-lien-overlay::after { | |||
display: none !important; | |||
} | } | ||
.joueur-avatar { | .joueur-avatar { | ||
flex: 0 0 var(--joueur-h, 80px); | |||
width: var(--joueur-h, 80px); | |||
height: var(--joueur-h, 80px); | |||
align-self: center; | |||
overflow: hidden; | |||
margin: 0 10px; | |||
} | } | ||
.joueur- | |||
.joueur-avatar a { | |||
display: block; | |||
width: 100%; | |||
height: 100%; | |||
line-height: 0; | |||
margin: 0; | |||
padding: 0 !important; | |||
background: none !important; | |||
overflow: hidden; | |||
} | } | ||
.joueur- | .joueur-avatar a::after { | ||
display: none !important; | |||
} | |||
.joueur-avatar img { | |||
display: block; | |||
width: 100%; | |||
height: 100%; | |||
image-rendering: pixelated; | |||
object-fit: contain; | |||
} | |||
.joueur-contenu { | |||
display: flex; | |||
flex-direction: column; | |||
justify-content: center; | |||
padding: 10px 14px 10px 12px; | |||
min-height: var(--joueur-h, 80px); | |||
gap: 3px; | |||
min-width: 0; | |||
flex: 1; | |||
overflow: hidden; | |||
} | } | ||
.joueur-nom | .joueur-nom { | ||
font-weight: 700; | |||
font-size: 1em; | |||
color: var(--color-emphasized); | |||
line-height: 1.3; | |||
white-space: nowrap; | |||
overflow: hidden; | |||
text-overflow: ellipsis; | |||
} | } | ||
.joueur- | .joueur-alias { | ||
font-size: 0.75em; | |||
font-style: italic; | |||
color: var(--color-subtle); | |||
font-weight: 400; | |||
} | } | ||
.joueur-grade { | .joueur-grade { | ||
font-size: 0.82em; | |||
line-height: 1.3; | |||
white-space: nowrap; | |||
overflow: hidden; | |||
text-overflow: ellipsis; | |||
} | } | ||
.joueur-grade a { | .joueur-grade a { | ||
color: var(--color-link); | |||
text-decoration: none; | |||
position: relative; | |||
z-index: 3; | |||
} | } | ||
.joueur-grade a:hover { | .joueur-grade a:hover { | ||
text-decoration: underline; | |||
} | } | ||
.joueur-texte { | .joueur-texte { | ||
font-size: 0.78em; | |||
color: var(--color-subtle); | |||
line-height: 1.35; | |||
white-space: normal; | |||
word-wrap: break-word; | |||
overflow-wrap: break-word; | |||
margin-top: 2px; | |||
} | |||
/* === MODE AVATAR SEUL === */ | |||
.joueur-avatar-seul { | |||
display: inline-block; | |||
width: var(--joueur-h, 80px); | |||
height: var(--joueur-h, 80px); | |||
background-color: var(--color-surface-2); | |||
border: 1px solid var(--color-surface-3); | |||
border-radius: 8px; | |||
overflow: hidden; | |||
vertical-align: top; | |||
transition: background-color 0.2s, box-shadow 0.2s, transform 0.2s; | |||
cursor: default; | |||
} | |||
.joueurs-grille .joueur-avatar-seul { | |||
vertical-align: unset; | |||
} | |||
.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; | |||
} | } | ||
Dernière version du 20 février 2026 à 15:42
/* === CONTENEUR GRILLE === */
.joueurs-grille {
display: flex;
flex-wrap: wrap;
gap: 10px;
align-items: stretch;
}
/* === 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: 10px;
overflow: hidden;
vertical-align: top;
max-width: 100%;
width: 300px;
min-height: var(--joueur-h, 80px);
transition: background-color 0.2s, box-shadow 0.2s, transform 0.2s;
cursor: default;
}
.joueurs-grille .joueur-banniere {
vertical-align: unset;
}
.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;
}
/* === BANNIÈRE CLIQUABLE === */
.joueur-banniere.joueur-lien {
position: relative;
cursor: pointer;
}
.joueur-lien-overlay {
position: absolute;
inset: 0;
z-index: 2;
display: block;
}
/* Masquer les styles par défaut du lien wiki */
.joueur-banniere.joueur-lien > a {
color: inherit;
text-decoration: none;
}
.joueur-lien-overlay::after {
display: none !important;
}
.joueur-avatar {
flex: 0 0 var(--joueur-h, 80px);
width: var(--joueur-h, 80px);
height: var(--joueur-h, 80px);
align-self: center;
overflow: hidden;
margin: 0 10px;
}
.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;
object-fit: contain;
}
.joueur-contenu {
display: flex;
flex-direction: column;
justify-content: center;
padding: 10px 14px 10px 12px;
min-height: var(--joueur-h, 80px);
gap: 3px;
min-width: 0;
flex: 1;
overflow: hidden;
}
.joueur-nom {
font-weight: 700;
font-size: 1em;
color: var(--color-emphasized);
line-height: 1.3;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.joueur-alias {
font-size: 0.75em;
font-style: italic;
color: var(--color-subtle);
font-weight: 400;
}
.joueur-grade {
font-size: 0.82em;
line-height: 1.3;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.joueur-grade a {
color: var(--color-link);
text-decoration: none;
position: relative;
z-index: 3;
}
.joueur-grade a:hover {
text-decoration: underline;
}
.joueur-texte {
font-size: 0.78em;
color: var(--color-subtle);
line-height: 1.35;
white-space: normal;
word-wrap: break-word;
overflow-wrap: break-word;
margin-top: 2px;
}
/* === MODE AVATAR SEUL === */
.joueur-avatar-seul {
display: inline-block;
width: var(--joueur-h, 80px);
height: var(--joueur-h, 80px);
background-color: var(--color-surface-2);
border: 1px solid var(--color-surface-3);
border-radius: 8px;
overflow: hidden;
vertical-align: top;
transition: background-color 0.2s, box-shadow 0.2s, transform 0.2s;
cursor: default;
}
.joueurs-grille .joueur-avatar-seul {
vertical-align: unset;
}
.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;
}