188 lines
14 KiB
CSS
188 lines
14 KiB
CSS
:root {
|
|
color-scheme: dark;
|
|
--bg: #111318;
|
|
--panel: #17191f;
|
|
--raised: #22252c;
|
|
--line: #30333c;
|
|
--fg: #ebecef;
|
|
--muted: #a4a9b4;
|
|
--accent: #d9b774;
|
|
--accent-soft: #3c3428;
|
|
--success: #90c9ae;
|
|
--danger: #f0a1a1;
|
|
--champ-min: 92px;
|
|
}
|
|
* { box-sizing: border-box; }
|
|
body {
|
|
display: grid; grid-template-rows: 48px minmax(0, 1fr) 42px;
|
|
height: 100vh; margin: 0; overflow: hidden;
|
|
background: var(--bg); color: var(--fg);
|
|
font: 13px/1.5 "Segoe UI Variable", "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
|
|
}
|
|
h1, h2, h3, p { margin: 0; }
|
|
button, input { font: inherit; }
|
|
button {
|
|
display: inline-flex; align-items: center; justify-content: center; gap: 8px;
|
|
min-height: 36px; padding: 7px 14px; border: 1px solid transparent; border-radius: 7px;
|
|
background: var(--accent); color: #201a12; cursor: pointer; font-weight: 600;
|
|
transition: background-color .16s, border-color .16s, color .16s;
|
|
}
|
|
button:hover:not(:disabled) { background: #edcc8d; }
|
|
button:disabled { opacity: .5; cursor: not-allowed; }
|
|
button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
button, input, label { -webkit-app-region: no-drag; }
|
|
.icon { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
|
|
.eyebrow { color: var(--accent); font-size: 10px; font-weight: 600; }
|
|
.text-button, .icon-button { color: var(--muted); background: transparent; font-weight: 400; }
|
|
.text-button:hover:not(:disabled), .icon-button:hover:not(:disabled) { color: var(--fg); background: var(--raised); }
|
|
.icon-button { width: 36px; padding: 7px; }
|
|
|
|
/* 标题栏由系统绘制窗口按钮,网页只绘制可拖动的空白区域。 */
|
|
.titlebar { background: var(--panel); border-bottom: 1px solid var(--line); -webkit-app-region: drag; user-select: none; }
|
|
.titlebar-content {
|
|
display: flex; align-items: center; justify-content: space-between; gap: 12px;
|
|
margin-left: env(titlebar-area-x, 0px); width: env(titlebar-area-width, 100%);
|
|
height: 48px; padding: 0 20px;
|
|
}
|
|
.brand { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 650; white-space: nowrap; }
|
|
.brand-mark { color: var(--accent); font-size: 22px; line-height: 1; }
|
|
.brand-divider { height: 16px; width: 1px; margin: 0 4px; background: var(--line); }
|
|
.brand-subtitle { color: var(--muted); font-size: 12px; font-weight: 400; }
|
|
.titlebar-label { color: #777e8c; font-size: 10px; white-space: nowrap; }
|
|
|
|
.workspace { display: grid; grid-template-columns: 342px minmax(0, 1fr); min-height: 0; }
|
|
.library { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--panel); border-right: 1px solid var(--line); }
|
|
.library-heading { display: flex; align-items: center; justify-content: space-between; padding: 22px 20px 16px; }
|
|
.library-heading h1 { font-size: 21px; font-weight: 600; margin-top: 3px; }
|
|
.count { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
|
|
.search-box { display: flex; align-items: center; gap: 8px; margin: 0 16px; padding: 0 11px; height: 42px; border: 1px solid #3a3d46; border-radius: 7px; background: var(--bg); color: var(--muted); }
|
|
.search-box:focus-within { border-color: var(--accent); }
|
|
.search { width: 100%; min-width: 0; padding: 9px 0; background: transparent; border: 0; outline: 0; color: var(--fg); font-size: 12px; }
|
|
.search:focus-visible { outline: 0; }
|
|
.search::placeholder { color: var(--muted); }
|
|
.library-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 12px 10px; }
|
|
.library-toolbar .text-button { font-size: 12px; }
|
|
.sizes { display: flex; gap: 2px; padding: 3px; border-radius: 6px; background: var(--bg); }
|
|
.sizes button { min-width: 28px; min-height: 27px; padding: 3px 6px; border-radius: 4px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 400; }
|
|
.sizes button:hover:not(:disabled) { background: var(--raised); }
|
|
.sizes button.on { background: var(--raised); color: var(--accent); }
|
|
.champ-grid {
|
|
display: grid; grid-template-columns: repeat(auto-fill, minmax(min(var(--champ-min), 100%), 1fr));
|
|
align-content: start; gap: 8px; flex: 1; min-height: 0; overflow-y: auto;
|
|
padding: 2px 12px 20px; scrollbar-gutter: stable;
|
|
}
|
|
.champ { position: relative; display: block; min-width: 0; height: max-content; padding: 0; overflow: hidden; text-align: center; background: transparent; border: 1px solid transparent; border-radius: 8px; color: var(--fg); font-weight: 400; }
|
|
.champ:hover:not(:disabled) { background: var(--raised); border-color: #74674d; }
|
|
.champ.active { background: var(--accent-soft); border-color: var(--accent); }
|
|
.champ img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; background: var(--raised); }
|
|
.champ .cname { display: block; padding: 7px 3px; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
.champ.active .cname { color: var(--accent); }
|
|
.champ .badge { position: absolute; top: 5px; left: 5px; border-radius: 4px; padding: 1px 5px; background: var(--accent); color: #221c14; font-size: 10px; font-weight: 600; }
|
|
.library-footer { display: flex; align-items: center; justify-content: space-between; padding: 9px 16px; border-top: 1px solid var(--line); }
|
|
.follow-control { display: inline-flex; align-items: center; gap: 9px; position: relative; min-height: 36px; color: var(--muted); font-size: 12px; cursor: pointer; }
|
|
.follow-control input { position: absolute; left: 0; width: 32px; height: 20px; margin: 0; opacity: 0; }
|
|
.switch { width: 30px; height: 17px; padding: 3px; border-radius: 12px; background: #50535b; transition: background .16s; }
|
|
.switch::after { content: ""; display: block; width: 11px; height: 11px; border-radius: 50%; background: #fff; transition: transform .16s; }
|
|
.follow-control input:checked + .switch { background: var(--accent); }
|
|
.follow-control input:checked + .switch::after { background: #211b13; transform: translateX(13px); }
|
|
.follow-control input:focus-visible + .switch { outline: 2px solid var(--accent); outline-offset: 3px; }
|
|
|
|
.detail { min-width: 0; min-height: 0; overflow-y: auto; scrollbar-gutter: stable; }
|
|
.detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 26px; }
|
|
.detail-heading h2 { min-width: 0; font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
|
|
.detail-heading span { color: var(--muted); font-size: 11px; }
|
|
.preview { margin: 0 26px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel); }
|
|
.splash { position: relative; height: clamp(230px, 35vh, 420px); background: #191d25; }
|
|
.splash > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
|
|
.splash .grad { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 12, 16, .97), rgba(10, 12, 16, .05) 75%), linear-gradient(90deg, rgba(10, 12, 16, .25), transparent 70%); }
|
|
.splash .info { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; }
|
|
.splash .sname { margin: 8px 0 5px; font-size: 29px; line-height: 1.25; font-weight: 600; text-shadow: 0 2px 9px #000; overflow-wrap: anywhere; }
|
|
.splash .sdesc { color: #d0d3d9; font-size: 12px; }
|
|
.chip { display: inline-block; padding: 3px 8px; border: 1px solid #757985; border-radius: 5px; background: #15171bbd; color: #e2e3e8; font-size: 11px; }
|
|
.chip.own { color: var(--success); border-color: #507260; }
|
|
.preview-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 79px; padding: 15px 22px; }
|
|
.selection-info { min-width: 0; }
|
|
.selection-info strong { display: block; font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
|
|
.selection-info span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
|
|
#applyBtn { min-width: 140px; min-height: 42px; flex: none; }
|
|
.chroma-section { padding: 0 22px 18px; }
|
|
.chroma-heading { display: flex; gap: 10px; align-items: center; margin-bottom: 9px; font-size: 12px; }
|
|
.chroma-heading span { color: var(--muted); }
|
|
.chroma-bar { display: flex; flex-wrap: wrap; gap: 7px; }
|
|
.dot { width: 34px; height: 34px; min-height: 34px; padding: 5px; border-radius: 50%; background: transparent; border: 1px solid #646976; }
|
|
.dot:hover:not(:disabled) { background: var(--raised); border-color: var(--fg); }
|
|
.dot.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
|
|
.swatch { display: block; width: 20px; height: 20px; border-radius: 50%; background: var(--swatch, #606774); }
|
|
.chroma-preview { display: flex; gap: 10px; align-items: center; margin-top: 12px; color: var(--muted); font-size: 12px; }
|
|
.chroma-preview img { width: 48px; height: 48px; border-radius: 5px; object-fit: cover; background: var(--raised); }
|
|
.skin-section { padding: 22px 26px 28px; }
|
|
.skin-section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
|
|
.skin-section-heading h3 { font-size: 14px; font-weight: 500; }
|
|
.skin-section-heading span { color: var(--muted); font-size: 11px; }
|
|
.skin-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 11px; }
|
|
.skin-row { display: block; position: relative; min-width: 0; height: max-content; padding: 0; overflow: hidden; text-align: left; background: var(--panel); color: var(--fg); border: 1px solid var(--line); border-radius: 8px; font-weight: 400; }
|
|
.skin-row:hover:not(:disabled) { background: var(--raised); border-color: #796b50; }
|
|
.skin-row.active { background: var(--accent-soft); border-color: var(--accent); }
|
|
.skin-row img { display: block; width: 100%; height: 96px; object-fit: cover; object-position: center 25%; background: var(--raised); }
|
|
.skin-row .meta { display: block; min-width: 0; padding: 9px 11px; }
|
|
.skin-row .n { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
.skin-row.active .n { color: var(--accent); }
|
|
.skin-row .s { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
|
|
.skin-selected { position: absolute; top: 7px; right: 7px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #211b14; font-size: 12px; }
|
|
|
|
.detail-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100%; padding: 32px; text-align: center; }
|
|
.empty-mark { display: grid; place-items: center; width: 80px; height: 80px; margin-bottom: 24px; border: 1px solid #675738; border-radius: 20px; background: var(--accent-soft); color: var(--accent); font-size: 42px; }
|
|
.detail-empty h2 { margin: 10px 0 8px; font-size: 25px; font-weight: 500; }
|
|
.detail-empty p { color: var(--muted); }
|
|
.placeholder { grid-column: 1 / -1; padding: 24px 12px; color: var(--muted); text-align: center; overflow-wrap: anywhere; }
|
|
.placeholder button { display: flex; margin: 14px auto 0; }
|
|
.loading-mark { width: 22px; height: 22px; margin: 0 auto 12px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
|
|
|
|
.statusbar { display: flex; align-items: center; gap: 16px; padding: 0 16px; border-top: 1px solid var(--line); background: var(--panel); color: var(--muted); font-size: 11px; white-space: nowrap; }
|
|
.status { display: flex; align-items: center; gap: 7px; }
|
|
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
|
|
.status.ok, #injectionStatus.ok { color: var(--success); }
|
|
.status.bad { color: var(--danger); }
|
|
.status-divider { width: 1px; height: 12px; background: var(--line); }
|
|
.package-count { margin-left: auto; font-variant-numeric: tabular-nums; }
|
|
.statusbar .text-button { min-height: 29px; font-size: 11px; }
|
|
.toast { position: fixed; left: 50%; bottom: 58px; max-width: min(600px, calc(100vw - 32px)); transform: translateX(-50%); padding: 10px 17px; opacity: 0; pointer-events: none; z-index: 10; border: 1px solid #667765; border-radius: 8px; background: #292d33; color: var(--fg); box-shadow: 0 10px 32px #0008; overflow-wrap: anywhere; transition: opacity .2s; }
|
|
.toast.show { opacity: 1; }
|
|
.toast.err { border-color: var(--danger); color: var(--danger); }
|
|
::-webkit-scrollbar { width: 6px; }
|
|
::-webkit-scrollbar-thumb { background: #454953; border-radius: 5px; }
|
|
@keyframes spin { to { transform: rotate(360deg); } }
|
|
@media (min-width: 1500px) {
|
|
.workspace { grid-template-columns: 370px minmax(0, 1fr); }
|
|
.skin-list { grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); }
|
|
}
|
|
@media (max-width: 1050px) {
|
|
.workspace { grid-template-columns: 282px minmax(0, 1fr); }
|
|
.detail-heading { padding: 16px 20px; }
|
|
.preview { margin: 0 20px; }
|
|
.skin-section { padding: 20px; }
|
|
.splash .info { padding: 20px; }
|
|
.preview-actions { padding: 14px 18px; }
|
|
.chroma-section { padding: 0 18px 18px; }
|
|
.statusbar { gap: 10px; }
|
|
}
|
|
@media (max-width: 760px) {
|
|
body { height: auto; min-height: 100vh; overflow: auto; grid-template-rows: 48px auto auto; }
|
|
.titlebar-label { display: none; }
|
|
.workspace { display: flex; flex-direction: column; }
|
|
.library { border-right: 0; border-bottom: 1px solid var(--line); }
|
|
.champ-grid { flex: none; height: 250px; }
|
|
.detail { overflow: visible; }
|
|
.detail-heading, .skin-section { padding: 16px; }
|
|
.preview { margin: 0 16px; }
|
|
.preview-actions { flex-wrap: wrap; }
|
|
#applyBtn { width: 100%; }
|
|
.statusbar { flex-wrap: wrap; padding: 10px 16px; }
|
|
.package-count { margin-left: 0; }
|
|
.status-divider { display: none; }
|
|
.skin-list { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
*, *::before, *::after { animation: none !important; transition: none !important; }
|
|
}
|