Spaces:
Paused

assistant / ui /web /src /components /DownloadConfirmDialog.css
localailb's picture
Deploy Full LocalAiLab Application (FastAPI + Svelte + Agents)
bc9f3e6 verified
Raw History Blame Contribute Delete
2.08 kB
/* ==========================================================================
DownloadConfirmDialog — lightweight "Are you sure?" popup for direct
downloads (Poppler, Playwright) that don't have a multi-choice install
dialog. Same overlay/box pattern as LlamaCppInstallDialog but simpler.
========================================================================== */
.dlcfm-overlay {
position: fixed;
inset: 0;
z-index: 10010;
background: rgba(0, 0, 0, 0.45);
display: flex;
align-items: center;
justify-content: center;
padding: 16px;
}
.dlcfm-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: 440px;
width: 100%;
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
position: relative;
}
.dlcfm-title {
font-size: 1.08em;
font-weight: 700;
margin-bottom: 12px;
color: var(--text-strong, #3f332b);
}
.dlcfm-body {
font-size: 0.92em;
line-height: 1.55;
color: var(--text, #5a5248);
margin-bottom: 18px;
}
.dlcfm-body b {
color: var(--text-strong, #3f332b);
}
.dlcfm-actions {
display: flex;
gap: 10px;
justify-content: flex-end;
}
.dlcfm-cancel,
.dlcfm-confirm {
padding: 7px 18px;
border-radius: var(--radius, 10px);
font-size: 0.9em;
font-weight: 600;
cursor: pointer;
border: 1px solid var(--card-border, #e7e0d3);
transition: background 0.15s, opacity 0.15s;
user-select: auto;
}
/* Draggable title bar */
.dlcfm-drag-handle {
cursor: grab;
user-select: none;
}
.dlcfm-drag-handle:active {
cursor: grabbing;
}
.dlcfm-box.dragging .dlcfm-drag-handle {
cursor: grabbing;
}
.dlcfm-cancel {
background: var(--bg-elev, #f5f0e8);
color: var(--text, #5a5248);
}
.dlcfm-cancel:hover {
background: var(--card-bg, #ede8de);
}
.dlcfm-confirm {
background: var(--primary-600, #d97757);
color: #fff;
border-color: var(--primary-600, #d97757);
}
.dlcfm-confirm:hover {
background: var(--primary-700, #c2633f);
}