376 lines
7.1 KiB
CSS
376 lines
7.1 KiB
CSS
/* ==========================================================================
|
|
ИМПОРТ ИЛИ СЛИЯНИЕ С БАЗОВЫМИ СТИЛЯМИ (base.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;
|
|
}
|
|
|
|
h1 {
|
|
color: #ff6600;
|
|
margin: 0 0 30px 0;
|
|
text-transform: uppercase;
|
|
letter-spacing: 2px;
|
|
border-bottom: 2px solid #ff6600;
|
|
padding-bottom: 10px;
|
|
width: 100%;
|
|
}
|
|
|
|
/* ШАПКА (TOP BAR) */
|
|
.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,
|
|
.nav-link.active {
|
|
color: #ff6600;
|
|
}
|
|
|
|
.nav-link.active {
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* ==========================================================================
|
|
СПЕЦИФИЧНЫЕ СТИЛИ СТРАНИЦЫ НАСТРОЕК
|
|
========================================================================== */
|
|
.main-content {
|
|
width: 100%;
|
|
max-width: 740px; /* 700px + padding */
|
|
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;
|
|
}
|
|
|
|
.settings-grid {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 30px;
|
|
width: 100%;
|
|
}
|
|
|
|
.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;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.card-title {
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
margin-bottom: 25px;
|
|
color: #ffffff;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
border-bottom: none;
|
|
padding-bottom: 0;
|
|
text-transform: none;
|
|
letter-spacing: normal;
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 20px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
/* Строчный контейнер для трех полей (IP, Gateway, Mask) */
|
|
.form-row-three {
|
|
display: flex;
|
|
gap: 15px;
|
|
width: 100%;
|
|
}
|
|
|
|
.form-row-three .form-group {
|
|
flex: 1;
|
|
}
|
|
|
|
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);
|
|
}
|
|
|
|
/* Чекбоксы */
|
|
.checkbox-group {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
gap: 12px;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
margin-bottom: 25px;
|
|
position: relative;
|
|
}
|
|
|
|
.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;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.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);
|
|
}
|
|
|
|
/* Текстовый блок "Текущие настройки" */
|
|
.info-card {
|
|
border-left: 4px solid #ff6600;
|
|
}
|
|
|
|
.info-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 14px;
|
|
}
|
|
|
|
.info-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding-bottom: 10px;
|
|
border-bottom: 1px solid #222222;
|
|
}
|
|
|
|
.info-item:last-child {
|
|
border-bottom: none;
|
|
padding-bottom: 0;
|
|
}
|
|
|
|
.info-label {
|
|
color: #a0a0a0;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.info-value {
|
|
color: #ffffff;
|
|
font-weight: 600;
|
|
font-size: 15px;
|
|
}
|
|
|
|
/* Цвета статусов */
|
|
.status-connected {
|
|
color: #00cc66;
|
|
background-color: rgba(0, 204, 102, 0.1);
|
|
padding: 4px 8px;
|
|
border-radius: 4px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.status-disconnected {
|
|
color: #ff3333;
|
|
background-color: rgba(255, 51, 51, 0.1);
|
|
padding: 4px 8px;
|
|
border-radius: 4px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
/* ==========================================================================
|
|
АДАПТИВНОСТЬ
|
|
========================================================================== */
|
|
@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-row-three {
|
|
flex-direction: column;
|
|
gap: 0;
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.checkbox-group {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.submit-btn {
|
|
padding: 12px 10px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.info-item {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 6px;
|
|
}
|
|
}
|