130 lines
9.5 KiB
CSS
130 lines
9.5 KiB
CSS
.downloads-dialog {
|
|
--download-gutter: clamp(14px, 2vw, 24px);
|
|
position: fixed; inset: 0; margin: 0; width: 100%; height: 100%;
|
|
max-width: none; max-height: none; padding: 16px; border: 0;
|
|
background: transparent; color: var(--text-primary); color-scheme: dark;
|
|
}
|
|
.downloads-dialog[open] { display: grid; place-items: center; }
|
|
.downloads-dialog::backdrop { background: rgb(0 0 0 / .68); }
|
|
.downloads-shell {
|
|
display: flex; flex-direction: column; width: min(960px, 100%); height: min(670px, 88dvh);
|
|
min-height: 0; overflow: hidden; border: 1px solid var(--bg-active); border-radius: 14px;
|
|
background: var(--bg-secondary); box-shadow: 0 16px 64px #0006;
|
|
}
|
|
.downloads-shell :is(button,input,select,summary,[tabindex]):focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
|
|
.downloads-head {
|
|
display: flex; align-items: center; flex: none; gap: 12px; padding: 12px var(--download-gutter);
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
.downloads-head h2 { flex: 1; min-width: 0; margin: 0; font-size: 21px; line-height: 1.2; }
|
|
.downloads-head h2:focus { outline: none; }
|
|
.downloads-head svg, .downloads-nav svg, .download-activity-row svg, .downloads-empty svg,
|
|
.download-icon-button svg, .download-button svg {
|
|
width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor;
|
|
stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round;
|
|
}
|
|
.downloads-head .downloads-mark { color: var(--accent); width: 22px; height: 22px; }
|
|
.download-button, .download-icon-button {
|
|
display: inline-flex; align-items: center; justify-content: center; gap: 6px;
|
|
min-height: 34px; padding: 5px 11px; border: 1px solid var(--bg-active); border-radius: 7px;
|
|
background: var(--bg-elevated); color: var(--text-primary); cursor: pointer; font: inherit; font-size: 13px; font-weight: 600;
|
|
}
|
|
.download-icon-button { width: 34px; flex: none; padding: 0; border-color: transparent; background: transparent; color: var(--text-secondary); }
|
|
.download-button:hover, .download-icon-button:hover { background: var(--bg-hover); color: var(--text-primary); }
|
|
.download-button.primary { border-color: transparent; background: var(--accent); color: #081a0e; }
|
|
.download-button.primary:hover { background: var(--accent-hover); }
|
|
.downloads-shell button:disabled { opacity: .45; cursor: default; }
|
|
.downloads-shell :is(.download-field,.upload-field input:not([type=checkbox]),.upload-field select,.upload-field textarea,.upload-bulk-bar input,.upload-bulk-bar select),
|
|
.download-list-heading select {
|
|
min-height: 35px; padding: 6px 9px; border: 1px solid var(--bg-active); border-radius: 6px;
|
|
background: var(--bg-primary); color: var(--text-primary); font: inherit; font-size: 13px;
|
|
}
|
|
.downloads-add { position: relative; }
|
|
.downloads-add-menu {
|
|
position: absolute; z-index: 8; inset: calc(100% + 5px) 0 auto auto; min-width: 154px; padding: 4px;
|
|
border: 1px solid var(--bg-active); border-radius: 8px; background: var(--bg-elevated); box-shadow: 0 8px 22px #0006;
|
|
}
|
|
.downloads-add-menu button, .downloads-nav button {
|
|
display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; border: 0; border-radius: 6px;
|
|
color: var(--text-secondary); background: transparent; cursor: pointer; font: inherit; font-size: 13px; text-align: start;
|
|
}
|
|
.downloads-add-menu button { color: var(--text-primary); }
|
|
.downloads-add-menu button:hover, .downloads-nav button:hover { background: var(--bg-hover); color: var(--text-primary); }
|
|
.downloads-layout { display: grid; flex: 1; min-height: 0; grid-template-columns: 148px minmax(0,1fr); }
|
|
.downloads-rail { display: flex; flex-direction: column; padding: 12px 8px; border-inline-end: 1px solid var(--border-color); background: var(--bg-primary); min-width: 0; }
|
|
.downloads-nav { display: grid; gap: 3px; }
|
|
.downloads-nav button { min-height: 38px; }
|
|
.downloads-nav button[aria-selected="true"] { color: #a1e6b6; background: #1d3827; }
|
|
.downloads-nav button small { margin-inline-start: auto; border-radius: 5px; padding: 1px 4px; background: var(--bg-active); color: var(--text-primary); }
|
|
.downloads-worker { display: flex; align-items: center; gap: 7px; margin: auto 5px 0; padding: 10px 5px 0; color: var(--text-secondary); font-size: 11px; }
|
|
.downloads-worker i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--text-subdued); }
|
|
.downloads-worker i.busy { background: var(--accent); }
|
|
.downloads-main, .downloads-content { display: flex; flex: 1; min-height: 0; min-width: 0; flex-direction: column; }
|
|
.downloads-content > [role=tabpanel] { flex: 1; min-width: 0; min-height: 0; }
|
|
.downloads-content > .download-source-pane { padding-top: 15px; }
|
|
.downloads-notice { display: flex; align-items: center; gap: 8px; flex: none; border-bottom: 1px solid var(--border-color); padding: 2px var(--download-gutter); font-size: 12px; color: #b5dbbf; }
|
|
.downloads-notice span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
|
|
.downloads-notice.error { color: #f1abab; }
|
|
.download-overview, .downloads-content > .upload-manager-panel { padding: 14px var(--download-gutter); }
|
|
.download-overview { overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
|
|
.download-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
|
|
.download-list-heading h3 { margin: 0; font-size: 16px; }
|
|
.download-list-heading select { max-width: 55%; }
|
|
.download-activity { list-style: none; padding: 0; margin: 0; }
|
|
.download-activity li { border-bottom: 1px solid var(--border-color); }
|
|
.download-activity-row {
|
|
width: 100%; display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; align-items: center;
|
|
gap: 12px; padding: 9px 4px; border: 0; border-radius: 5px; background: transparent;
|
|
color: var(--text-primary); font: inherit; text-align: start; cursor: pointer;
|
|
}
|
|
.download-activity-row:hover { background: var(--bg-hover); }
|
|
.download-source-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 7px; color: var(--text-secondary); background: var(--bg-elevated); }
|
|
.download-job-title, .download-job-status { display: grid; gap: 3px; min-width: 0; }
|
|
.download-job-title strong,.download-job-title small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
|
|
.download-job-title strong { font-size: 14px; font-weight: 600; }
|
|
.download-job-title small,.download-job-status { font-size: 12px; color: var(--text-secondary); }
|
|
.download-job-status { justify-items: end; text-align: end; max-width: 18ch; }
|
|
.download-job-status[data-group=active] { color: #9adeb0; }
|
|
.download-job-status[data-group=attention] { color: #e3c694; }
|
|
.download-job-status progress { width: 52px; height: 4px; accent-color: var(--accent); }
|
|
.download-more { margin-top: 12px; }
|
|
.downloads-empty { display: grid; justify-items: center; gap: 12px; padding: clamp(32px,9vh,84px) 10px; color: var(--text-secondary); text-align: center; }
|
|
.downloads-empty svg { width: 30px; height: 30px; }
|
|
.downloads-empty p { margin: 0; font-size: 14px; }
|
|
.downloads-shell .upload-manager-grid { grid-template-columns: minmax(0,1fr); }
|
|
.downloads-shell .upload-manager-grid.has-reviews { grid-template-columns: minmax(185px, .6fr) minmax(0,1.4fr); }
|
|
.downloads-shell .upload-library-column { min-width: 0; }
|
|
.downloads-shell .upload-manager-head p { color: var(--text-secondary); }
|
|
@media (prefers-reduced-motion: no-preference) {
|
|
.downloads-shell, .downloads-content > [role=tabpanel] { animation: download-pane-in 140ms ease-out; }
|
|
@keyframes download-pane-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
|
|
}
|
|
@media(max-width: 650px) {
|
|
.downloads-dialog { padding: 0; --download-gutter: 12px; }
|
|
.downloads-shell { width: 100%; height: 100dvh; border: 0; border-radius: 0; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
|
|
.downloads-head { gap: 6px; padding: 7px var(--download-gutter); }
|
|
.downloads-head h2 { font-size: 18px; }
|
|
.download-button,.download-icon-button { min-height: 40px; }
|
|
.downloads-head .download-icon-button { width: 40px; }
|
|
.downloads-add-menu button { min-height: 40px; }
|
|
.downloads-layout { display: flex; flex-direction: column; }
|
|
.downloads-rail { flex: none; padding: 0 4px; border: 0; border-bottom: 1px solid var(--border-color); }
|
|
.downloads-nav { grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); gap: 0; }
|
|
.downloads-nav button { position: relative; flex-direction: column; justify-content: center; gap: 2px; padding: 4px 1px; min-height: 44px; font-size: 11px; text-align: center; }
|
|
.downloads-nav button[aria-selected="true"] { border-radius: 0; box-shadow: inset 0 -2px var(--accent); background: transparent; }
|
|
.downloads-nav button small { position: absolute; inset: 1px 1px auto auto; }
|
|
.downloads-worker { display: none; }
|
|
.download-overview, .downloads-content > .upload-manager-panel { padding-top: 10px; }
|
|
.download-activity-row { gap: 7px; }
|
|
.download-job-status { max-width: 11ch; }
|
|
.download-job-title strong { font-size: 13px; }
|
|
.downloads-content > .upload-manager-panel { display: block; overflow: auto; overscroll-behavior: contain; }
|
|
.downloads-shell .upload-manager-grid { display: flex; flex-direction: column; overflow: visible; }
|
|
.downloads-shell :is(.upload-library-column,.upload-review-column) { overflow: visible; max-height: none; padding: 0; }
|
|
.downloads-shell input.download-field { font-size: 16px; }
|
|
}
|
|
@media (max-height: 480px) {
|
|
.downloads-dialog { padding: 0; }
|
|
.downloads-shell { height: 100dvh; }
|
|
}
|