162 lines
3.0 KiB
CSS
162 lines
3.0 KiB
CSS
/* Подключите общий файл стилей */
|
|
@import url('common.css');
|
|
|
|
|
|
|
|
|
|
/* Основной контейнер карточек пользователей */
|
|
.user-cards-container {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr); /* Три колонки */
|
|
gap: 20px;
|
|
justify-content: center;
|
|
}
|
|
|
|
/* Стили карточек пользователей */
|
|
.user-card {
|
|
background: linear-gradient(135deg, #2e2e2e, #1e1e1e);
|
|
border-radius: 15px;
|
|
padding: 20px;
|
|
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
|
|
color: #e0e0e0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
|
}
|
|
|
|
.user-card:hover {
|
|
transform: scale(1.05);
|
|
box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
|
|
}
|
|
|
|
/* Заголовок карточки */
|
|
.user-card-header {
|
|
margin-bottom: 15px;
|
|
text-align: center;
|
|
}
|
|
|
|
.user-id {
|
|
font-size: 14px;
|
|
color: #bb86fc;
|
|
}
|
|
|
|
.user-username {
|
|
font-size: 22px;
|
|
margin: 5px 0;
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* Статус пользователя */
|
|
.user-status {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
width: 100%;
|
|
justify-content: center;
|
|
}
|
|
|
|
.switch {
|
|
position: relative;
|
|
display: inline-block;
|
|
width: 60px;
|
|
height: 30px;
|
|
}
|
|
|
|
.switch input {
|
|
opacity: 0;
|
|
width: 0;
|
|
height: 0;
|
|
}
|
|
|
|
.slider {
|
|
position: absolute;
|
|
cursor: pointer;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background-color: #ccc;
|
|
transition: .4s;
|
|
border-radius: 15px;
|
|
}
|
|
|
|
.slider:before {
|
|
position: absolute;
|
|
content: "";
|
|
height: 22px;
|
|
width: 22px;
|
|
border-radius: 50%;
|
|
left: 4px;
|
|
bottom: 4px;
|
|
background-color: white;
|
|
transition: .4s;
|
|
}
|
|
|
|
input:checked + .slider {
|
|
background-color: #bb86fc;
|
|
}
|
|
|
|
input:checked + .slider:before {
|
|
transform: translateX(30px);
|
|
}
|
|
|
|
.status-label {
|
|
font-size: 16px;
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
/* Медиа-запросы для мобильных устройств */
|
|
@media (max-width: 768px) {
|
|
.user-cards-container {
|
|
grid-template-columns: repeat(2, 1fr); /* Две колонки на планшетах */
|
|
}
|
|
|
|
.user-card {
|
|
padding: 15px;
|
|
}
|
|
}
|
|
|
|
/* Медиа-запросы для очень маленьких устройств */
|
|
@media (max-width: 480px) {
|
|
.user-cards-container {
|
|
grid-template-columns: 1fr; /* Одна колонка на мобильных устройствах */
|
|
}
|
|
|
|
.user-card {
|
|
padding: 10px;
|
|
}
|
|
|
|
.user-card-header {
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.user-id {
|
|
font-size: 12px;
|
|
}
|
|
|
|
.user-username {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.status-label {
|
|
font-size: 14px;
|
|
}
|
|
|
|
.switch {
|
|
width: 50px;
|
|
height: 25px;
|
|
}
|
|
|
|
.slider:before {
|
|
height: 18px;
|
|
width: 18px;
|
|
left: 3px;
|
|
bottom: 3px;
|
|
}
|
|
|
|
input:checked + .slider:before {
|
|
transform: translateX(25px);
|
|
}
|
|
}
|