Files
worldquant-alpha-system/frontend/src/pages/home.css
T
2026-09-09 18:20:08 +08:00

218 lines
3.9 KiB
CSS

.home-page {
flex: 1;
min-height: 0;
overflow: auto;
padding: 8px 4px 24px;
}
.home-heading {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
margin-bottom: 24px;
}
.home-heading p,
.home-panel header p,
.home-connect p {
color: var(--muted);
margin-top: 4px;
}
.home-metrics {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 16px;
margin-bottom: 24px;
}
.home-metric,
.home-panel {
border: 1px solid var(--line);
border-radius: 8px;
background: var(--surface);
min-width: 0;
}
.home-metric {
display: flex;
flex-direction: column;
gap: 8px;
padding: 20px;
}
.home-metric > span {
color: var(--muted);
}
.home-metric > strong {
font-size: 30px;
font-weight: 600;
font-variant-numeric: tabular-nums;
line-height: 1.3;
}
.home-metric small,
.home-period small,
.home-panel footer {
color: var(--muted);
font-size: 12px;
line-height: 1.6;
}
.home-panels {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
gap: 20px;
align-items: start;
}
.home-panel {
overflow: hidden;
}
.home-panel header {
padding: 20px;
border-bottom: 1px solid var(--line);
}
.home-panel header p {
font-size: 12px;
}
.home-connect {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 16px;
background: var(--semi-color-primary-light-default);
border-radius: 8px;
padding: 20px;
margin-bottom: 20px;
}
.home-empty {
display: flex;
justify-content: center;
align-items: center;
gap: 12px;
padding: 48px 20px;
color: var(--muted);
text-align: center;
}
.home-period {
padding: 16px 20px;
background: var(--canvas);
border-bottom: 1px solid var(--line);
}
.home-date-fields {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
}
.home-date-fields input {
width: 100%;
min-width: 0;
height: 32px;
padding: 4px 8px;
color: var(--ink);
background: var(--surface);
border: 1px solid var(--line);
border-radius: 4px;
}
body[theme-mode="dark"] .home-date-fields input {
color-scheme: dark;
}
.home-table-tools {
display: flex;
align-items: center;
gap: 12px;
padding: 16px 20px;
}
.home-table-tools > span {
flex-shrink: 0;
color: var(--muted);
font-size: 12px;
}
.home-table-wrap {
max-height: 420px;
overflow: auto;
}
.home-panel table {
width: 100%;
border-collapse: separate;
border-spacing: 0;
text-align: left;
font-size: 13px;
}
.home-panel th {
position: sticky;
top: 0;
z-index: 1;
background: var(--canvas);
font-weight: 500;
color: var(--muted);
white-space: nowrap;
}
.home-panel td,
.home-panel th {
padding: 12px 16px;
border-bottom: 1px solid var(--line);
}
.home-panel td:first-child,
.home-panel td:nth-child(2) {
white-space: nowrap;
}
.home-panel td strong {
font-weight: 400;
overflow-wrap: anywhere;
}
.home-panel td small {
display: block;
margin-top: 3px;
color: var(--muted);
overflow-wrap: anywhere;
}
.home-panel td:last-child {
min-width: 96px;
text-align: right;
}
.home-value {
font-variant-numeric: tabular-nums;
font-weight: 500;
}
.home-bar {
height: 3px;
background: var(--canvas);
border-radius: 2px;
margin-top: 6px;
}
.home-bar i {
display: block;
height: 100%;
border-radius: inherit;
background: var(--accent);
opacity: 0.7;
}
.home-panel footer {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
gap: 8px;
padding: 12px 20px;
border-top: 1px solid var(--line);
}
.home-panel-error {
display: grid;
justify-items: start;
gap: 16px;
padding: 20px;
}
@media (max-width: 600px) {
.home-metrics {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px;
}
.home-metric {
padding: 14px;
}
.home-metric > strong {
font-size: 26px;
}
.home-heading {
align-items: flex-start;
}
.home-panel td,
.home-panel th {
padding: 10px;
}
}