File size: 2,814 Bytes
bc9f3e6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 | /* ==========================================================================
FirstRunDialog — the setup popup shown on the very first launch (the
SPA lands on the Settings tab and walks the user through the first
setup steps: GPU PyTorch, llama-server / llama-cpp-python, HF token).
A centered card over a dimmed backdrop, riding the app's tokens so it
themes with light/dark automatically — same language as the app's other
themed dialogs (.lal-confirm-*).
========================================================================== */
.firstrun-overlay {
position: fixed;
inset: 0;
z-index: 10000;
background: rgba(0, 0, 0, 0.45);
display: flex;
align-items: center;
justify-content: center;
padding: 16px;
}
.firstrun-box {
background: var(--bg-elev, #ffffff);
border: 1px solid var(--card-border, #e7e0d3);
border-left: 5px solid var(--primary-600, #d97757);
border-radius: var(--radius, 14px);
padding: 22px 24px;
max-width: 480px;
width: 100%;
box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
animation: firstrun-pop 0.22s ease-out;
}
/* Match the toast popup's entrance — scale in from the center so the
onboarding reads as a confirmation popup, not a slide. */
@keyframes firstrun-pop {
from {
opacity: 0;
transform: scale(0.94);
}
to {
opacity: 1;
transform: scale(1);
}
}
.firstrun-title {
font-family: var(--font-display, Georgia, "Times New Roman", serif);
font-size: 1.15rem;
font-weight: 700;
color: var(--text-strong, #000000);
margin-bottom: 14px;
}
.firstrun-lines {
display: flex;
flex-direction: column;
gap: 10px;
margin-bottom: 20px;
}
.firstrun-line {
color: var(--text-strong, #000000);
font-size: 0.9rem;
line-height: 1.55;
}
/* The GGUF recommendation — visually set apart as a tip card (the amber
thinking/plan surface), so the "prefer llama-server / llama.cpp python"
guidance stands out from the plain checklist lines. */
.firstrun-tip {
color: var(--text-dim, #4a4a4a);
padding: 10px 12px;
background: var(--amber-bg, #fbf0dc);
border: 1px solid var(--amber-line, #eed9b0);
border-radius: var(--radius-sm, 8px);
}
.firstrun-actions {
display: flex;
justify-content: flex-end;
}
.firstrun-ok {
border: 1px solid var(--primary-600, #d97757);
background: var(--primary-600, #d97757);
color: #ffffff;
border-radius: 10px;
padding: 9px 18px;
font: inherit;
font-size: 0.85rem;
font-weight: 600;
cursor: pointer;
transition: filter 0.15s ease;
user-select: auto;
}
.firstrun-ok:hover {
filter: brightness(1.05);
}
/* Draggable title bar */
.firstrun-drag-handle {
cursor: grab;
user-select: none;
}
.firstrun-drag-handle:active {
cursor: grabbing;
}
.firstrun-box.dragging .firstrun-drag-handle {
cursor: grabbing;
}
|