383 lines
8.3 KiB
CSS
383 lines
8.3 KiB
CSS
/* Стили карточек, каналов, статусов и истории */
|
||
|
||
/* ===== CARD ===== */
|
||
.card {
|
||
border: 1px solid #00ff88;
|
||
border-radius: 10px;
|
||
padding: 14px;
|
||
background: rgba(0,255,136,0.05);
|
||
overflow: visible;
|
||
height: 100%;
|
||
display: flex;
|
||
flex-direction: column;
|
||
transition: all 0.3s ease;
|
||
}
|
||
.card:hover {
|
||
box-shadow: 0 0 30px rgba(0, 255, 136, 0.05);
|
||
}
|
||
.card h3 {
|
||
margin: 0 0 10px;
|
||
font-size: var(--font-size-lg);
|
||
font-family: var(--font-display);
|
||
letter-spacing: 0.1em;
|
||
font-weight: var(--font-weight-bold);
|
||
}
|
||
|
||
/* ===== СТАТУС ===== */
|
||
#status {
|
||
font-family: var(--font-tech);
|
||
font-size: var(--font-size-3xl);
|
||
font-weight: var(--font-weight-bold);
|
||
margin-bottom: 8px;
|
||
letter-spacing: 0.05em;
|
||
}
|
||
.status-ok {
|
||
color: #00ff88 !important;
|
||
text-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
|
||
}
|
||
.status-lost {
|
||
color: #ffffff !important;
|
||
animation: blink 1.5s infinite;
|
||
text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
|
||
}
|
||
.status-error {
|
||
color: #ff4444 !important;
|
||
text-shadow: 0 0 30px rgba(255, 68, 68, 0.3);
|
||
}
|
||
@keyframes blink {
|
||
0%, 100% { opacity: 1; }
|
||
50% { opacity: 0.2; }
|
||
}
|
||
|
||
/* ===== META ===== */
|
||
#meta {
|
||
font-family: var(--font-mono);
|
||
font-size: var(--font-size-base);
|
||
opacity: 0.8;
|
||
letter-spacing: 0.02em;
|
||
}
|
||
|
||
/* ===== АККОРДЕОН ===== */
|
||
.accordion-header {
|
||
cursor: pointer;
|
||
user-select: none;
|
||
padding: 10px 0;
|
||
margin: 0;
|
||
font-family: var(--font-display);
|
||
font-weight: var(--font-weight-bold);
|
||
letter-spacing: 0.05em;
|
||
transition: all 0.3s ease;
|
||
}
|
||
.accordion-header:hover {
|
||
opacity: 0.7;
|
||
text-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
|
||
}
|
||
.accordion-body {
|
||
max-height: 520px;
|
||
overflow: hidden;
|
||
transition: max-height 0.3s ease, opacity 0.3s ease;
|
||
}
|
||
.accordion-body.collapsed {
|
||
max-height: 0;
|
||
opacity: 0;
|
||
}
|
||
|
||
/* ===== ИСТОРИЯ ===== */
|
||
#history {
|
||
font-family: var(--font-mono);
|
||
font-size: var(--font-size-sm);
|
||
line-height: 1.35;
|
||
max-height: 400px;
|
||
overflow-y: auto;
|
||
overflow-x: auto;
|
||
white-space: nowrap;
|
||
padding-right: 4px;
|
||
margin: 0;
|
||
letter-spacing: 0.02em;
|
||
overscroll-behavior: contain;
|
||
-webkit-overflow-scrolling: touch;
|
||
}
|
||
#history::-webkit-scrollbar {
|
||
width: 6px;
|
||
height: 6px;
|
||
}
|
||
#history::-webkit-scrollbar-track {
|
||
background: rgba(0, 255, 136, 0.05);
|
||
}
|
||
#history::-webkit-scrollbar-thumb {
|
||
background: #00ff88;
|
||
border-radius: 3px;
|
||
}
|
||
|
||
/* ===== КАНАЛЫ ===== */
|
||
.channels-header {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
margin-bottom: 10px;
|
||
flex-wrap: wrap;
|
||
gap: 8px;
|
||
}
|
||
.channels-header h3 {
|
||
margin: 0;
|
||
font-size: var(--font-size-lg);
|
||
}
|
||
.channels-controls {
|
||
display: flex;
|
||
gap: 4px;
|
||
}
|
||
.channels-toggle-all {
|
||
background: rgba(0, 255, 136, 0.08);
|
||
border: 1px solid rgba(0, 255, 136, 0.2);
|
||
color: #00ff88;
|
||
padding: 4px 10px;
|
||
border-radius: 4px;
|
||
cursor: pointer;
|
||
font-size: 14px;
|
||
font-family: var(--font-mono);
|
||
transition: all 0.2s ease;
|
||
line-height: 1.4;
|
||
min-height: 30px;
|
||
}
|
||
.channels-toggle-all:hover {
|
||
background: rgba(0, 255, 136, 0.15);
|
||
border-color: #00ff88;
|
||
}
|
||
.channels-toggle-all:active {
|
||
transform: scale(0.95);
|
||
}
|
||
.channels-grid {
|
||
display: grid;
|
||
grid-template-columns: 1fr 1fr;
|
||
gap: 6px;
|
||
overscroll-behavior: contain;
|
||
max-height: 500px;
|
||
overflow-y: auto;
|
||
overflow-x: visible;
|
||
-webkit-overflow-scrolling: touch;
|
||
padding-right: 4px;
|
||
}
|
||
.channels-grid::-webkit-scrollbar {
|
||
width: 6px;
|
||
height: 6px;
|
||
}
|
||
.channels-grid::-webkit-scrollbar-track {
|
||
background: rgba(0, 255, 136, 0.05);
|
||
}
|
||
.channels-grid::-webkit-scrollbar-thumb {
|
||
background: rgba(0, 255, 136, 0.3);
|
||
border-radius: 3px;
|
||
}
|
||
|
||
/* Карточка канала */
|
||
.channel-item {
|
||
background: rgba(0, 255, 136, 0.03);
|
||
border: 1px solid rgba(0, 255, 136, 0.1);
|
||
border-radius: 6px;
|
||
overflow: hidden;
|
||
transition: all 0.2s ease;
|
||
}
|
||
.channel-item:hover {
|
||
border-color: rgba(0, 255, 136, 0.25);
|
||
background: rgba(0, 255, 136, 0.06);
|
||
}
|
||
.channel-header {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
padding: 6px 10px;
|
||
cursor: pointer;
|
||
user-select: none;
|
||
transition: background 0.2s;
|
||
}
|
||
.channel-header:hover {
|
||
background: rgba(0, 255, 136, 0.05);
|
||
}
|
||
.channel-label {
|
||
font-size: var(--font-size-sm);
|
||
font-weight: var(--font-weight-semibold);
|
||
color: #88ffbb;
|
||
font-family: var(--font-tech);
|
||
}
|
||
.channel-value {
|
||
font-size: var(--font-size-base);
|
||
font-weight: var(--font-weight-bold);
|
||
color: #00ff88;
|
||
font-family: var(--font-tech);
|
||
min-width: 24px;
|
||
text-align: right;
|
||
}
|
||
.channel-toggle {
|
||
color: #666;
|
||
font-size: 10px;
|
||
transition: transform 0.3s;
|
||
margin-left: 6px;
|
||
}
|
||
.channel-toggle.collapsed {
|
||
transform: rotate(-90deg);
|
||
}
|
||
.channel-body {
|
||
padding: 0 10px 10px 10px;
|
||
transition: all 0.3s ease;
|
||
}
|
||
.channel-body.hidden {
|
||
display: none;
|
||
}
|
||
.channel-progress {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
}
|
||
.channel-progress .progress {
|
||
flex: 1;
|
||
height: 8px;
|
||
padding: 2px;
|
||
border-width: 2px;
|
||
}
|
||
.channel-progress .progress .fill {
|
||
height: 100%;
|
||
background: linear-gradient(90deg, #0a0, #0f0, #ff0, #f80);
|
||
border-radius: 2px;
|
||
transition: width 0.15s ease;
|
||
}
|
||
.channel-stats {
|
||
font-size: var(--font-size-xs);
|
||
color: #666;
|
||
margin-top: 4px;
|
||
font-family: var(--font-mono);
|
||
letter-spacing: 0.02em;
|
||
}
|
||
|
||
/* ===== ЗВУК И ВЫСОТА ===== */
|
||
.card:has(#bar2) .fill,
|
||
.card:has(#bar3) .fill {
|
||
background: linear-gradient(90deg, #0a0, #0f0, #ff0, #f80);
|
||
transition: width 0.15s ease;
|
||
}
|
||
.card:has(#bar2) .progress,
|
||
.card:has(#bar3) .progress {
|
||
height: 34px;
|
||
padding: 6px;
|
||
border-width: 3px;
|
||
}
|
||
|
||
/* ===== АДАПТИВ ===== */
|
||
@media (max-width: 768px) {
|
||
.channels-grid {
|
||
grid-template-columns: 1fr;
|
||
gap: 4px;
|
||
max-height: none;
|
||
overflow-y: visible;
|
||
overscroll-behavior: auto;
|
||
}
|
||
.channels-header {
|
||
flex-direction: column;
|
||
align-items: stretch;
|
||
gap: 6px;
|
||
}
|
||
.channels-controls {
|
||
justify-content: flex-end;
|
||
}
|
||
.channel-label {
|
||
font-size: var(--font-size-xs);
|
||
}
|
||
.channel-value {
|
||
font-size: var(--font-size-sm);
|
||
}
|
||
.channel-progress .progress {
|
||
height: 6px;
|
||
padding: 1px;
|
||
}
|
||
#history {
|
||
max-height: 300px;
|
||
}
|
||
.card:has(#bar2) .progress,
|
||
.card:has(#bar3) .progress {
|
||
height: 28px;
|
||
padding: 4px;
|
||
border-width: 2px;
|
||
}
|
||
}
|
||
|
||
@media (max-width: 480px) {
|
||
.channels-grid {
|
||
gap: 3px;
|
||
}
|
||
.channel-header {
|
||
padding: 4px 8px;
|
||
}
|
||
.channel-body {
|
||
padding: 0 8px 8px 8px;
|
||
}
|
||
.channel-stats {
|
||
font-size: 9px;
|
||
}
|
||
#history {
|
||
max-height: 200px;
|
||
font-size: var(--font-size-xs);
|
||
}
|
||
.card:has(#bar2) .progress,
|
||
.card:has(#bar3) .progress {
|
||
height: 24px;
|
||
padding: 3px;
|
||
border-width: 2px;
|
||
}
|
||
}
|
||
|
||
/* ===== АНИМАЦИЯ ===== */
|
||
.channel-item.updating .channel-value {
|
||
animation: pulse-value 0.15s ease;
|
||
}
|
||
@keyframes pulse-value {
|
||
0%, 100% { transform: scale(1); }
|
||
50% { transform: scale(1.2); color: #ff0; }
|
||
}
|
||
|
||
/* Карточки на десктопе */
|
||
@media (min-width: 769px) {
|
||
.card {
|
||
max-height: 100%;
|
||
overflow: visible;
|
||
}
|
||
.channels-card {
|
||
max-height: 600px;
|
||
overflow: hidden;
|
||
}
|
||
.channels-card .channels-grid {
|
||
max-height: 500px;
|
||
overflow-y: auto;
|
||
}
|
||
.history-card {
|
||
max-height: 500px;
|
||
overflow: hidden;
|
||
}
|
||
.history-card #history {
|
||
max-height: 400px;
|
||
overflow-y: auto;
|
||
}
|
||
}
|
||
|
||
@media (max-width: 768px) {
|
||
.card {
|
||
overflow: visible !important;
|
||
height: auto !important;
|
||
min-height: unset;
|
||
max-height: none !important;
|
||
}
|
||
.channels-card {
|
||
max-height: none !important;
|
||
overflow: visible !important;
|
||
}
|
||
.channels-card .channels-grid {
|
||
max-height: none !important;
|
||
overflow-y: visible !important;
|
||
}
|
||
.history-card {
|
||
max-height: none !important;
|
||
overflow: visible !important;
|
||
}
|
||
.history-card #history {
|
||
max-height: 300px;
|
||
overflow-y: auto;
|
||
}
|
||
} |