Spaces:
Paused
Paused
dark console theme
Browse files- web/src/styles.css +128 -0
web/src/styles.css
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
* { box-sizing: border-box; }
|
| 2 |
+
html, body, #root { height: 100%; margin: 0; }
|
| 3 |
+
body { font: 14px/1.45 system-ui, -apple-system, sans-serif; background: #0f172a; color: #e2e8f0; }
|
| 4 |
+
|
| 5 |
+
.app {
|
| 6 |
+
display: grid;
|
| 7 |
+
grid-template-columns: 380px 1fr;
|
| 8 |
+
grid-template-rows: 48px 1fr;
|
| 9 |
+
height: 100%;
|
| 10 |
+
}
|
| 11 |
+
|
| 12 |
+
header {
|
| 13 |
+
grid-column: 1 / 3; grid-row: 1;
|
| 14 |
+
display: flex; align-items: center; gap: 12px;
|
| 15 |
+
padding: 0 14px;
|
| 16 |
+
background: #1e293b; border-bottom: 1px solid #334155;
|
| 17 |
+
}
|
| 18 |
+
.brand { font-weight: 700; margin-right: auto; }
|
| 19 |
+
.conn { font-size: 12px; padding: 2px 10px; border-radius: 999px; }
|
| 20 |
+
.conn.on { background: #064e3b; color: #6ee7b7; }
|
| 21 |
+
.conn.off { background: #7f1d1d; color: #fca5a5; }
|
| 22 |
+
|
| 23 |
+
aside {
|
| 24 |
+
grid-column: 1; grid-row: 2;
|
| 25 |
+
overflow-y: auto; padding: 10px;
|
| 26 |
+
display: flex; flex-direction: column; gap: 10px;
|
| 27 |
+
border-right: 1px solid #334155;
|
| 28 |
+
}
|
| 29 |
+
.map { grid-column: 2; grid-row: 2; height: 100%; background: #0b1220; }
|
| 30 |
+
|
| 31 |
+
.panel { background: #1e293b; border: 1px solid #334155; border-radius: 10px; padding: 12px; }
|
| 32 |
+
.panel h2 { margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #94a3b8; }
|
| 33 |
+
.panel h3 { margin: 14px 0 8px; font-size: 13px; color: #cbd5e1; }
|
| 34 |
+
|
| 35 |
+
.muted { color: #94a3b8; }
|
| 36 |
+
.small { font-size: 12px; }
|
| 37 |
+
.error { color: #fca5a5; font-size: 13px; }
|
| 38 |
+
|
| 39 |
+
button {
|
| 40 |
+
background: #2563eb; color: #fff; border: 0; border-radius: 8px;
|
| 41 |
+
padding: 8px 12px; cursor: pointer; font: inherit;
|
| 42 |
+
}
|
| 43 |
+
button:hover:not(:disabled) { filter: brightness(1.12); }
|
| 44 |
+
button:disabled { opacity: .45; cursor: default; }
|
| 45 |
+
button.secondary { background: #334155; }
|
| 46 |
+
button.small-btn { padding: 3px 8px; font-size: 12px; }
|
| 47 |
+
|
| 48 |
+
input, select {
|
| 49 |
+
background: #0f172a; color: #e2e8f0;
|
| 50 |
+
border: 1px solid #334155; border-radius: 8px;
|
| 51 |
+
padding: 8px; font: inherit; width: 100%; margin-bottom: 8px;
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
+
table { width: 100%; border-collapse: collapse; font-size: 13px; }
|
| 55 |
+
th { text-align: left; color: #94a3b8; font-weight: 600; font-size: 11px; text-transform: uppercase; }
|
| 56 |
+
th, td { padding: 6px 6px 6px 0; border-bottom: 1px solid #334155; vertical-align: top; }
|
| 57 |
+
|
| 58 |
+
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #475569; }
|
| 59 |
+
.dot.online { background: #22c55e; }
|
| 60 |
+
|
| 61 |
+
.chip-label { color: var(--c, #64748b); font-weight: 600; font-size: 12px; }
|
| 62 |
+
|
| 63 |
+
.badge {
|
| 64 |
+
display: inline-block; min-width: 20px; text-align: center;
|
| 65 |
+
background: #dc2626; color: #fff; border-radius: 999px;
|
| 66 |
+
font-size: 11px; padding: 2px 6px;
|
| 67 |
+
}
|
| 68 |
+
|
| 69 |
+
.sos-item {
|
| 70 |
+
display: flex; justify-content: space-between; align-items: center; gap: 8px;
|
| 71 |
+
padding: 8px; border-radius: 8px; margin-bottom: 6px;
|
| 72 |
+
background: rgba(127, 29, 29, .35); border-left: 3px solid #ef4444;
|
| 73 |
+
}
|
| 74 |
+
.sos-item.ack { background: rgba(120, 53, 15, .35); border-left-color: #f59e0b; }
|
| 75 |
+
.sos-item.resolved { background: #0f172a; border-left-color: #475569; opacity: .7; }
|
| 76 |
+
|
| 77 |
+
.tabs { display: flex; gap: 6px; }
|
| 78 |
+
.tabs button { flex: 1; background: #1e293b; color: #94a3b8; border: 1px solid #334155; }
|
| 79 |
+
.tabs button.active { background: #2563eb; color: #fff; border-color: #2563eb; }
|
| 80 |
+
|
| 81 |
+
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
|
| 82 |
+
.chip {
|
| 83 |
+
background: #0f172a; border: 1px solid var(--c, #334155);
|
| 84 |
+
color: var(--c, #e2e8f0); border-radius: 999px; padding: 4px 12px;
|
| 85 |
+
}
|
| 86 |
+
.chip.active { background: var(--c, #2563eb); color: #fff; }
|
| 87 |
+
|
| 88 |
+
.floor {
|
| 89 |
+
min-height: 42px; display: flex; align-items: center;
|
| 90 |
+
padding: 8px 10px; margin-bottom: 10px;
|
| 91 |
+
background: #0f172a; border-radius: 8px;
|
| 92 |
+
}
|
| 93 |
+
.talking { color: #f87171; font-weight: 600; }
|
| 94 |
+
|
| 95 |
+
.ptt {
|
| 96 |
+
width: 100%; padding: 20px;
|
| 97 |
+
font-size: 16px; font-weight: 700; border-radius: 12px;
|
| 98 |
+
background: #dc2626; user-select: none; touch-action: none;
|
| 99 |
+
}
|
| 100 |
+
.ptt:active { background: #991b1b; }
|
| 101 |
+
|
| 102 |
+
.row { display: flex; gap: 8px; }
|
| 103 |
+
|
| 104 |
+
/* leaflet markers */
|
| 105 |
+
.marker-wrap { background: none; border: none; }
|
| 106 |
+
.marker {
|
| 107 |
+
width: 14px; height: 14px; border-radius: 50%;
|
| 108 |
+
background: var(--c, #3b82f6);
|
| 109 |
+
border: 2px solid #e2e8f0;
|
| 110 |
+
box-shadow: 0 0 4px rgba(0, 0, 0, .6);
|
| 111 |
+
}
|
| 112 |
+
.marker.offline { background: #475569; opacity: .55; }
|
| 113 |
+
.marker.sos { border-color: #ef4444; animation: pulse 1s infinite; }
|
| 114 |
+
@keyframes pulse {
|
| 115 |
+
0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .7); }
|
| 116 |
+
70% { box-shadow: 0 0 0 14px rgba(239, 68, 68, 0); }
|
| 117 |
+
100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
|
| 118 |
+
}
|
| 119 |
+
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: #1e293b; color: #e2e8f0; }
|
| 120 |
+
|
| 121 |
+
/* login */
|
| 122 |
+
.login-wrap { height: 100%; display: flex; align-items: center; justify-content: center; }
|
| 123 |
+
.login {
|
| 124 |
+
width: 320px; padding: 24px;
|
| 125 |
+
background: #1e293b; border: 1px solid #334155; border-radius: 12px;
|
| 126 |
+
display: flex; flex-direction: column;
|
| 127 |
+
}
|
| 128 |
+
.login h1 { font-size: 18px; margin: 0 0 16px; text-align: center; }
|