Dantes (обсуждение | вклад) Нет описания правки |
Dantes (обсуждение | вклад) Нет описания правки |
||
| Строка 7: | Строка 7: | ||
.race-card { | .race-card { | ||
width: | width: 133px; | ||
text-align: center; | text-align: center; | ||
border-radius: 10px; | border-radius: 10px; | ||
padding: | padding: 7px; | ||
background: rgba(255, 255, 255, 0.1); | background: rgba(255, 255, 255, 0.1); | ||
cursor: pointer; | cursor: pointer; | ||
| Строка 18: | Строка 18: | ||
.race-card:hover { | .race-card:hover { | ||
transform: scale(1.05); | transform: scale(1.05); | ||
} | |||
.race-card img { | |||
width: 120px; | |||
height: 120px; | |||
} | } | ||
Версия от 21:15, 15 февраля 2025
.race-container {
display: flex;
flex-wrap: wrap;
gap: 10px;
justify-content: center;
}
.race-card {
width: 133px;
text-align: center;
border-radius: 10px;
padding: 7px;
background: rgba(255, 255, 255, 0.1);
cursor: pointer;
transition: transform 0.2s;
}
.race-card:hover {
transform: scale(1.05);
}
.race-card img {
width: 120px;
height: 120px;
}
.race-name {
margin-top: 5px;
font-weight: bold;
color: white;
}
.race-info {
margin-top: 20px;
padding: 10px;
background: rgba(0, 0, 0, 0.8);
color: white;
border-radius: 5px;
display: none;
}