Files
wifi_switch/data/settings.css
T
2026-09-28 19:07:49 +07:00

292 lines
7.9 KiB
CSS

/* Общие стили для страницы */
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: #121212; /* Глубокий черный фон */
color: #ffffff;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
align-items: center;
}
/* --- TOP BAR STYLE --- */
.top-bar {
width: 100%;
background-color: #1a1a1a;
border-bottom: 2px solid #ff6600; /* Оранжевая полоса снизу */
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
position: sticky;
top: 0;
z-index: 1000;
}
.top-bar-container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
height: 60px;
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
font-size: 20px;
font-weight: bold;
color: #ffffff;
text-decoration: none;
text-transform: uppercase;
letter-spacing: 1px;
}
.logo span {
color: #ff6600;
}
.nav-links {
display: flex;
align-items: center;
gap: 20px;
}
.nav-link {
color: #e0e0e0;
text-decoration: none;
font-size: 15px;
transition: color 0.2s ease;
}
.nav-link:hover {
color: #ff6600;
}
.nav-link.active {
color: #ff6600;
font-weight: 600;
}
/* --- ОСНОВНОЙ КОНТЕНТ --- */
.main-content {
width: 100%;
max-width: 700px; /* Немного расширили для двух карточек */
padding: 40px 20px;
box-sizing: border-box;
}
/* Ссылка назад к списку */
.back-link {
display: inline-flex;
align-items: center;
gap: 8px;
color: #a0a0a0;
text-decoration: none;
font-size: 14px;
margin-bottom: 20px;
transition: color 0.2s ease;
}
.back-link:hover {
color: #ff6600;
}
h1 {
color: #ff6600;
margin: 0 0 30px 0;
text-transform: uppercase;
letter-spacing: 2px;
border-bottom: 2px solid #ff6600;
padding-bottom: 10px;
}
/* Сетка для блоков настроек */
.settings-grid {
display: flex;
flex-direction: column;
gap: 30px;
}
/* --- СТИЛИ КАРТОЧКИ --- */
.settings-card {
background-color: #1a1a1a; /* Темный фон карточки */
border-radius: 8px;
padding: 30px;
box-shadow: 0 4px 15px rgba(255, 102, 0, 0.05);
border: 1px solid #2a2a2a;
}
.card-title {
font-size: 18px;
font-weight: 600;
margin-bottom: 25px;
color: #ffffff;
display: flex;
align-items: center;
gap: 10px;
}
.form-group {
margin-bottom: 20px;
display: flex;
flex-direction: column;
gap: 8px;
}
label {
color: #a0a0a0;
font-size: 14px;
font-weight: 500;
}
/* Поля ввода (универсальный стиль) */
input[type="text"],
input[type="password"] {
width: 100%;
box-sizing: border-box;
background-color: #121212;
border: 1px solid #333333;
color: #ffffff;
padding: 12px 16px;
border-radius: 4px;
font-size: 15px;
outline: none;
transition: all 0.3s ease;
}
/* Состояние фокуса */
input[type="text"]:focus,
input[type="password"]:focus {
border-color: #ff6600;
box-shadow: 0 0 8px rgba(255, 102, 0, 0.2);
}
/* --- СТИЛИ ДЛЯ ЧЕКБОКСА (CHECKBUTTON) --- */
.checkbox-group {
flex-direction: row;
align-items: center;
gap: 12px;
cursor: pointer;
user-select: none;
margin-bottom: 25px;
}
/* Скрываем дефолтный чекбокс, чтобы сделать красивый кастомный */
.checkbox-group input[type="checkbox"] {
position: absolute;
opacity: 0;
cursor: pointer;
height: 0;
width: 0;
}
/* Наш кастомный чекбокс */
.checkmark {
height: 20px;
width: 20px;
background-color: #121212;
border: 1px solid #333333;
border-radius: 4px;
display: inline-block;
position: relative;
transition: all 0.2s ease;
}
/* Эффект при наведении */
.checkbox-group:hover input[type="checkbox"] ~ .checkmark {
border-color: #ff6600;
}
/* Когда чекбокс активен (выбран) */
.checkbox-group input[type="checkbox"]:checked ~ .checkmark {
background-color: #ff6600;
border-color: #ff6600;
}
/* Стрелочка внутри чекбокса */
.checkmark:after {
content: "";
position: absolute;
display: none;
left: 6px;
top: 2px;
width: 5px;
height: 10px;
border: solid #000000;
border-width: 0 2px 2px 0;
transform: rotate(45deg);
}
/* Показываем стрелочку при выборе */
.checkbox-group input[type="checkbox"]:checked ~ .checkmark:after {
display: block;
}
.checkbox-label {
color: #e0e0e0;
font-size: 14px;
font-weight: 600;
letter-spacing: 0.5px;
}
/* Кнопка отправки формы */
.submit-btn {
background-color: #ff6600;
color: #000000;
border: none;
padding: 14px;
border-radius: 4px;
font-size: 16px;
font-weight: bold;
cursor: pointer;
width: 100%;
margin-top: 10px;
transition: all 0.3s ease;
text-transform: uppercase;
letter-spacing: 1px;
}
.submit-btn:hover {
background-color: #ff8533;
box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
}
@media (max-width: 768px) {
.top-bar-container {
height: auto;
padding: 12px 16px;
flex-direction: column;
align-items: flex-start;
gap: 12px;
}
.nav-links {
width: 100%;
justify-content: space-between;
flex-wrap: wrap;
gap: 10px;
}
.main-content {
padding: 24px 14px;
}
h1 {
font-size: 24px;
letter-spacing: 1px;
}
.settings-card {
padding: 20px 16px;
}
.form-group {
margin-bottom: 16px;
}
.checkbox-group {
margin-bottom: 20px;
}
.submit-btn {
padding: 12px 10px;
font-size: 14px;
}
}