mirror of
https://github.com/TaterTotterson/microWakeWord-Trainer-Nvidia-Docker.git
synced 2026-08-12 07:55:33 -06:00
221 lines
20 KiB
CSS
221 lines
20 KiB
CSS
:root {
|
|
color-scheme: dark;
|
|
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
color: #f3f1ee;
|
|
background: #0d0d0e;
|
|
font-synthesis: none;
|
|
--bg: #0d0d0e;
|
|
--surface: rgba(29, 29, 31, .9);
|
|
--surface-solid: #1c1c1e;
|
|
--surface-2: rgba(43, 43, 46, .8);
|
|
--line: rgba(255, 255, 255, .1);
|
|
--line-strong: rgba(255, 255, 255, .18);
|
|
--text: #f3f1ee;
|
|
--muted: #aaa6a0;
|
|
--orange: #ff9134;
|
|
--orange-2: #ffb267;
|
|
--violet: #77736e;
|
|
--blue: #a8a5a1;
|
|
--green: #44dda5;
|
|
--red: #ff6c7d;
|
|
--yellow: #ffc561;
|
|
--shadow: 0 24px 70px rgba(0, 0, 0, .32);
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
html { min-height: 100%; background: var(--bg); }
|
|
body { min-width: 320px; min-height: 100vh; margin: 0; background: radial-gradient(circle at 78% -10%, rgba(255, 145, 52, .08), transparent 34%), linear-gradient(145deg, #121213, #0d0d0e 60%, #151413); }
|
|
button, input, select { font: inherit; }
|
|
button, .button {
|
|
min-height: 42px; padding: 9px 16px; border: 1px solid var(--line-strong); border-radius: 12px;
|
|
color: var(--text); background: rgba(48, 48, 51, .86); font-weight: 700; cursor: pointer;
|
|
transition: border-color .18s ease, transform .18s ease, background .18s ease, box-shadow .18s ease;
|
|
}
|
|
button:hover:not(:disabled), .button:hover:not(:disabled) { transform: translateY(-1px); border-color: rgba(255, 145, 52, .55); background: rgba(62, 61, 61, .94); }
|
|
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid rgba(255, 145, 52, .88); outline-offset: 2px; }
|
|
button:disabled { opacity: .43; cursor: not-allowed; }
|
|
.button.primary { color: #18100a; border-color: #ffad63; background: linear-gradient(135deg, var(--orange), #ffb45f); box-shadow: 0 10px 28px rgba(255, 126, 35, .19); }
|
|
.button.primary:hover:not(:disabled) { background: linear-gradient(135deg, #ffa04c, #ffc078); }
|
|
.button.danger { border-color: rgba(255, 108, 125, .54); color: #fff; background: rgba(255, 78, 101, .2); }
|
|
.button.ghost { background: transparent; }
|
|
.button.large { min-width: min(100%, 360px); min-height: 54px; font-size: 16px; }
|
|
|
|
.app-shell { position: relative; width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: 30px 0 80px; }
|
|
.ambient { position: fixed; z-index: -1; width: 380px; height: 380px; border-radius: 50%; filter: blur(95px); opacity: .16; pointer-events: none; }
|
|
.ambient-one { top: -160px; right: 4vw; background: var(--violet); }
|
|
.ambient-two { bottom: -180px; left: -70px; background: var(--orange); }
|
|
.app-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 24px; }
|
|
.brand { display: flex; align-items: center; gap: 16px; }
|
|
.brand-mark { position: relative; display: grid; place-items: center; overflow: hidden; flex: 0 0 auto; width: 58px; height: 58px; border: 1px solid rgba(255, 164, 82, .4); border-radius: 19px; background: radial-gradient(circle at 50% 36%, #383330, #191819 72%); box-shadow: inset 0 1px rgba(255,255,255,.12), 0 14px 36px rgba(0,0,0,.25); }
|
|
.brand-mark img { display: block; width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 5px 9px rgba(0, 0, 0, .36)); }
|
|
.brand h1, .hero h2, .panel h3, .modal h2 { font-family: ui-rounded, "SF Pro Rounded", system-ui, sans-serif; }
|
|
.brand h1 { margin: 2px 0 1px; font-size: clamp(22px, 3vw, 31px); letter-spacing: -.035em; }
|
|
.brand p, .hero p, .panel p, .modal p { margin: 0; color: var(--muted); line-height: 1.55; }
|
|
.brand p { font-size: 13px; }
|
|
.eyebrow { color: var(--orange-2); font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
|
|
.header-status { display: flex; align-items: center; gap: 10px; }
|
|
.live-dot, .session-chip { display: inline-flex; align-items: center; min-height: 34px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(24, 24, 25, .78); font-size: 12px; font-weight: 700; }
|
|
.live-dot i { width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(68,221,165,.1); }
|
|
|
|
.tabs { position: sticky; top: 12px; z-index: 20; display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; padding: 6px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(20, 20, 21, .9); box-shadow: 0 14px 36px rgba(0,0,0,.2); backdrop-filter: blur(18px); }
|
|
.tabs button { position: relative; min-height: 42px; padding: 8px; border-color: transparent; color: var(--muted); background: transparent; font-size: 13px; }
|
|
.tabs button.active { color: #fff; border-color: rgba(255, 152, 65, .42); background: linear-gradient(135deg, rgba(255,145,52,.22), rgba(92,89,86,.22)); box-shadow: inset 0 1px rgba(255,255,255,.05); }
|
|
.tabs button b { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 7px; padding: 0 4px; border-radius: 99px; color: #23120b; background: var(--orange); font-size: 10px; }
|
|
.tab-short { display: none; }
|
|
|
|
.main-content { display: grid; gap: 16px; }
|
|
.hero, .panel, .native-notice { border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
|
|
.hero { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; min-height: 210px; padding: 34px; }
|
|
.hero::after { content: ""; position: absolute; right: -45px; bottom: -95px; width: 290px; height: 290px; border-radius: 50%; background: radial-gradient(circle, rgba(255,145,52,.22), transparent 67%); }
|
|
.auto-hero::after { background: radial-gradient(circle, rgba(255,145,52,.16), transparent 67%); }
|
|
.capture-hero::after { background: radial-gradient(circle, rgba(190,184,177,.12), transparent 67%); }
|
|
.firmware-hero::after { background: radial-gradient(circle, rgba(255,145,52,.13), transparent 67%); }
|
|
.hero > * { position: relative; z-index: 1; }
|
|
.hero h2 { max-width: 760px; margin: 8px 0; font-size: clamp(27px, 5vw, 48px); line-height: 1.02; letter-spacing: -.05em; }
|
|
.hero p { max-width: 720px; font-size: 15px; }
|
|
.hero-pill { flex: 0 0 auto; }
|
|
.step-row { display: grid; gap: 7px; min-width: 165px; }
|
|
.step-row span { display: flex; align-items: center; gap: 8px; color: #d5d1cc; font-size: 12px; font-weight: 700; }
|
|
.step-row b, .number { display: inline-grid; place-items: center; flex: 0 0 auto; width: 32px; height: 32px; border-radius: 11px; color: #26150b; background: linear-gradient(135deg, var(--orange), #ffc175); font-size: 12px; }
|
|
|
|
.panel { padding: 26px; }
|
|
.panel-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; margin-bottom: 23px; }
|
|
.panel-head h3 { margin: 0 0 3px; font-size: 20px; letter-spacing: -.025em; }
|
|
.panel-head p { font-size: 13px; }
|
|
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
|
|
.phrase-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
.field { display: grid; align-content: start; gap: 7px; }
|
|
.field > span { color: #ddd9d4; font-size: 12px; font-weight: 800; letter-spacing: .01em; }
|
|
.field.wide { grid-column: 1 / -1; }
|
|
.field input, .field select { width: 100%; min-height: 46px; padding: 10px 13px; border: 1px solid var(--line-strong); border-radius: 12px; color: var(--text); background: rgba(15, 15, 16, .82); }
|
|
.field select { appearance: auto; }
|
|
.field input:disabled, .field select:disabled { opacity: 1; cursor: not-allowed; color: #aaa7a3; border-color: rgba(151, 147, 142, .22); background: rgba(70, 69, 68, .72); -webkit-text-fill-color: #aaa7a3; }
|
|
.field small, .dropzone small, .progress-card small, .stack > small { color: var(--muted); font-size: 11px; line-height: 1.45; }
|
|
.row { display: flex; align-items: center; gap: 9px; }
|
|
.row.space { justify-content: space-between; }
|
|
.form-actions { margin-top: 16px; }
|
|
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
|
|
.stats article { display: grid; gap: 5px; min-height: 105px; padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: rgba(18, 18, 19, .62); }
|
|
.stats span { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
|
|
.stats strong { align-self: end; font-family: ui-rounded, "SF Pro Rounded", system-ui, sans-serif; font-size: 30px; }
|
|
.stats .format-value { font-size: 15px; line-height: 1.35; }
|
|
.train-action { display: grid; place-items: center; padding: 29px 0 19px; }
|
|
.panel-footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding-top: 17px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
|
|
|
|
.pill { display: inline-flex; align-items: center; width: fit-content; min-height: 29px; padding: 5px 10px; border: 1px solid var(--line-strong); border-radius: 999px; color: #d1cdc8; background: rgba(48, 47, 47, .74); font-size: 11px; font-weight: 800; white-space: nowrap; }
|
|
.pill.success { color: #8bf2cc; border-color: rgba(68,221,165,.35); background: rgba(36, 160, 118, .13); }
|
|
.pill.warning { color: #ffd58a; border-color: rgba(255,197,97,.36); background: rgba(214, 146, 36, .13); }
|
|
.pill.error { color: #ffabb5; border-color: rgba(255,108,125,.36); background: rgba(220, 68, 88, .13); }
|
|
.toggle-list { display: grid; gap: 9px; margin-bottom: 18px; }
|
|
.toggle-list.compact { margin: 15px 0 0; }
|
|
.toggle-list label { display: flex; align-items: flex-start; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: rgba(18, 18, 19, .56); cursor: pointer; }
|
|
.toggle-list input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--orange); }
|
|
.toggle-list label > span { display: grid; gap: 3px; }
|
|
.toggle-list small { color: var(--muted); line-height: 1.45; }
|
|
.link-row { display: flex; align-items: center; gap: 10px; margin-top: 15px; }
|
|
.action-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
|
|
.audit, .transcript { padding: 13px; border: 1px solid rgba(255,145,52,.22); border-radius: 13px; color: #d2cec9; background: rgba(255, 145, 52, .055); font-size: 12px; line-height: 1.55; }
|
|
.action-panel .audit { margin-top: 15px; }
|
|
|
|
.audio-list, .word-list { display: grid; gap: 12px; }
|
|
.audio-card { display: grid; gap: 13px; padding: 17px; border: 1px solid var(--line); border-radius: 17px; background: rgba(18, 18, 19, .64); }
|
|
.audio-card header, .audio-card footer { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; }
|
|
.audio-card header > div:first-child { display: grid; min-width: 0; gap: 3px; }
|
|
.audio-card header strong { overflow-wrap: anywhere; }
|
|
.audio-card small, .audio-card footer > span { color: var(--muted); font-size: 11px; line-height: 1.5; }
|
|
.audio-card audio { width: 100%; height: 42px; }
|
|
.audio-card footer { align-items: center; }
|
|
.audio-card footer > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
|
|
.audio-card footer button { min-height: 36px; padding: 6px 11px; font-size: 11px; }
|
|
.meta-row { display: flex; flex-wrap: wrap; gap: 6px; }
|
|
.meta-row span { padding: 4px 8px; border: 1px solid var(--line); border-radius: 99px; color: #bdb8b2; background: rgba(50,49,49,.68); font-size: 10px; }
|
|
.empty-state { display: grid; place-items: center; min-height: 130px; padding: 24px; border: 1px dashed var(--line-strong); border-radius: 15px; color: var(--muted); text-align: center; }
|
|
.toolbar { flex-wrap: wrap; margin-bottom: 14px; }
|
|
.segment-control { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: rgba(16,16,17,.68); }
|
|
.segment-control button { min-height: 34px; padding: 5px 9px; border-color: transparent; background: transparent; font-size: 11px; }
|
|
.segment-control button.active { border-color: rgba(255,145,52,.28); background: rgba(255,145,52,.14); }
|
|
.segment-control b { margin-left: 4px; color: var(--orange-2); }
|
|
.pagination { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 16px; color: var(--muted); font-size: 12px; }
|
|
.dropzone { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 100px; margin-bottom: 14px; padding: 19px; border: 1px dashed rgba(255,145,52,.45); border-radius: 16px; background: rgba(255,145,52,.05); cursor: pointer; }
|
|
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
|
|
.dropzone span { display: grid; gap: 5px; }
|
|
.dropzone > b { padding: 8px 12px; border-radius: 10px; background: rgba(255,145,52,.15); color: var(--orange-2); font-size: 12px; white-space: nowrap; }
|
|
.progress-card { display: grid; gap: 9px; margin-top: 15px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(18,18,19,.64); }
|
|
.progress-card > div:first-child { display: flex; justify-content: space-between; gap: 10px; }
|
|
.progress-card span { color: var(--orange-2); font-size: 12px; }
|
|
.progress-track { overflow: hidden; height: 7px; border-radius: 99px; background: rgba(255,255,255,.07); }
|
|
.progress-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--orange), var(--violet)); transition: width .2s ease; }
|
|
.native-notice { display: flex; align-items: center; gap: 12px; padding: 14px 18px; color: var(--muted); font-size: 12px; }
|
|
.native-notice strong { color: var(--green); }
|
|
.esphome-notice strong { color: var(--orange-2); }
|
|
.compatibility-panel { padding-top: 19px; }
|
|
.compatibility-panel .panel-head { margin-bottom: 15px; }
|
|
.word-list article { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: rgba(18,18,19,.64); }
|
|
.word-list article > div { display: grid; min-width: 0; gap: 6px; }
|
|
.word-list a { overflow-wrap: anywhere; color: var(--orange-2); font-size: 11px; text-decoration: none; }
|
|
|
|
.data-hero::after { background: radial-gradient(circle, rgba(176, 171, 164, .15), transparent 67%); }
|
|
.data-panel { padding-bottom: 18px; }
|
|
.data-list { display: grid; gap: 9px; }
|
|
.data-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 18px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 15px; background: rgba(18, 18, 19, .64); }
|
|
.data-row.empty { background: rgba(18, 18, 19, .34); }
|
|
.data-copy { display: grid; min-width: 0; gap: 6px; }
|
|
.data-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
|
|
.data-title strong { font-family: ui-rounded, "SF Pro Rounded", system-ui, sans-serif; font-size: 15px; }
|
|
.data-title code { overflow-wrap: anywhere; padding: 3px 7px; border: 1px solid var(--line); border-radius: 7px; color: #aaa6a0; background: rgba(55, 54, 53, .55); font: 10px/1.35 ui-monospace, SFMono-Regular, Menlo, monospace; }
|
|
.data-copy small, .data-note, .data-usage span { color: var(--muted); font-size: 11px; line-height: 1.45; }
|
|
.data-note { color: #c7a57d; }
|
|
.data-usage { display: grid; min-width: 105px; gap: 4px; text-align: right; }
|
|
.data-usage strong { color: var(--orange-2); font-family: ui-rounded, "SF Pro Rounded", system-ui, sans-serif; font-size: 16px; }
|
|
.data-row.empty .data-usage strong { color: #8c8883; }
|
|
.data-row > button { min-width: 82px; }
|
|
.data-warning { margin-top: 14px !important; padding: 11px 13px; border: 1px solid rgba(255, 197, 97, .3); border-radius: 12px; color: #ffd58a !important; background: rgba(214, 146, 36, .09); font-size: 12px; }
|
|
|
|
.loading-panel { display: flex; justify-content: center; align-items: center; gap: 12px; min-height: 400px; color: var(--muted); }
|
|
.spinner { width: 22px; height: 22px; border: 2px solid rgba(255,255,255,.14); border-top-color: var(--orange); border-radius: 50%; animation: spin .8s linear infinite; }
|
|
@keyframes spin { to { transform: rotate(360deg); } }
|
|
|
|
.modal-backdrop { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(5, 5, 6, .8); backdrop-filter: blur(12px); }
|
|
.modal { overflow: auto; width: min(680px, 100%); max-height: calc(100vh - 40px); padding: 23px; border: 1px solid var(--line-strong); border-radius: 21px; background: #1c1c1e; box-shadow: 0 36px 100px rgba(0,0,0,.55); }
|
|
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 18px; }
|
|
.modal-head h2 { margin: 4px 0; font-size: 24px; }
|
|
.console-modal { width: min(980px, 100%); }
|
|
.console-actions { flex-wrap: wrap; justify-content: flex-end; }
|
|
.console-follow { min-height: 34px; padding: 6px 11px; border-color: rgba(255,145,52,.42); color: var(--orange-2); background: rgba(255,145,52,.12); font-size: 11px; }
|
|
.console-log { overflow: auto; display: block; min-height: 430px; max-height: calc(100vh - 190px); margin: 0; padding: 17px; border: 1px solid rgba(255,145,52,.18); border-radius: 14px; color: #cbc6c0; background: #0b0b0c; font: 12px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; }
|
|
.console-log span { display: block; min-height: 1.65em; }
|
|
.console-log .success { color: #73e4b9; }.console-log .error { color: #ff8290; }.console-log .warning { color: #ffd079; }.console-log .heading { color: var(--orange-2); font-weight: 700; }
|
|
.stack { display: grid; gap: 14px; }
|
|
.pairing-code { text-align: center; font: 700 28px/1 ui-rounded, "SF Pro Rounded", system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
|
|
.link-success { display: grid; place-items: center; gap: 11px; padding: 30px; text-align: center; }
|
|
.link-success i { display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid rgba(68,221,165,.4); border-radius: 50%; color: var(--green); background: rgba(68,221,165,.12); font-size: 25px; font-style: normal; }
|
|
.link-success span { color: var(--muted); font-size: 12px; }
|
|
.trim-modal { width: min(820px, 100%); }
|
|
.waveform { width: 100%; height: 210px; margin: 16px 0; border: 1px solid var(--line); border-radius: 14px; background: #0d0d0e; }
|
|
.range-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-bottom: 13px; }
|
|
.range-grid label { display: grid; gap: 7px; color: var(--muted); font-size: 11px; }
|
|
.range-grid input { width: 100%; accent-color: var(--orange); }
|
|
.modal-actions { justify-content: flex-end; margin-top: 14px; }
|
|
.muted { color: var(--muted); }
|
|
.toast { position: fixed; z-index: 200; right: 22px; bottom: 22px; max-width: min(420px, calc(100% - 44px)); padding: 13px 16px; border: 1px solid rgba(68,221,165,.38); border-radius: 13px; color: #eafff7; background: rgba(20, 72, 56, .95); box-shadow: 0 18px 45px rgba(0,0,0,.4); font-size: 13px; font-weight: 700; }
|
|
.toast.warning { border-color: rgba(255,197,97,.45); background: rgba(93, 65, 22, .97); }.toast.error { border-color: rgba(255,108,125,.45); background: rgba(94, 31, 43, .97); }
|
|
.toast-enter-active, .toast-leave-active { transition: opacity .2s ease, transform .2s ease; }.toast-enter-from, .toast-leave-to { opacity: 0; transform: translateY(10px); }
|
|
|
|
@media (max-width: 920px) { .tab-full { display: none; }.tab-short { display: inline; } }
|
|
|
|
@media (max-width: 780px) {
|
|
.app-shell { width: min(100% - 22px, 1180px); padding-top: 17px; }
|
|
.app-header { align-items: flex-start; }.header-status { display: none; }
|
|
.tabs { top: 7px; }.tab-full { display: none; }.tab-short { display: inline; }
|
|
.hero { align-items: flex-start; min-height: unset; padding: 24px; }.step-row { display: none; }
|
|
.panel { padding: 19px; }.panel-head { grid-template-columns: auto minmax(0, 1fr); }.panel-head > :last-child:not(:nth-child(2)) { grid-column: 1 / -1; }
|
|
.form-grid, .phrase-form, .stats, .action-grid, .range-grid { grid-template-columns: 1fr; }.field.wide { grid-column: auto; }
|
|
.audio-card header, .audio-card footer, .word-list article, .panel-footer { flex-direction: column; align-items: stretch; }
|
|
.audio-card footer > div { justify-content: flex-start; }.word-list article > button { width: 100%; }
|
|
.sample-head .segment-control { grid-column: 1 / -1; }.segment-control button { flex: 1; }
|
|
.data-row { grid-template-columns: 1fr auto; }.data-copy { grid-column: 1 / -1; }.data-usage { text-align: left; }.data-row > button { min-width: 96px; }
|
|
.modal-backdrop { padding: 8px; }.modal { max-height: calc(100vh - 16px); padding: 17px; }.modal-head { flex-direction: column; }.console-actions { justify-content: flex-start; }.console-log { min-height: 55vh; }
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
|