forked from Furumi/furumi-web
The skeleton had four cells in five columns while the statistics have six; it now inherits the statistics grid on every width. The Russian notice after Retry promised that the tracks would be found. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
140 lines
13 KiB
HTML
140 lines
13 KiB
HTML
<style>
|
|
.library-imports { max-width: 1050px; margin: 0 auto; padding: 0 0 24px; }
|
|
:where(.library-imports, .import-wizard) :where(button, select, input) { font-family: inherit; }
|
|
.library-imports :is(a, button, select, input):focus-visible, .import-wizard :is(a, button, input):focus-visible,
|
|
.import-file-button:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
.import-heading { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
|
|
.import-heading .section-title { margin: 0; }
|
|
.import-heading-copy { min-width: 0; }
|
|
.import-heading-copy p { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; color: var(--text-secondary); font-size: 13px; }
|
|
.import-actions { display: flex; flex-wrap: wrap; gap: 8px; }
|
|
.import-subtitle { margin: 26px 0 12px; font-size: 18px; letter-spacing: -.015em; }
|
|
.import-notice { margin: 0 0 12px; color: var(--text-secondary); font-size: 13px; overflow-wrap: anywhere; }
|
|
.import-notice.error { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: #ffaeab; }
|
|
.import-text-action { padding: 6px 10px; border: 1px solid var(--border-color); border-radius: 5px; background: transparent; color: var(--text-secondary); font-size: 13px; cursor: pointer; transition: color 120ms, background-color 120ms; }
|
|
.import-text-action:hover:not(:disabled) { color: var(--text-primary); background: var(--bg-elevated); }
|
|
.import-text-action:disabled { opacity: .45; cursor: default; }
|
|
.import-source-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
|
|
.import-source, .import-method {
|
|
display: grid; gap: 6px; min-width: 0; padding: 14px 16px; border: 1px solid var(--border-color); border-radius: 8px;
|
|
background: var(--bg-secondary); color: var(--text-primary); text-align: left; cursor: pointer; transition: background-color 140ms, border-color 140ms;
|
|
}
|
|
.import-source:hover, .import-method:hover { background: var(--bg-elevated); border-color: var(--bg-active); }
|
|
.import-source strong, .import-method strong { font-size: 15px; }
|
|
.import-source small, .import-method small { color: var(--text-secondary); font-size: 12px; line-height: 1.4; }
|
|
.import-source.skeleton-card { min-height: 46px; cursor: default; }
|
|
.import-source.skeleton-card .skeleton-bar:first-child { width: 40%; }
|
|
.import-history { list-style: none; margin: 0; padding: 0; }
|
|
.import-history-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 10px 6px; border-bottom: 1px solid var(--border-color); }
|
|
.import-history-row:hover, .import-history-row:focus-within { background: var(--bg-elevated); border-radius: 6px; }
|
|
.import-history-link, .import-history-playlists { grid-column: 1; }
|
|
.import-history-link { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; min-width: 0; color: inherit; text-decoration: none; }
|
|
.import-history-title { min-width: 0; }
|
|
.import-history-title strong, .import-history-title small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.import-history-title strong { font-size: 14px; }
|
|
.import-history-title small, .import-history-count { color: var(--text-subdued); font-size: 12px; }
|
|
.import-history-count { font-variant-numeric: tabular-nums; white-space: nowrap; }
|
|
.import-history-actions { display: flex; gap: 6px; align-items: center; grid-column: 2; grid-row: 1 / span 2; }
|
|
.import-history-playlists { display: flex; flex-wrap: wrap; gap: 4px 10px; min-width: 0; color: var(--text-subdued); font-size: 12px; }
|
|
.import-history-playlists a { color: var(--text-secondary); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
|
|
.import-history-playlists a:hover { color: var(--text-primary); text-decoration: underline; }
|
|
.import-status { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 10px; background: var(--bg-active); color: var(--text-secondary); font-size: 12px; white-space: nowrap; }
|
|
.import-status:is([data-status=done], [data-status=matched]) { background: #183426; color: var(--accent); }
|
|
.import-status:is([data-status=running], [data-status=queued], [data-status=pending]) { color: var(--text-primary); }
|
|
.import-status:is([data-status=failed], [data-status=needs_reauth]) { background: #3a1f1f; color: #ffaeab; }
|
|
.import-status[data-status=ambiguous] { background: #3a321a; color: #f0d58a; }
|
|
.import-progress { display: grid; gap: 6px; margin: 0 0 16px; color: var(--text-secondary); font-size: 13px; }
|
|
.import-progress progress { width: 100%; height: 6px; accent-color: var(--accent); }
|
|
.import-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0 0 10px; padding: 16px 0; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-secondary); }
|
|
.import-stats > div { min-width: 0; padding: 0 clamp(8px, 1.6vw, 18px); }
|
|
.import-stats > div + div { border-left: 1px solid var(--border-color); }
|
|
.import-stats dt, .import-stats small { color: var(--text-secondary); font-size: 12px; }
|
|
.import-stats dd { margin: 6px 0 0; font-size: clamp(18px, 2vw, 26px); font-weight: 650; font-variant-numeric: tabular-nums; }
|
|
.import-stats small { display: block; margin-top: 4px; overflow-wrap: anywhere; }
|
|
.import-stats-skeleton { margin-top: 18px; }
|
|
.import-stats-skeleton .skeleton-bar + .skeleton-bar { width: 50%; margin-top: 10px; height: 16px; }
|
|
.import-extra-stats { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; margin: 0; padding: 0; color: var(--text-secondary); font-size: 13px; }
|
|
.import-extra-stats strong { color: var(--text-primary); font-variant-numeric: tabular-nums; }
|
|
.import-playlists { list-style: none; margin: 0; padding: 0; max-width: 840px; }
|
|
.import-filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
|
|
.import-filters .collection-tabs { margin: 0; }
|
|
.import-filters .collection-tabs button { display: inline-flex; align-items: center; min-height: 32px; padding: 6px 12px; border: 0; border-radius: 18px; background: var(--bg-elevated); color: var(--text-secondary); font-size: 13px; cursor: pointer; transition: color 120ms, background-color 120ms; }
|
|
.import-filters .collection-tabs button:hover { color: var(--text-primary); }
|
|
.import-filters .collection-tabs button[aria-pressed=true] { background: var(--text-primary); color: var(--bg-primary); }
|
|
.import-filter-fields { display: flex; flex-wrap: wrap; gap: 8px; }
|
|
.import-filter-fields :is(select, input) { min-width: 0; max-width: 260px; padding: 7px 10px; border: 1px solid var(--border-color); border-radius: 6px; background: var(--bg-secondary); color: var(--text-primary); color-scheme: dark; font-size: 13px; }
|
|
.import-items { list-style: none; margin: 0; padding: 0; transition: opacity 140ms; }
|
|
.import-items[aria-busy=true] { opacity: .7; }
|
|
.import-item { display: grid; grid-template-columns: 34px minmax(0, 1fr) 48px minmax(120px, auto); align-items: center; gap: 4px 12px; padding: 8px 6px; border-bottom: 1px solid var(--border-color); }
|
|
.import-item-position, .import-item-duration { color: var(--text-subdued); font-size: 12px; font-variant-numeric: tabular-nums; }
|
|
.import-item-position { text-align: right; }
|
|
.import-item-copy { min-width: 0; }
|
|
.import-item-copy strong, .import-item-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.import-item-copy strong { font-size: 14px; font-weight: 600; }
|
|
.import-item-copy small { margin-top: 2px; color: var(--text-subdued); font-size: 12px; }
|
|
.import-item-status { display: grid; justify-items: end; gap: 3px; text-align: right; }
|
|
.import-item-status small { color: var(--text-subdued); font-size: 12px; }
|
|
.import-candidates { grid-column: 2 / -1; display: grid; gap: 4px; margin-top: 4px; padding: 8px 10px; border-radius: 6px; background: var(--bg-secondary); }
|
|
.import-candidates-title { color: var(--text-secondary); font-size: 12px; }
|
|
.import-candidate { display: grid; grid-template-columns: minmax(0, 1fr) 48px auto auto; align-items: center; gap: 10px; }
|
|
.import-origin { color: var(--text-secondary); font-size: 12px; }
|
|
.import-more { display: flex; justify-content: center; margin-top: 14px; }
|
|
.import-retry-panel { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 0 0 14px; padding: 12px 14px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-secondary); }
|
|
.import-consent { display: flex; align-items: flex-start; gap: 10px; min-width: 0; flex: 1; }
|
|
.import-consent .offline-switch-row { flex: none; min-height: 22px; border: 0; background: none; cursor: pointer; }
|
|
.import-consent strong, .import-consent small { display: block; }
|
|
.import-consent strong { font-size: 14px; }
|
|
.import-consent small { margin-top: 3px; color: var(--text-secondary); font-size: 12px; line-height: 1.4; }
|
|
.import-wizard-body { display: grid; gap: 14px; padding: 16px var(--dialog-gutter) var(--dialog-gutter); }
|
|
.import-wizard-body .import-notice { margin: 0; }
|
|
.import-step { display: grid; gap: 14px; min-width: 0; }
|
|
.import-provider h3 { margin: 0 0 10px; font-size: 15px; }
|
|
.import-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
|
|
.import-help, .import-privacy { margin: 0; color: var(--text-secondary); font-size: 13px; line-height: 1.5; }
|
|
.import-privacy { color: var(--text-subdued); font-size: 12px; }
|
|
.import-file-button { position: relative; justify-self: start; }
|
|
.import-file-button.disabled { opacity: .45; pointer-events: none; }
|
|
.import-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip-path: inset(50%); }
|
|
.import-select-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13px; }
|
|
.import-select-head span { display: flex; gap: 6px; }
|
|
.import-select-list { list-style: none; max-height: min(46vh, 420px); margin: 0; padding: 0; overflow: auto; overscroll-behavior: contain; border: 1px solid var(--border-color); border-radius: 8px; scrollbar-width: thin; }
|
|
.import-select-list li { padding: 8px 12px; border-bottom: 1px solid var(--border-color); }
|
|
.import-select-list li:last-child { border-bottom: 0; }
|
|
.import-select-list li.disabled .import-select-copy { opacity: .55; }
|
|
.import-select-row { display: flex; align-items: center; gap: 10px; min-width: 0; cursor: pointer; }
|
|
.import-select-row input, .import-select-note input { flex: none; width: 16px; height: 16px; accent-color: var(--accent); }
|
|
.import-select-copy { min-width: 0; }
|
|
.import-select-copy strong, .import-select-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.import-select-copy strong { font-size: 14px; font-weight: 600; }
|
|
.import-select-copy small { color: var(--text-subdued); font-size: 12px; }
|
|
.import-select-note { display: grid; gap: 6px; margin: 6px 0 0 26px; color: var(--text-secondary); font-size: 12px; }
|
|
.import-select-note a { color: var(--text-secondary); }
|
|
.import-select-note.warning > span { color: #f0d58a; }
|
|
.import-select-note label { display: flex; align-items: center; gap: 8px; color: var(--text-primary); cursor: pointer; }
|
|
.import-wizard-footer { display: flex; justify-content: space-between; gap: 10px; padding-top: 4px; }
|
|
@media (max-width: 760px) {
|
|
.import-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; }
|
|
.import-stats > div:nth-child(3n + 1) { border-left: 0; }
|
|
}
|
|
@media (max-width: 600px) {
|
|
.import-history-row { grid-template-columns: minmax(0, 1fr); }
|
|
.import-history-link { grid-template-columns: minmax(0, 1fr) auto; }
|
|
.import-history-count { grid-column: 1 / -1; }
|
|
.import-history-actions { grid-column: 1; grid-row: auto; }
|
|
.import-item { grid-template-columns: 26px minmax(0, 1fr) auto; }
|
|
.import-item-duration { display: none; }
|
|
.import-item-status { grid-column: 2 / -1; justify-items: start; text-align: left; }
|
|
.import-candidates { grid-column: 1 / -1; }
|
|
.import-candidate { grid-template-columns: minmax(0, 1fr) auto; }
|
|
.import-candidate .import-origin { grid-column: 1; }
|
|
.import-candidate .import-text-action { grid-column: 2; grid-row: 1 / span 2; min-height: 36px; }
|
|
.import-filter-fields, .import-filter-fields :is(select, input) { flex: 1; max-width: none; }
|
|
.import-text-action, .import-filters .collection-tabs button { min-height: 36px; }
|
|
.import-actions .release-action-btn { flex: 1; justify-content: center; }
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.import-source, .import-method, .import-text-action, .import-items, .import-filters .collection-tabs button { transition: none; }
|
|
.import-retry-panel, .import-select-note label { transition-duration: 0s !important; }
|
|
}
|
|
</style>
|