Files
go-service/cmd/server/web/css/cards.css
2026-06-18 10:39:34 +03:00

89 lines
1.4 KiB
CSS

/* ===== CARD ===== */
.card {
border: 1px solid #00ff88;
border-radius: 10px;
padding: 14px;
background: rgba(0,255,136,0.05);
overflow: hidden;
height: 100%;
display: flex;
flex-direction: column;
}
.card h3 {
margin: 0 0 10px;
font-size: 18px;
}
/* ===== STATUS ===== */
#status {
font-size: 28px;
font-weight: bold;
margin-bottom: 8px;
}
.status-ok {
color: #00ff88 !important;
}
.status-lost {
color: #ffffff !important;
animation: blink 1.5s infinite;
}
.status-error {
color: #ff4444 !important;
}
@keyframes blink {
0%, 100% { opacity: 1; }
50% { opacity: 0.2; }
}
/* ===== META ===== */
#meta {
font-size: 14px;
opacity: 0.8;
word-break: break-word;
}
/* ===== ACCORDION ===== */
.accordion-header {
cursor: pointer;
user-select: none;
padding: 10px 0;
margin: 0;
}
.accordion-header:hover {
opacity: 0.7;
}
.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;
}
/* ===== LAST BYTE ===== */
#last-byte {
font-size: 18px;
font-weight: bold;
color: #00ff88;
}
/* ===== HISTORY ===== */
#history {
font-size: 13px;
line-height: 1.35;
max-height: 420px;
overflow-y: auto;
white-space: nowrap;
padding-right: 4px;
margin: 0;
}