220 lines
4.5 KiB
CSS
220 lines
4.5 KiB
CSS
:root {
|
|
--ink: #333;
|
|
--muted: #8c8c8c;
|
|
--line: #e8e8e8;
|
|
--bg: #f5f4f1;
|
|
--surface: #fff;
|
|
--accent: #6b4a2b;
|
|
--accent-soft: #f0e9e1;
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
|
|
body {
|
|
margin: 0;
|
|
background: var(--bg);
|
|
color: var(--ink);
|
|
font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
|
|
}
|
|
|
|
button {
|
|
font: inherit;
|
|
font-size: 13px;
|
|
color: var(--ink);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.app-header {
|
|
min-height: 76px;
|
|
padding: 16px 28px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 24px;
|
|
background: var(--surface);
|
|
border-bottom: 1px solid var(--line);
|
|
}
|
|
|
|
.app-brand h1,
|
|
.app-brand p,
|
|
.card-title,
|
|
.sidebar-title { margin: 0; }
|
|
|
|
.app-brand h1 { font-size: 21px; font-weight: 600; }
|
|
.app-brand p { margin-top: 4px; color: var(--muted); font-size: 13px; }
|
|
|
|
.reload-button,
|
|
.export-button {
|
|
padding: 7px 13px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 6px;
|
|
background: var(--surface);
|
|
transition: border-color .15s, color .15s, background .15s;
|
|
}
|
|
|
|
.reload-button {
|
|
color: #fff;
|
|
background: var(--accent);
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.reload-button:hover { opacity: .88; }
|
|
.export-button:hover { color: var(--accent); border-color: var(--accent); }
|
|
|
|
.app-layout {
|
|
display: grid;
|
|
grid-template-columns: 184px minmax(0, 1fr) 184px;
|
|
gap: 24px;
|
|
max-width: 1600px;
|
|
margin: 0 auto;
|
|
padding: 28px 24px 64px;
|
|
}
|
|
|
|
.sidebar {
|
|
align-self: start;
|
|
position: sticky;
|
|
top: 20px;
|
|
padding: 14px 10px;
|
|
background: rgba(255, 255, 255, .58);
|
|
border: 1px solid rgba(232, 232, 232, .9);
|
|
border-radius: 10px;
|
|
}
|
|
|
|
.sidebar-title {
|
|
padding: 0 8px 10px;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.company-list,
|
|
.anchor-list { display: grid; gap: 3px; }
|
|
|
|
.company-button,
|
|
.anchor-button,
|
|
.tab-button,
|
|
.view-button {
|
|
border: 0;
|
|
border-radius: 6px;
|
|
background: transparent;
|
|
text-align: left;
|
|
transition: background .15s, color .15s;
|
|
}
|
|
|
|
.company-button {
|
|
width: 100%;
|
|
padding: 8px;
|
|
}
|
|
|
|
.company-button:hover,
|
|
.anchor-button:hover,
|
|
.tab-button:hover { color: var(--accent); background: var(--accent-soft); }
|
|
|
|
.company-button[data-active="true"],
|
|
.tab-button[data-active="true"] {
|
|
color: var(--accent);
|
|
font-weight: 600;
|
|
background: var(--accent-soft);
|
|
}
|
|
|
|
.anchor-button {
|
|
padding: 6px 8px;
|
|
color: #5f5f5f;
|
|
font-size: 12px;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.content { min-width: 0; }
|
|
|
|
.tabs {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
margin-bottom: 18px;
|
|
padding: 5px;
|
|
background: rgba(255, 255, 255, .6);
|
|
border: 1px solid var(--line);
|
|
border-radius: 9px;
|
|
}
|
|
|
|
.tab-button { padding: 7px 11px; }
|
|
|
|
.cards { display: grid; gap: 28px; }
|
|
|
|
.card {
|
|
overflow: hidden;
|
|
background: var(--surface);
|
|
border-radius: 10px;
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
|
|
scroll-margin-top: 20px;
|
|
}
|
|
|
|
.card-bar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
min-height: 52px;
|
|
padding: 9px 16px;
|
|
border-bottom: 1px solid var(--line);
|
|
}
|
|
|
|
.card-heading { min-width: 0; margin-right: auto; }
|
|
.card-title { font-size: 14px; font-weight: 600; }
|
|
|
|
.src {
|
|
display: block;
|
|
overflow: hidden;
|
|
margin-top: 2px;
|
|
color: var(--muted);
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
font-size: 11px;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.view-switcher {
|
|
display: flex;
|
|
padding: 2px;
|
|
background: #f4f2ee;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.view-button { padding: 4px 7px; color: var(--muted); font-size: 12px; }
|
|
.view-button[data-active="true"] { color: var(--accent); background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
|
|
|
|
.chart { width: 100%; }
|
|
|
|
.chart-error,
|
|
.empty-state,
|
|
.sidebar-empty {
|
|
margin: 0;
|
|
padding: 36px 20px;
|
|
color: #a63f32;
|
|
font-size: 14px;
|
|
text-align: center;
|
|
}
|
|
|
|
.sidebar-empty { padding: 8px; color: var(--muted); text-align: left; font-size: 12px; }
|
|
|
|
@media (max-width: 1040px) {
|
|
.app-layout { grid-template-columns: 160px minmax(0, 1fr); }
|
|
.chart-sidebar { display: none; }
|
|
}
|
|
|
|
@media (max-width: 720px) {
|
|
.app-header { padding: 14px 16px; }
|
|
.app-brand p { display: none; }
|
|
.app-layout { display: block; padding: 16px 12px 40px; }
|
|
.sidebar { position: static; margin-bottom: 12px; }
|
|
.company-sidebar { padding: 7px; }
|
|
.company-sidebar .sidebar-title { display: none; }
|
|
.company-list { display: flex; overflow-x: auto; }
|
|
.company-button { flex: 0 0 auto; width: auto; }
|
|
.tabs { overflow-x: auto; flex-wrap: nowrap; }
|
|
.tab-button { flex: 0 0 auto; }
|
|
.card-bar { align-items: flex-start; flex-wrap: wrap; }
|
|
.export-button { margin-left: auto; }
|
|
.chart { min-width: 560px; }
|
|
.card { overflow-x: auto; }
|
|
}
|