Files
go-service/web/css/style.css
2026-05-01 10:18:39 +03:00

199 lines
2.8 KiB
CSS

* {
box-sizing: border-box;
}
body {
margin: 0;
font-family: monospace;
background: #050805;
color: #00ff88;
padding: 12px;
}
h1 {
text-align: center;
font-size: 22px;
margin: 0 0 15px;
}
/* ===== GRID ===== */
.grid {
display: grid;
grid-template-columns: 1fr;
gap: 12px;
}
/* Desktop */
@media (min-width: 900px) {
.grid {
grid-template-columns: 1fr 1fr;
}
.wide {
grid-column: span 2;
}
}
/* ===== CARD ===== */
.card {
border: 1px solid #00ff88;
border-radius: 10px;
padding: 14px;
background: rgba(0,255,136,0.05);
overflow: hidden;
}
.card h3 {
margin: 0 0 10px;
font-size: 18px;
}
/* ===== STATUS ===== */
#status {
font-size: 28px;
font-weight: bold;
margin-bottom: 8px;
}
#meta {
font-size: 14px;
opacity: 0.8;
word-break: break-word;
}
/* ===== LATEST ===== */
#latest {
font-size: 36px;
font-weight: bold;
margin-bottom: 12px;
}
/* ===== BITS ===== */
#bits {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 8px;
}
.bit {
height: 52px;
border: 1px solid #00ff88;
border-radius: 8px;
display: flex;
justify-content: center;
align-items: center;
font-size: 22px;
font-weight: bold;
}
.bit.on {
background: #00ff88;
color: #000;
}
/* Tablet/Desktop */
@media (min-width: 700px) {
#bits {
grid-template-columns: repeat(8, 1fr);
}
}
/* ===== HISTORY ===== */
#history {
font-size: 13px;
line-height: 1.35;
max-height: 420px;
overflow-y: auto;
white-space: nowrap;
padding-right: 4px;
}
/* Desktop */
@media (min-width: 900px) {
#history {
font-size: 12px;
max-height: 520px;
}
}
/* ===== PHONE ===== */
@media (max-width: 500px) {
h1 {
font-size: 18px;
}
#status {
font-size: 22px;
}
#latest {
font-size: 30px;
}
.bit {
height: 44px;
font-size: 18px;
}
#history {
font-size: 16px;
line-height: 1.5;
max-height: 55vh;
}
}
/* ===== PROGRESS BARS ===== */
.progress-row {
margin-bottom: 16px;
}
.progress-label {
font-size: 16px;
margin-bottom: 6px;
color: #ffffff;
opacity: 0.9;
}
.progress {
width: 100%;
height: 34px;
padding: 6px;
border: 3px solid #8a8a8a;
background: #222;
box-shadow:
inset 0 0 6px rgba(255,255,255,0.15),
0 0 4px rgba(0,0,0,0.8);
}
.fill {
height: 100%;
width: 0%;
background: #e6852d;
box-shadow:
inset 0 0 4px rgba(255,255,255,0.2),
0 0 6px rgba(230,133,45,0.5);
transition: width 0.25s linear;
}
/* mobile */
@media (max-width: 500px) {
.progress {
height: 30px;
padding: 5px;
}
.progress-label {
font-size: 15px;
}
}