Files
worldquant-alpha-system/frontend/src/pages/home.css
T

457 lines
8.0 KiB
CSS

.home-page {
flex: 1;
min-height: 0;
overflow: auto;
padding: 12px 8px 24px;
}
.home-heading {
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
margin-bottom: 24px;
}
.home-heading p {
color: var(--muted);
margin-top: 4px;
font-size: 13px;
}
.home-heading-actions {
display: flex;
align-items: center;
gap: 20px;
}
.home-clock {
display: flex;
flex-direction: column;
gap: 5px;
}
.home-clock > span {
display: flex;
align-items: center;
gap: 6px;
color: var(--muted);
font-size: 12px;
}
.home-clock time {
font-size: 14px;
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
.home-page > .semi-banner {
margin-bottom: 16px;
}
.home-metrics {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 16px;
margin-bottom: 20px;
}
.home-metric.semi-card,
.home-card.semi-card {
background: var(--surface);
border-color: var(--line);
border-radius: 8px;
min-width: 0;
box-shadow: none;
}
.home-metric .semi-card-body {
padding: 18px 20px;
}
.home-metric-label {
display: flex;
justify-content: space-between;
align-items: center;
gap: 10px;
color: var(--muted);
}
.home-metric-icon {
display: flex;
padding: 8px;
border-radius: 8px;
color: var(--accent);
background: var(--semi-color-primary-light-default);
}
.home-metric-value {
display: flex;
align-items: baseline;
gap: 8px;
min-height: 53px;
padding-top: 4px;
}
.home-metric-value strong {
font-size: 34px;
line-height: 1.35;
font-weight: 600;
font-variant-numeric: tabular-nums;
}
.home-metric-value > span,
.home-metric p {
color: var(--muted);
font-size: 12px;
}
.home-card .semi-card-header {
padding: 16px 20px;
}
.home-card .semi-card-body {
padding: 20px;
}
.home-panel-title {
display: flex;
align-items: center;
gap: 9px;
font-size: 15px;
font-weight: 600;
}
.home-panel-title svg {
color: var(--muted);
flex-shrink: 0;
}
.home-calendar-card {
margin-bottom: 20px;
}
.home-panels {
display: grid;
grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
gap: 20px;
align-items: start;
}
.home-connect {
display: flex;
align-items: center;
gap: 16px;
background: var(--semi-color-primary-light-default);
border-radius: 8px;
padding: 20px;
margin-bottom: 20px;
}
.home-connect > div {
flex: 1;
}
.home-connect p {
margin-top: 4px;
color: var(--muted);
}
.home-empty {
display: flex;
justify-content: center;
align-items: center;
gap: 12px;
min-height: 180px;
padding: 24px;
color: var(--muted);
text-align: center;
}
.home-panel-error {
display: grid;
justify-items: start;
gap: 16px;
min-height: 180px;
}
.home-calendar-summary {
display: flex;
align-items: baseline;
justify-content: space-between;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 18px;
color: var(--muted);
font-size: 12px;
}
.home-calendar-summary strong {
color: var(--ink);
font-size: 16px;
font-weight: 600;
}
.home-calendar-scroll {
overflow-x: auto;
padding: 3px 2px 5px;
}
.home-calendar {
display: flex;
gap: 10px;
min-width: 550px;
max-width: 840px;
margin: 0 auto;
}
.home-weekdays {
display: grid;
grid-template-rows: repeat(7, 1fr);
gap: 5px;
padding-top: 25px;
color: var(--muted);
font-size: 11px;
}
.home-weekdays span {
display: flex;
align-items: center;
}
.home-calendar-weeks {
display: grid;
grid-auto-flow: column;
grid-auto-columns: minmax(14px, 1fr);
gap: 5px;
flex: 1;
}
.home-calendar-week {
display: grid;
grid-template-rows: 20px repeat(7, 1fr);
gap: 5px;
}
.home-month {
color: var(--muted);
white-space: nowrap;
font-size: 11px;
}
.home-heat-cell,
.home-heat-spacer {
width: 100%;
aspect-ratio: 1;
border-radius: 3px;
}
.home-heat-cell {
border: 1px solid rgb(0 0 0 / 4%);
padding: 0;
}
.home-heat-cell:hover {
outline: 1px solid var(--muted);
outline-offset: 1px;
}
.home-heat-cell[aria-current="date"] {
outline: 1px solid var(--accent);
outline-offset: 1px;
}
.heat-unknown {
background: repeating-linear-gradient(
135deg,
var(--surface),
var(--surface) 3px,
var(--semi-color-fill-0) 3px,
var(--semi-color-fill-0) 5px
);
border: 1px solid var(--line);
}
.heat-0 {
background: var(--semi-color-fill-0);
}
.heat-1 {
background: #c2e7b6;
}
.heat-2 {
background: #83cb7a;
}
.heat-3 {
background: #4da663;
}
.heat-4 {
background: #287c47;
}
body[theme-mode="dark"] .heat-1 {
background: #244f32;
}
body[theme-mode="dark"] .heat-2 {
background: #347644;
}
body[theme-mode="dark"] .heat-3 {
background: #45a05a;
}
body[theme-mode="dark"] .heat-4 {
background: #73c888;
}
.home-calendar-bottom {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
flex-wrap: wrap;
margin-top: 14px;
font-size: 11px;
color: var(--muted);
}
.home-legend {
display: flex;
align-items: center;
gap: 4px;
}
.home-legend i {
display: inline-block;
width: 11px;
height: 11px;
border-radius: 2px;
}
.home-legend > span {
margin: 0 4px;
}
.home-table-tools {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 16px;
}
.home-table-tools > span {
color: var(--muted);
font-size: 12px;
flex-shrink: 0;
}
.home-table-wrap {
max-height: 300px;
overflow: auto;
}
.home-category {
overflow-wrap: anywhere;
}
.home-category strong {
font-weight: 400;
}
.home-category small {
display: block;
margin-top: 3px;
color: var(--muted);
}
.home-footnote {
color: var(--muted);
font-size: 11px;
margin-top: 16px;
}
.home-chart-description {
font-size: 12px;
color: var(--muted);
margin-bottom: 30px;
}
.home-chart-scroll {
overflow-x: auto;
padding: 0 2px 5px;
}
.home-chart {
display: flex;
min-width: 470px;
height: 260px;
padding-top: 20px;
padding-bottom: 28px;
gap: 10px;
}
.home-y-axis {
display: flex;
flex-direction: column;
justify-content: space-between;
min-width: 30px;
color: var(--muted);
font-size: 10px;
position: relative;
top: -6px;
}
.home-chart-plot {
flex: 1;
position: relative;
min-width: 0;
}
.home-chart-grid {
position: absolute;
inset: 0;
display: flex;
flex-direction: column;
justify-content: space-between;
pointer-events: none;
}
.home-chart-grid i {
border-top: 1px dashed var(--line);
}
.home-chart-grid i:last-child {
border-top-style: solid;
}
.home-chart-bars {
position: relative;
display: grid;
grid-template-columns: repeat(14, minmax(0, 1fr));
gap: 8px;
height: 100%;
}
.home-chart-column {
display: flex;
align-items: center;
justify-content: flex-end;
flex-direction: column;
min-width: 0;
height: 100%;
position: relative;
}
.home-chart-bar {
width: 70%;
max-width: 26px;
background: var(--accent);
opacity: 0.7;
border: 0;
border-radius: 3px 3px 0 0;
padding: 0;
position: relative;
flex-shrink: 0;
}
.home-chart-bar.is-today,
.home-chart-bar:hover,
.home-chart-bar:focus-visible {
opacity: 1;
}
.home-chart-bar.is-unknown {
background: var(--line);
}
.home-chart-bar > span {
position: absolute;
bottom: calc(100% + 6px);
left: 50%;
transform: translateX(-50%);
color: var(--ink);
font-size: 10px;
white-space: nowrap;
}
.home-x-label {
position: absolute;
top: calc(100% + 10px);
left: 50%;
transform: translateX(-50%);
white-space: nowrap;
font-size: 10px;
color: var(--muted);
}
.home-x-label.is-today {
color: var(--accent);
font-weight: 600;
}
@media (max-width: 1100px) {
.home-panels {
grid-template-columns: minmax(0, 1fr);
}
}
@media (max-width: 600px) {
.home-page {
padding: 8px 0 20px;
}
.home-heading {
align-items: flex-start;
flex-direction: column;
gap: 16px;
margin-bottom: 20px;
}
.home-heading-actions {
width: 100%;
justify-content: space-between;
gap: 8px;
}
.home-metrics {
grid-template-columns: minmax(0, 1fr);
gap: 10px;
}
.home-metric .semi-card-body {
padding: 14px 16px;
}
.home-metric-value strong {
font-size: 30px;
}
.home-card .semi-card-header,
.home-card .semi-card-body {
padding: 16px;
}
.home-connect {
flex-wrap: wrap;
}
}