242 lines
4.9 KiB
CSS
242 lines
4.9 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;
|
|
}
|
|
|
|
.card-title,
|
|
.sidebar-title { margin: 0; }
|
|
|
|
.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 {
|
|
position: fixed;
|
|
top: 16px;
|
|
right: 18px;
|
|
z-index: 10;
|
|
width: 36px;
|
|
height: 36px;
|
|
padding: 0;
|
|
display: grid;
|
|
place-items: center;
|
|
color: #fff;
|
|
background: var(--accent);
|
|
border-color: var(--accent);
|
|
border-radius: 50%;
|
|
font-size: 22px;
|
|
line-height: 1;
|
|
}
|
|
|
|
.reload-button:hover { opacity: .88; transform: rotate(-45deg); }
|
|
.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: 20px 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 {
|
|
position: sticky;
|
|
top: 20px;
|
|
z-index: 5;
|
|
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: 84px;
|
|
}
|
|
|
|
.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: 880px) {
|
|
.app-layout { display: block; padding: 0 12px 40px; }
|
|
.sidebar { margin-bottom: 12px; }
|
|
.company-sidebar {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 7;
|
|
margin: 0 -12px;
|
|
padding: 7px 12px;
|
|
border-width: 0 0 1px;
|
|
border-radius: 0;
|
|
background: rgba(245, 244, 241, .96);
|
|
backdrop-filter: blur(10px);
|
|
}
|
|
.company-sidebar .sidebar-title { display: none; }
|
|
.company-list { display: flex; overflow-x: auto; }
|
|
.company-button { flex: 0 0 auto; width: auto; }
|
|
.tabs {
|
|
top: 50px;
|
|
z-index: 6;
|
|
overflow-x: auto;
|
|
overflow-y: hidden;
|
|
flex-wrap: nowrap;
|
|
margin: 0 -12px 18px;
|
|
padding: 5px 12px;
|
|
border-width: 0 0 1px;
|
|
border-radius: 0;
|
|
background: rgba(245, 244, 241, .96);
|
|
backdrop-filter: blur(10px);
|
|
scrollbar-width: none;
|
|
}
|
|
.tabs::-webkit-scrollbar { display: none; }
|
|
.tab-button { flex: 0 0 auto; }
|
|
.card { scroll-margin-top: 120px; }
|
|
.card-bar { align-items: flex-start; flex-wrap: wrap; }
|
|
.export-button { margin-left: auto; }
|
|
.chart { min-width: 560px; }
|
|
.card { overflow-x: auto; }
|
|
}
|