256 lines
6.6 KiB
CSS
256 lines
6.6 KiB
CSS
|
|
/* Firmware uploader (single-button wizard) styles. */
|
||
|
|
.uploader-wrap {
|
||
|
|
width: 100%;
|
||
|
|
max-width: 760px;
|
||
|
|
margin: 0 auto;
|
||
|
|
padding: 24px;
|
||
|
|
flex: 1 1 auto;
|
||
|
|
}
|
||
|
|
|
||
|
|
.uploader-header { margin-bottom: 20px; }
|
||
|
|
.uploader-header h1 { margin: 0 0 4px; font-size: 26px; }
|
||
|
|
.uploader-header .subtitle { color: var(--text-dim); margin: 0; }
|
||
|
|
|
||
|
|
.flash-card {
|
||
|
|
background: var(--bg-elevated);
|
||
|
|
border: 1px solid var(--border);
|
||
|
|
border-radius: var(--radius-lg);
|
||
|
|
padding: 24px;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* flow steps */
|
||
|
|
.flash-flow {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 6px;
|
||
|
|
margin-bottom: 20px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.flow-item { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
|
||
|
|
|
||
|
|
.flow-dot {
|
||
|
|
width: 26px;
|
||
|
|
height: 26px;
|
||
|
|
border-radius: 50%;
|
||
|
|
border: 2px solid var(--border);
|
||
|
|
color: var(--text-dim);
|
||
|
|
display: inline-flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
font-weight: 800;
|
||
|
|
font-size: 12px;
|
||
|
|
background: var(--bg-input);
|
||
|
|
flex: 0 0 auto;
|
||
|
|
}
|
||
|
|
|
||
|
|
.flow-item .flow-label { font-weight: 600; color: var(--text-dim); font-size: 13px; }
|
||
|
|
|
||
|
|
.flow-item.active .flow-dot { border-color: var(--accent); background: var(--accent); color: #0b1220; }
|
||
|
|
.flow-item.active .flow-label { color: var(--text); }
|
||
|
|
.flow-item.done .flow-dot { border-color: var(--ok); background: var(--ok); color: #0b1220; }
|
||
|
|
.flow-item.done .flow-label { color: var(--ok); }
|
||
|
|
|
||
|
|
.flow-connector { flex: 1 1 auto; height: 2px; background: var(--border); min-width: 20px; }
|
||
|
|
.flow-item.done + .flow-connector { background: var(--ok); }
|
||
|
|
|
||
|
|
/* board selector */
|
||
|
|
.board-grid {
|
||
|
|
display: grid;
|
||
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
||
|
|
gap: 12px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.board-option {
|
||
|
|
display: block;
|
||
|
|
background: var(--bg-input);
|
||
|
|
border: 1px solid var(--border);
|
||
|
|
border-radius: var(--radius);
|
||
|
|
padding: 14px;
|
||
|
|
cursor: pointer;
|
||
|
|
transition: border-color 0.12s, background 0.12s;
|
||
|
|
}
|
||
|
|
|
||
|
|
.board-option:hover { border-color: var(--hover-border); }
|
||
|
|
.board-option.selected { border-color: var(--accent); background: var(--row-selected); }
|
||
|
|
|
||
|
|
.board-option input { display: none; }
|
||
|
|
|
||
|
|
.board-option .board-name { font-weight: 700; display: block; margin-bottom: 4px; }
|
||
|
|
.board-option .board-desc { font-size: 12px; color: var(--text-dim); }
|
||
|
|
|
||
|
|
/* firmware source */
|
||
|
|
.firmware-row {
|
||
|
|
display: flex;
|
||
|
|
gap: 12px;
|
||
|
|
align-items: flex-start;
|
||
|
|
flex-wrap: wrap;
|
||
|
|
}
|
||
|
|
|
||
|
|
.firmware-row .hint { font-size: 12px; color: var(--text-dim); margin-top: 6px; }
|
||
|
|
|
||
|
|
/* flash area */
|
||
|
|
.flash-area { margin-top: 8px; }
|
||
|
|
|
||
|
|
.flash-status {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 12px;
|
||
|
|
flex-wrap: wrap;
|
||
|
|
min-height: 40px;
|
||
|
|
margin-bottom: 4px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.flash-status .status-text { font-size: 15px; font-weight: 600; }
|
||
|
|
.flash-status .status-text.err { color: var(--danger); }
|
||
|
|
.flash-status .status-text.ok { color: var(--ok); }
|
||
|
|
|
||
|
|
.spinner {
|
||
|
|
width: 18px;
|
||
|
|
height: 18px;
|
||
|
|
border: 3px solid var(--border);
|
||
|
|
border-top-color: var(--accent);
|
||
|
|
border-radius: 50%;
|
||
|
|
animation: spin 0.8s linear infinite;
|
||
|
|
flex: 0 0 auto;
|
||
|
|
}
|
||
|
|
|
||
|
|
@keyframes spin { to { transform: rotate(360deg); } }
|
||
|
|
|
||
|
|
.open-obi-btn {
|
||
|
|
display: block;
|
||
|
|
text-align: center;
|
||
|
|
background: var(--ok);
|
||
|
|
border: 1px solid var(--ok);
|
||
|
|
color: #fff;
|
||
|
|
font-size: 16px;
|
||
|
|
font-weight: 700;
|
||
|
|
padding: 13px 26px;
|
||
|
|
border-radius: var(--radius);
|
||
|
|
text-decoration: none;
|
||
|
|
margin-top: 16px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.open-obi-btn:hover { background: var(--ok); filter: brightness(1.1); }
|
||
|
|
.open-obi-btn[hidden] { display: none; }
|
||
|
|
|
||
|
|
/* details / log */
|
||
|
|
.advanced {
|
||
|
|
margin-top: 16px;
|
||
|
|
background: var(--bg-input);
|
||
|
|
border: 1px solid var(--border);
|
||
|
|
border-radius: var(--radius);
|
||
|
|
padding: 12px 14px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.advanced > summary {
|
||
|
|
cursor: pointer;
|
||
|
|
font-size: 12px;
|
||
|
|
font-weight: 700;
|
||
|
|
text-transform: uppercase;
|
||
|
|
letter-spacing: 0.04em;
|
||
|
|
color: var(--text-dim);
|
||
|
|
user-select: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
.advanced > summary:hover { color: var(--text); }
|
||
|
|
|
||
|
|
.advanced .advanced-body { margin-top: 12px; }
|
||
|
|
|
||
|
|
.requirements-note {
|
||
|
|
margin-top: 16px;
|
||
|
|
font-size: 13px;
|
||
|
|
color: var(--text-dim);
|
||
|
|
text-align: center;
|
||
|
|
}
|
||
|
|
|
||
|
|
.requirements-note a { color: var(--accent); }
|
||
|
|
|
||
|
|
/* ============================================================
|
||
|
|
Aurora / glass UI layer: firmware uploader (ui-flashy branch).
|
||
|
|
============================================================ */
|
||
|
|
.flash-card {
|
||
|
|
background: linear-gradient(var(--glass-strong), var(--glass-strong)) padding-box,
|
||
|
|
var(--grad-soft) border-box;
|
||
|
|
border: 1px solid transparent;
|
||
|
|
backdrop-filter: blur(14px);
|
||
|
|
-webkit-backdrop-filter: blur(14px);
|
||
|
|
box-shadow: 0 18px 50px -28px var(--glow-1);
|
||
|
|
}
|
||
|
|
|
||
|
|
.flow-connector { background: color-mix(in srgb, var(--border) 85%, transparent); }
|
||
|
|
|
||
|
|
.flow-item.active .flow-dot {
|
||
|
|
background: var(--grad);
|
||
|
|
border-color: transparent;
|
||
|
|
color: #fff;
|
||
|
|
box-shadow: 0 0 14px var(--glow-1);
|
||
|
|
animation: dot-pulse 2.4s ease-in-out infinite;
|
||
|
|
}
|
||
|
|
|
||
|
|
.flow-item.done .flow-dot {
|
||
|
|
background: linear-gradient(120deg, var(--ok), #34d399);
|
||
|
|
border-color: transparent;
|
||
|
|
color: #fff;
|
||
|
|
box-shadow: 0 0 14px color-mix(in srgb, var(--ok) 55%, transparent);
|
||
|
|
}
|
||
|
|
|
||
|
|
.flow-item.done + .flow-connector {
|
||
|
|
background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
|
||
|
|
}
|
||
|
|
|
||
|
|
.board-option {
|
||
|
|
background: var(--glass);
|
||
|
|
backdrop-filter: blur(10px);
|
||
|
|
-webkit-backdrop-filter: blur(10px);
|
||
|
|
border-color: color-mix(in srgb, var(--border) 80%, transparent);
|
||
|
|
transition: transform 0.25s var(--ease-out), border-color 0.25s ease,
|
||
|
|
box-shadow 0.3s ease, background 0.25s ease;
|
||
|
|
}
|
||
|
|
|
||
|
|
.board-option:hover {
|
||
|
|
transform: translateY(-3px);
|
||
|
|
border-color: color-mix(in srgb, var(--accent-2) 55%, transparent);
|
||
|
|
}
|
||
|
|
|
||
|
|
.board-option.selected {
|
||
|
|
border-color: transparent;
|
||
|
|
background: linear-gradient(
|
||
|
|
color-mix(in srgb, var(--row-selected) 70%, transparent),
|
||
|
|
color-mix(in srgb, var(--row-selected) 70%, transparent)) padding-box,
|
||
|
|
var(--grad-soft) border-box;
|
||
|
|
box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent-2) 40%, transparent),
|
||
|
|
0 10px 26px -16px var(--glow-1);
|
||
|
|
}
|
||
|
|
|
||
|
|
.spinner {
|
||
|
|
border-color: color-mix(in srgb, var(--border) 55%, transparent);
|
||
|
|
border-top-color: var(--accent-2);
|
||
|
|
box-shadow: 0 0 10px var(--glow-1);
|
||
|
|
}
|
||
|
|
|
||
|
|
.open-obi-btn {
|
||
|
|
background: linear-gradient(120deg, var(--ok), #2dd4bf);
|
||
|
|
border: none;
|
||
|
|
box-shadow: 0 10px 26px -12px color-mix(in srgb, var(--ok) 60%, transparent);
|
||
|
|
transition: transform 0.2s var(--ease-out), box-shadow 0.3s ease;
|
||
|
|
}
|
||
|
|
|
||
|
|
.open-obi-btn:hover {
|
||
|
|
background: linear-gradient(120deg, #34d399, #2dd4bf);
|
||
|
|
filter: none;
|
||
|
|
transform: translateY(-1px);
|
||
|
|
box-shadow: 0 14px 32px -14px color-mix(in srgb, var(--ok) 70%, transparent);
|
||
|
|
}
|
||
|
|
|
||
|
|
.advanced {
|
||
|
|
background: var(--glass);
|
||
|
|
backdrop-filter: blur(10px);
|
||
|
|
-webkit-backdrop-filter: blur(10px);
|
||
|
|
border-color: color-mix(in srgb, var(--border) 80%, transparent);
|
||
|
|
}
|
||
|
|
|
||
|
|
@keyframes dot-pulse {
|
||
|
|
0%, 100% { box-shadow: 0 0 0 0 var(--glow-1); }
|
||
|
|
50% { box-shadow: 0 0 0 7px transparent; }
|
||
|
|
}
|