Dantes (обсуждение | вклад) Нет описания правки Метка: ручная отмена |
Dantes (обсуждение | вклад) Нет описания правки |
||
| Строка 44: | Строка 44: | ||
.race-box:hover .race-name { | .race-box:hover .race-name { | ||
opacity: 1; | opacity: 1; | ||
} | |||
.info-popup { | |||
position: fixed; | |||
top: 50%; | |||
left: 50%; | |||
transform: translate(-50%, -50%); | |||
background-color: #222; | |||
color: #f1f1f1; | |||
padding: 20px; | |||
border-radius: 10px; | |||
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8); | |||
z-index: 1000; | |||
display: none; | |||
} | |||
.info-popup.active { | |||
display: block; | |||
} | |||
.info-popup .close-btn { | |||
cursor: pointer; | |||
color: #ff6666; | |||
font-weight: bold; | |||
float: right; | |||
} | } | ||
Версия от 14:54, 19 января 2025
.race-box {
border: 2px solid #411144;
padding: 10px;
display: inline-block;
background-color: #3133;
margin: 10px;
text-align: center;
width: 120px;
height: 160px;
border-radius: 10px;
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
transition: all 0.3s ease-out;
overflow: hidden;
cursor: pointer;
}
.race-box img {
width: 100px;
height: 100px;
border-radius: 8px;
transition: transform 0.3s ease;
}
.race-box img:hover {
transform: scale(1.1);
}
.race-box .race-name {
color: #f1f1f1;
font-size: 14px;
margin-top: 8px;
text-transform: uppercase;
letter-spacing: 1px;
font-weight: bold;
opacity: 0.85;
}
.race-box:hover {
background-color: #444;
transform: scale(1.05);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}
.race-box:hover .race-name {
opacity: 1;
}
.info-popup {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: #222;
color: #f1f1f1;
padding: 20px;
border-radius: 10px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
z-index: 1000;
display: none;
}
.info-popup.active {
display: block;
}
.info-popup .close-btn {
cursor: pointer;
color: #ff6666;
font-weight: bold;
float: right;
}