Files
moonsource-legadorule/moonsource-legadorule.koplugin/moonsource_legadorule/web/legado_sources.css
T

74 lines
5.8 KiB
CSS

/* Legado 书源管理页样式;外壳与订阅页相同,沿用 /style.css 与订阅页的 sub-* 类(订阅页的样式在 /subscribe.css,这里补齐本页用到的部分)。 */
.sub-toolbar { flex-wrap: wrap; gap: 8px }
.sub-toolbar select { min-height: 32px; font-size: 13px }
.sub-search input { width: min(280px, 46vw); min-height: 32px; font-size: 13px }
.sub-toolbar .file-action.primary { border-color: var(--accent); background: var(--accent); color: var(--on-accent) }
.sub-batch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 12px; border-bottom: 1px solid var(--row-rule); background: var(--accent-soft) }
.sub-batch[hidden], .ls-progress[hidden] { display: none }
.sub-groups button { display: flex; align-items: center; gap: 6px }
.sub-groups button[data-all]::before { background: var(--accent) }
.sub-groups button .g-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis }
.sub-groups button .g-count { color: var(--dim); font-size: 12px; font-weight: 400 }
.sub-groups button .g-err { color: var(--danger); font-size: 12px }
.ls-subbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 14px; border-bottom: 1px solid var(--row-rule) }
.ls-subinfo { flex: 1 1 auto; min-width: 0; overflow: hidden; color: var(--dim); font-size: 13px; text-overflow: ellipsis; white-space: nowrap }
.sub-list { table-layout: auto }
.sub-list td { vertical-align: middle }
.sub-list th { font-weight: 500; text-align: left; color: var(--dim); font-size: 12px }
.sub-list td.sel, .sub-list th.sel { width: 36px; padding: 0 0 0 12px }
.sub-list td.ico { width: 34px; padding-right: 0 }
.sub-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #5079aa; color: #fff; font-size: 12px; font-weight: 600 }
.sub-list tr.off .sub-icon { background: #9aa3ad }
.sub-list td.n { max-width: 0; width: 100% }
.sub-list .f-title { display: block; overflow: hidden; color: var(--fg); font-weight: 500; text-overflow: ellipsis; white-space: nowrap }
.sub-list tr.off .f-title { color: var(--dim); text-decoration: line-through }
.sub-list .f-url { display: block; overflow: hidden; color: var(--dim); font-size: 12px; text-overflow: ellipsis; white-space: nowrap }
.sub-list .f-err { display: block; color: var(--danger); font-size: 12px }
.sub-badge { display: inline-block; padding: 1px 8px; border: 1px solid var(--pill-border); border-radius: 10px; background: var(--pill-bg); color: var(--dim); font-size: 11px; white-space: nowrap }
.sub-badge.on { border-color: var(--accent); color: var(--accent) }
.sub-list td.meta { width: 1%; white-space: nowrap }
.sub-list td.ops { width: 1%; white-space: nowrap }
.sub-list td.ops button { min-height: 28px; padding: 0 10px; font-size: 12px }
.sub-list td.empty { padding: 48px 14px; text-align: center; color: var(--dim) }
.sub-list tbody tr.selected td { background: var(--accent-soft) }
.sub-list td.more { text-align: center }
.sub-dialog { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto }
.sub-dialog .field { margin: 10px 0 }
.sub-dialog .field label { display: block; margin-bottom: 4px; color: var(--dim); font-size: 13px }
.sub-dialog .field input, .sub-dialog .field textarea { width: 100%; margin: 0; box-sizing: border-box }
.sub-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0 4px }
.sub-kinds .opt { display: flex; gap: 8px; align-items: flex-start; padding: 10px; border: 1px solid var(--rule); border-radius: var(--radius); cursor: pointer }
.sub-kinds .opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft) }
.sub-kinds strong { display: block; font-size: 14px; font-weight: 500 }
.sub-kinds small { color: var(--dim); font-size: 12px }
.sub-toasts { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: grid; gap: 8px; max-width: min(360px, calc(100vw - 32px)) }
.sub-toast { padding: 10px 14px; border-radius: var(--radius); background: var(--bar); color: var(--bar-fg); box-shadow: var(--shadow-dialog); font-size: 13px }
.sub-toast.err { background: var(--danger) }
@media (max-width: 720px) {
.sub-search input { width: 100% }
.sub-toolbar .fa-left { flex: 1 1 100% }
.sub-groups { display: flex; gap: 6px; overflow-x: auto }
.sub-kinds { grid-template-columns: 1fr }
.sub-list th { display: none }
}
@media (prefers-color-scheme: dark) {
.f-ms { margin-left: 6px; font-size: 11px; color: var(--dim) }
.f-reason { display: block; margin-top: 2px; font-size: 12px; color: var(--danger, #c0392b); word-break: break-all }
.ls-pager { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 0 }
.ls-pginfo { font-size: 13px; color: var(--dim) }
.ls-progress { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-bottom: 1px solid var(--row-rule); font-size: 13px; color: var(--dim) }
.ls-track { flex: 1; height: 6px; border-radius: 3px; background: var(--pill-bg); overflow: hidden }
.ls-fill { height: 100%; width: 0; background: var(--accent); transition: width .3s }
.sw-hint { margin: 0 0 8px; font-size: 13px; color: var(--dim) }
.sw-list { list-style: none; margin: 8px 0; padding: 0; max-height: 52vh; overflow: auto; border: 1px solid var(--rule); border-radius: var(--radius) }
.sw-list li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--row-rule); cursor: pointer }
.sw-list li:last-child { border-bottom: 0 }
.sw-list li:hover { background: var(--accent-soft) }
.sw-list li.empty { cursor: default; color: var(--dim); justify-content: center }
.sw-list .sw-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.sw-list .sw-m { font-size: 12px; color: var(--dim); white-space: nowrap }
.sw-list .sw-bad { color: var(--danger, #c0392b) }
.sw-list .sw-best { color: var(--accent) }