209 lines
14 KiB
CSS
209 lines
14 KiB
CSS
:root {
|
|
color-scheme: light;
|
|
--stage: #edf0f6;
|
|
--white: #fff;
|
|
--canvas: #f7f8fc;
|
|
--ink: #182036;
|
|
--sub: #586378;
|
|
--muted: #667286;
|
|
--line: #e1e6ef;
|
|
--navy: #182647;
|
|
--blue: #3154dc;
|
|
--blue-dark: #2442ba;
|
|
--pale-blue: #edf1ff;
|
|
--amber: #84511a;
|
|
--pale-amber: #fff4df;
|
|
--draft-green: #246047;
|
|
font: 15px/1.45 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
|
|
background: var(--stage);
|
|
color: var(--ink);
|
|
}
|
|
* { box-sizing: border-box; }
|
|
body, h1, h2, h3, p, dl, dd { margin: 0; }
|
|
a { color: inherit; text-decoration: none; }
|
|
a:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
|
|
strong { font-weight: 680; }
|
|
.board { margin: 0 auto; padding: 37px 28px 40px; }
|
|
.mobile-board { max-width: 876px; }
|
|
.desktop-board { max-width: 1292px; }
|
|
.board-header { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-bottom: 1px solid #d4dbe9; padding-bottom: 14px; margin-bottom: 20px; }
|
|
.board-header h1, .board-header h2 { font-size: 29px; font-weight: 740; line-height: 1.15; letter-spacing: -.045em; }
|
|
.board-header p { color: var(--sub); font-size: 13px; white-space: nowrap; }
|
|
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
|
|
.preview-label { margin: 0 0 8px 2px; color: var(--sub); font-size: 12px; font-weight: 620; }
|
|
.phone {
|
|
display: flex; flex-direction: column; min-height: 638px;
|
|
overflow: hidden; border: 1px solid #dce2ee; border-radius: 20px;
|
|
background: var(--white); box-shadow: 0 13px 37px #17264710;
|
|
}
|
|
.phone-body { display: flex; flex: 1; flex-direction: column; min-width: 0; }
|
|
.phone-nav, .desktop-sidebar { font-size: 13px; }
|
|
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 730; letter-spacing: -.025em; white-space: nowrap; }
|
|
.brand-mark { position: relative; width: 26px; height: 26px; flex: 0 0 26px; border-radius: 8px; background: #b9c7ff; color: var(--navy); }
|
|
.brand-mark::before {
|
|
content: ""; position: absolute; inset: 6px;
|
|
background: currentColor; clip-path: polygon(0 0, 48% 0, 48% 34%, 66% 34%, 66% 0, 100% 0, 100% 70%, 66% 70%, 66% 100%, 0 100%);
|
|
}
|
|
.identity { display: inline-flex; gap: 6px; align-items: center; color: inherit; font-size: 12px; white-space: nowrap; }
|
|
.identity::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #aabaff; }
|
|
.phone-top { min-height: 57px; display: flex; align-items: center; justify-content: space-between; padding: 10px 18px; gap: 12px; }
|
|
.search-hero { padding-bottom: 19px; color: var(--white); background: var(--navy); }
|
|
.search-hero .phone-top { color: #eef1ff; }
|
|
.search-hero-body { padding: 12px 18px 0; }
|
|
.hero-title { margin-bottom: 12px; font-size: 31px; letter-spacing: -.06em; font-weight: 740; }
|
|
.search-box {
|
|
display: flex; align-items: center; gap: 10px; min-height: 42px;
|
|
padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px;
|
|
color: var(--sub); background: var(--white); font-size: 13px;
|
|
}
|
|
.search-box .query { color: var(--ink); font-size: 14px; margin-right: auto; font-weight: 620; }
|
|
.icon { position: relative; display: inline-block; flex: 0 0 auto; width: 16px; height: 16px; color: inherit; }
|
|
.i-search::before, .i-search::after, .i-chevron::before, .i-folder::before, .i-folder::after,
|
|
.i-pin::before, .i-pin::after, .i-plus::before, .i-plus::after, .i-grid::before, .i-pencil::before {
|
|
content: ""; position: absolute;
|
|
}
|
|
.i-search::before { width: 9px; height: 9px; top: 1px; left: 1px; border: 1.6px solid currentColor; border-radius: 50%; }
|
|
.i-search::after { top: 11px; left: 10px; width: 5px; height: 1.6px; background: currentColor; transform: rotate(45deg); transform-origin: left; }
|
|
.i-chevron::before { top: 5px; left: 4px; width: 5px; height: 5px; border-top: 1.6px solid currentColor; border-right: 1.6px solid currentColor; transform: rotate(45deg); }
|
|
.i-folder::before { inset: 5px 1px 2px; border: 1.5px solid currentColor; border-radius: 2px; }
|
|
.i-folder::after { width: 6px; height: 3px; top: 3px; left: 2px; border: solid currentColor; border-width: 1.5px 1.5px 0; border-radius: 2px 2px 0 0; }
|
|
.i-pin::before { width: 9px; height: 9px; left: 2px; top: 1px; border: 1.5px solid currentColor; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
|
|
.i-pin::after { width: 3px; height: 3px; top: 5px; left: 6px; border-radius: 50%; background: currentColor; }
|
|
.i-plus::before, .i-plus::after { top: 7px; left: 2px; width: 12px; height: 1.5px; background: currentColor; }
|
|
.i-plus::after { transform: rotate(90deg); }
|
|
.i-grid::before { inset: 2px; background: currentColor; clip-path: polygon(0 0, 42% 0, 42% 42%, 58% 42%, 58% 0, 100% 0, 100% 42%, 58% 42%, 58% 58%, 100% 58%, 100% 100%, 58% 100%, 58% 58%, 42% 58%, 42% 100%, 0 100%, 0 58%, 42% 58%, 42% 42%, 0 42%); }
|
|
.i-pencil::before { top: 6px; left: 2px; width: 11px; height: 4px; border: 1.5px solid currentColor; border-radius: 1px; transform: rotate(-40deg); }
|
|
.i-star { font: 16px/1 system-ui, sans-serif; }
|
|
.room-filter { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 11px; font-size: 12px; }
|
|
.room-filter span { padding: 4px 9px; border: 1px solid #4d5c7e; color: #e0e6fb; border-radius: 6px; }
|
|
.room-filter .active { background: #f0f2ff; border-color: #f0f2ff; color: var(--navy); font-weight: 690; }
|
|
.phone-content { display: flex; flex: 1; flex-direction: column; padding: 15px 18px 17px; }
|
|
.section-heading, .action-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
|
|
.section-heading { margin-bottom: 6px; }
|
|
.section-heading h3 { font-size: 15px; font-weight: 720; }
|
|
.count { color: var(--sub); font-size: 12px; white-space: nowrap; }
|
|
.record-list { list-style: none; margin: 0; padding: 0; }
|
|
.record {
|
|
display: grid; grid-template-columns: 49px minmax(0, 1fr) auto; gap: 11px; align-items: center;
|
|
min-height: 70px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--sub);
|
|
}
|
|
.thumb {
|
|
display: inline-block; width: 49px; height: 49px; flex: 0 0 auto; border-radius: 9px;
|
|
background: #edf0f5 url("assets/item-catalog.png") no-repeat; background-size: 200% 200%;
|
|
}
|
|
.thumb.cable { background-position: left top; }
|
|
.thumb.ssd { background-position: right top; }
|
|
.thumb.reader { background-position: right bottom; }
|
|
.record-name { font-weight: 710; color: var(--ink); line-height: 1.35; overflow-wrap: anywhere; }
|
|
.record-qty { margin-left: 4px; color: var(--sub); font-size: 12px; font-weight: 540; white-space: nowrap; }
|
|
.path { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 4px; margin-top: 4px; color: var(--sub); font-size: 12px; line-height: 1.35; }
|
|
.path strong { color: var(--blue-dark); }
|
|
.path .sep { color: #7b879d; }
|
|
.action-bar { margin-top: auto; padding-top: 13px; }
|
|
.btn {
|
|
min-height: 44px; display: inline-flex; justify-content: center; align-items: center; gap: 6px;
|
|
padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--white);
|
|
font-size: 13px; font-weight: 670; color: var(--ink); text-align: center;
|
|
}
|
|
.btn.primary { background: var(--blue); border-color: var(--blue); color: var(--white); }
|
|
a.btn.primary:hover { background: var(--blue-dark); }
|
|
.btn.inactive { background: #e8ecf5; color: #54627c; border-color: #e8ecf5; }
|
|
.action-bar .btn { flex: 1; }
|
|
.phone-nav { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); color: var(--sub); }
|
|
.phone-nav > * { display: flex; min-height: 58px; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; }
|
|
.phone-nav .current { color: var(--blue-dark); background: #f2f4ff; font-weight: 700; box-shadow: inset 0 2px var(--blue); }
|
|
.draft-top { border-bottom: 1px solid var(--line); }
|
|
.back { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; color: var(--blue-dark); font-size: 13px; font-weight: 650; }
|
|
.back .i-chevron { transform: rotate(180deg); }
|
|
.draft-content { padding-top: 14px; }
|
|
.draft-title { font-size: 28px; line-height: 1.2; letter-spacing: -.055em; font-weight: 740; }
|
|
.draft-summary { color: var(--sub); font-size: 12px; margin: 6px 0 12px; }
|
|
.source { padding: 8px 10px; background: var(--canvas); border: 1px solid var(--line); border-radius: 8px; }
|
|
.source summary { cursor: pointer; width: fit-content; color: var(--sub); font-size: 12px; font-weight: 630; }
|
|
.source p { margin-top: 5px; color: var(--ink); font-size: 12px; line-height: 1.55; }
|
|
.draft-records { margin-top: 12px; }
|
|
.draft-records .record { min-height: 59px; grid-template-columns: 35px minmax(0, 1fr) auto; gap: 8px; border-bottom: 0; padding: 6px 7px; }
|
|
.draft-dot {
|
|
display: grid; place-items: center; width: 29px; height: 29px;
|
|
border-radius: 50%; font-size: 15px; font-weight: 760;
|
|
}
|
|
.review .draft-dot { color: var(--amber); background: #f8e6bf; }
|
|
.ready .draft-dot { color: var(--draft-green); background: #e4f1e9; }
|
|
.skip .draft-dot { color: var(--sub); background: #edf0f5; }
|
|
.draft-records .record-name { font-size: 13px; }
|
|
.draft-records .path { font-size: 11px; margin-top: 3px; }
|
|
.draft-records .status { text-align: right; font-size: 11px; font-weight: 710; white-space: nowrap; }
|
|
.draft-records .review { margin-bottom: 3px; background: var(--pale-amber); border: 1px solid #f3ddaf; border-radius: 8px; }
|
|
.review .status { color: var(--amber); }
|
|
.ready .status { color: var(--draft-green); }
|
|
.skip .status { color: var(--sub); }
|
|
.draft-help { margin-top: 7px; color: var(--sub); font-size: 11px; }
|
|
.workbench {
|
|
min-height: 602px; display: grid; grid-template-columns: 193px minmax(0, 1fr);
|
|
overflow: hidden; border: 1px solid #d7e0ed; border-radius: 15px;
|
|
background: var(--white); box-shadow: 0 16px 44px #17264714;
|
|
}
|
|
.desktop-sidebar { background: var(--navy); color: #e9eeff; padding: 19px 13px 16px; }
|
|
.desktop-sidebar .brand { margin: 0 4px 19px; }
|
|
.household { display: flex; align-items: center; gap: 8px; border: 1px solid #4c5c80; border-radius: 8px; min-height: 40px; padding: 8px 10px; margin-bottom: 15px; color: #f2f5ff; }
|
|
.household .identity { font-size: 13px; font-weight: 610; }
|
|
.side-nav { margin: 0; padding: 0 0 14px; list-style: none; border-bottom: 1px solid #435473; }
|
|
.side-nav li { display: flex; align-items: center; gap: 9px; border-radius: 7px; margin: 1px 0; min-height: 36px; padding: 6px 10px; }
|
|
.side-nav .current { background: #324370; color: #fff; font-weight: 670; }
|
|
.tree-title { margin: 17px 0 8px 9px; color: #bdc9e8; font-size: 11px; }
|
|
.tree, .tree ul { list-style: none; padding: 0; margin: 0; }
|
|
.tree ul { margin-left: 17px; border-left: 1px solid #536488; }
|
|
.tree-label { display: flex; align-items: center; gap: 6px; padding: 6px 8px; min-height: 32px; }
|
|
.tree-label.selected { margin-left: 4px; background: #dfe7ff; color: #1e3471; border-radius: 5px; font-weight: 670; }
|
|
.workspace { min-width: 0; background: var(--canvas); }
|
|
.workspace-top { padding: 19px 22px 16px; border-bottom: 1px solid var(--line); background: var(--white); }
|
|
.breadcrumb, .location-path { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--sub); font-size: 12px; }
|
|
.breadcrumb .icon, .location-path .icon { width: 11px; }
|
|
.workspace-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
|
|
.workspace-title h3 { font-size: 29px; line-height: 1.15; letter-spacing: -.05em; font-weight: 740; }
|
|
.workspace-body { display: grid; grid-template-columns: minmax(245px, .95fr) minmax(272px, 1fr); gap: 15px; padding: 17px 20px 20px; }
|
|
.collection { min-width: 0; }
|
|
.collection .search-box { margin-bottom: 12px; }
|
|
.collection .section-heading { margin-bottom: 6px; }
|
|
.collection .record { padding: 9px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
|
|
.collection .record + .record { margin-top: 6px; }
|
|
.collection .record.selected { border-color: #a5b6fb; background: #f1f4ff; box-shadow: inset 3px 0 var(--blue); }
|
|
.detail { min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--white); padding: 14px; align-self: start; }
|
|
.detail-header { display: flex; align-items: center; gap: 12px; margin-bottom: 13px; }
|
|
.detail-header .thumb { width: 87px; height: 87px; border-radius: 8px; }
|
|
.detail-header h3 { font-size: 22px; line-height: 1.25; letter-spacing: -.035em; overflow-wrap: anywhere; margin-bottom: 4px; }
|
|
.detail-header p { font-size: 12px; color: var(--sub); }
|
|
.location-box { display: grid; gap: 7px; border-radius: 8px; background: var(--pale-blue); padding: 11px; }
|
|
.location-box .title { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 670; color: var(--blue-dark); }
|
|
.location-box .location-path { color: var(--ink); }
|
|
.location-path strong { color: var(--blue-dark); }
|
|
.location-box .btn { justify-self: start; min-height: 32px; font-size: 12px; padding: 3px 9px; color: var(--blue-dark); border-color: #c7d3fd; }
|
|
.detail-row { padding: 10px 0 9px; border-bottom: 1px solid var(--line); }
|
|
.detail-row:last-child { border-bottom: 0; padding-bottom: 0; }
|
|
.detail-row dt { color: var(--sub); font-size: 11px; margin-bottom: 4px; }
|
|
.detail-row dd { font-size: 13px; }
|
|
.detail-row .secondary-text { color: var(--sub); font-size: 11px; }
|
|
.stars { color: var(--blue-dark); letter-spacing: 1px; margin-right: 6px; }
|
|
@media (max-width: 820px) {
|
|
.workbench { grid-template-columns: 158px minmax(0, 1fr); }
|
|
.workspace-body { grid-template-columns: minmax(0, 1fr); }
|
|
}
|
|
@media (max-width: 720px) {
|
|
.board { padding: 22px 13px 28px; }
|
|
.board-header h1, .board-header h2 { font-size: 25px; }
|
|
.pair { grid-template-columns: minmax(0, 410px); justify-content: center; }
|
|
.workbench { grid-template-columns: minmax(0, 1fr); }
|
|
.desktop-sidebar { padding: 13px; }
|
|
.desktop-sidebar .brand { margin-bottom: 9px; }
|
|
.desktop-sidebar .household { margin-bottom: 8px; }
|
|
.side-nav { display: flex; flex-wrap: wrap; gap: 5px; padding-bottom: 7px; }
|
|
.tree-title { margin-top: 8px; }
|
|
.workspace-top { padding: 14px; }
|
|
.workspace-body { padding: 12px; }
|
|
}
|
|
@media (max-width: 360px) {
|
|
.phone-top, .phone-content, .search-hero-body { padding-left: 12px; padding-right: 12px; }
|
|
.room-filter span { padding: 4px 6px; }
|
|
.detail-header .thumb { width: 63px; height: 63px; }
|
|
}
|