560 lines
11 KiB
CSS
560 lines
11 KiB
CSS
.commission-dashboard {
|
|
--dash-line: var(--border-subtle, rgba(15, 23, 42, 0.12));
|
|
--dash-muted: var(--text-tertiary, var(--text-secondary, #7b8798));
|
|
--dash-primary: var(
|
|
--commission-primary-solid,
|
|
var(--commission-primary, var(--brand-primary, #165dff))
|
|
);
|
|
--dash-text: var(--text-primary, #1d2129);
|
|
--dash-card: var(--surface-card, #fff);
|
|
--dash-soft: var(--surface-bg-base);
|
|
--dash-featured-bg: color-mix(
|
|
in srgb,
|
|
var(--commission-primary-soft, #e8f0ff) 62%,
|
|
var(--dash-card)
|
|
);
|
|
--dash-featured-line: color-mix(
|
|
in srgb,
|
|
var(--dash-primary) 24%,
|
|
var(--dash-line)
|
|
);
|
|
--dash-warning: var(--commission-warning);
|
|
--dash-danger: var(--commission-danger);
|
|
--dash-success: var(--commission-success);
|
|
--dash-warning-bg: var(--commission-warning-soft);
|
|
--dash-danger-bg: var(--commission-danger-soft);
|
|
--dash-grid: color-mix(in srgb, var(--dash-text) 11%, transparent);
|
|
--dash-muted-bar: color-mix(
|
|
in srgb,
|
|
var(--dash-primary) 28%,
|
|
var(--dash-card)
|
|
);
|
|
color: var(--dash-text);
|
|
min-width: 0;
|
|
}
|
|
|
|
.commission-dashboard-heading,
|
|
.commission-dashboard-trend-heading {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
}
|
|
|
|
.commission-dashboard-heading {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.commission-dashboard h2 {
|
|
margin: 0 0 6px;
|
|
font-size: 22px;
|
|
font-weight: 600;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.commission-dashboard h3 {
|
|
margin: 0 0 18px;
|
|
color: var(--dash-text);
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.commission-dashboard p {
|
|
margin: 0;
|
|
font-size: 13px;
|
|
color: var(--dash-muted);
|
|
line-height: 1.8;
|
|
}
|
|
|
|
.commission-dashboard-period {
|
|
flex-shrink: 0;
|
|
border: 1px solid var(--dash-line);
|
|
border-radius: 8px;
|
|
background: var(--dash-card);
|
|
padding: 6px 12px;
|
|
font-size: 12px;
|
|
color: var(--dash-muted);
|
|
}
|
|
|
|
.commission-dashboard-core,
|
|
.commission-dashboard-support {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
gap: 20px;
|
|
}
|
|
|
|
.commission-dashboard-stat,
|
|
.commission-dashboard-card {
|
|
border: 1px solid var(--dash-line);
|
|
border-radius: 10px;
|
|
background: var(--dash-card);
|
|
box-shadow: none;
|
|
min-width: 0;
|
|
}
|
|
|
|
.commission-dashboard-stat {
|
|
padding: 22px 24px;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.commission-dashboard-stat > span,
|
|
.commission-dashboard-summary-item > span,
|
|
.commission-dashboard-health-item > span {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 9px;
|
|
font-size: 13px;
|
|
font-weight: 400;
|
|
color: var(--dash-muted);
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.commission-dashboard strong {
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.commission-dashboard-stat > span > svg,
|
|
.commission-dashboard-health-item > span > svg {
|
|
flex-shrink: 0;
|
|
color: var(--dash-primary);
|
|
}
|
|
|
|
.commission-dashboard strong > small {
|
|
margin-inline-start: 6px;
|
|
font-size: 13px;
|
|
font-weight: 400;
|
|
letter-spacing: 0;
|
|
color: var(--dash-muted);
|
|
}
|
|
|
|
.commission-dashboard-stat > strong {
|
|
display: block;
|
|
margin-top: 8px;
|
|
font-size: 30px;
|
|
font-weight: 600;
|
|
letter-spacing: -0.7px;
|
|
line-height: 1.5;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.commission-dashboard-stat > small {
|
|
display: block;
|
|
margin-top: 6px;
|
|
color: var(--dash-muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.commission-dashboard-stat--featured {
|
|
background: linear-gradient(
|
|
120deg,
|
|
var(--dash-card),
|
|
var(--commission-primary-soft)
|
|
);
|
|
border-color: var(--dash-line);
|
|
}
|
|
|
|
.commission-dashboard-stat--featured > strong {
|
|
color: var(--dash-primary);
|
|
}
|
|
|
|
.commission-dashboard-support {
|
|
margin-top: 16px;
|
|
}
|
|
|
|
.commission-dashboard-support .commission-dashboard-stat {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
padding: 16px 22px;
|
|
}
|
|
|
|
.commission-dashboard-support .commission-dashboard-stat > strong {
|
|
margin: 0;
|
|
font-size: 23px;
|
|
}
|
|
|
|
.commission-dashboard p.commission-dashboard-note {
|
|
margin-top: 14px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.commission-dashboard-main {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 2.2fr) minmax(280px, 1fr);
|
|
gap: 20px;
|
|
margin: 24px 0 20px;
|
|
}
|
|
|
|
.commission-dashboard-card {
|
|
padding: 24px;
|
|
}
|
|
|
|
.commission-dashboard-todo-summary {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
gap: 12px;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.commission-dashboard button {
|
|
font-family: inherit;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.commission-dashboard button:focus-visible {
|
|
outline: 2px solid var(--dash-primary);
|
|
outline-offset: 3px;
|
|
}
|
|
|
|
.commission-dashboard-summary-item {
|
|
padding: 14px;
|
|
text-align: left;
|
|
border: 1px solid transparent;
|
|
border-radius: 8px;
|
|
background: var(--dash-soft);
|
|
min-width: 0;
|
|
}
|
|
|
|
.commission-dashboard-summary-item > span {
|
|
font-size: 12px;
|
|
}
|
|
|
|
.commission-dashboard-summary-item > strong {
|
|
display: block;
|
|
margin-top: 6px;
|
|
font-size: 23px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.commission-dashboard-primary {
|
|
color: var(--dash-primary);
|
|
}
|
|
|
|
.commission-dashboard-warning {
|
|
color: var(--dash-warning);
|
|
}
|
|
|
|
.commission-dashboard-danger {
|
|
color: var(--dash-danger);
|
|
}
|
|
|
|
.commission-dashboard-success {
|
|
color: var(--dash-success);
|
|
}
|
|
|
|
.commission-dashboard-todo {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 14px;
|
|
border-bottom: 1px solid var(--dash-line);
|
|
padding: 19px 0;
|
|
}
|
|
|
|
.commission-dashboard-todo:last-child {
|
|
border: 0;
|
|
padding-bottom: 0;
|
|
}
|
|
|
|
.commission-dashboard-todo > div {
|
|
min-width: 0;
|
|
}
|
|
|
|
.commission-dashboard-todo > .ant-btn {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.commission-dashboard-summary-item strong > small {
|
|
font-size: 11px;
|
|
}
|
|
|
|
.commission-dashboard-tag {
|
|
display: inline-block;
|
|
border-radius: 8px;
|
|
padding: 1px 7px;
|
|
font-size: 11px;
|
|
line-height: 1.8;
|
|
}
|
|
|
|
.commission-dashboard-tag--primary {
|
|
background: var(--dash-featured-bg);
|
|
color: var(--dash-primary);
|
|
}
|
|
|
|
.commission-dashboard-tag--warning {
|
|
background: var(--dash-warning-bg);
|
|
color: var(--dash-warning);
|
|
}
|
|
|
|
.commission-dashboard-tag--danger {
|
|
background: var(--dash-danger-bg);
|
|
color: var(--dash-danger);
|
|
}
|
|
|
|
.commission-dashboard-todo h4 {
|
|
margin: 5px 0 2px;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.commission-dashboard-todo small {
|
|
display: block;
|
|
color: var(--dash-muted);
|
|
font-size: 12px;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.commission-dashboard-button {
|
|
flex-shrink: 0;
|
|
border: 1px solid var(--dash-line);
|
|
border-radius: 8px;
|
|
padding: 6px 12px;
|
|
color: var(--text-secondary);
|
|
background: var(--dash-card);
|
|
font-size: 12px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.commission-dashboard-button--primary {
|
|
border-color: var(--dash-primary);
|
|
color: var(--commission-on-primary);
|
|
background: var(--dash-primary);
|
|
}
|
|
|
|
.commission-dashboard-summary-item:hover,
|
|
.commission-dashboard-health-item:hover {
|
|
border-color: var(--dash-primary);
|
|
}
|
|
|
|
.commission-dashboard-chart-column:hover .commission-dashboard-chart-bar,
|
|
.commission-dashboard-chart-column:focus-visible
|
|
.commission-dashboard-chart-bar {
|
|
background: var(--commission-primary-hover);
|
|
}
|
|
|
|
.commission-dashboard-health h3 {
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.commission-dashboard-health-item {
|
|
width: 100%;
|
|
margin-top: 18px;
|
|
border: 1px solid transparent;
|
|
border-radius: 8px;
|
|
padding: 24px;
|
|
text-align: left;
|
|
background: var(--dash-soft);
|
|
}
|
|
|
|
.commission-dashboard-health-item > strong {
|
|
display: block;
|
|
margin-top: 8px;
|
|
font-size: 32px;
|
|
line-height: 1.3;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.commission-dashboard-health-item > p {
|
|
margin-top: 12px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.commission-dashboard-health-item > small {
|
|
display: block;
|
|
margin-top: 12px;
|
|
color: var(--dash-primary);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.commission-dashboard-trend-heading {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.commission-dashboard-trend-heading h3 {
|
|
margin: 0;
|
|
}
|
|
|
|
.commission-dashboard-trend-heading > span {
|
|
color: var(--dash-muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.commission-dashboard-trend-error {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
margin: 0 0 20px;
|
|
border: 1px solid
|
|
color-mix(in srgb, var(--dash-warning) 24%, var(--dash-line));
|
|
border-radius: 8px;
|
|
padding: 10px 12px;
|
|
background: var(--dash-warning-bg);
|
|
color: var(--dash-warning);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.commission-dashboard-chart {
|
|
display: grid;
|
|
grid-template-columns: repeat(6, minmax(0, 1fr));
|
|
min-width: 0;
|
|
}
|
|
|
|
.commission-dashboard-chart-frame {
|
|
display: grid;
|
|
grid-template-columns: max-content minmax(0, 1fr);
|
|
gap: 16px;
|
|
padding: 16px 16px 0;
|
|
}
|
|
|
|
.commission-dashboard-chart-axis {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
height: 145px;
|
|
color: var(--dash-muted);
|
|
font-size: 11px;
|
|
font-variant-numeric: tabular-nums;
|
|
text-align: end;
|
|
line-height: 1;
|
|
}
|
|
|
|
.commission-dashboard-chart-axis > span {
|
|
transform: translateY(-50%);
|
|
}
|
|
|
|
.commission-dashboard-chart-column {
|
|
min-width: 0;
|
|
border: 0;
|
|
padding: 0;
|
|
background: transparent;
|
|
text-align: center;
|
|
color: var(--dash-muted);
|
|
}
|
|
|
|
.commission-dashboard-chart-plot {
|
|
display: flex;
|
|
align-items: flex-end;
|
|
justify-content: center;
|
|
height: 145px;
|
|
border-bottom: 1px solid var(--dash-line);
|
|
background-image: linear-gradient(var(--dash-grid) 1px, transparent 1px);
|
|
background-size: 100% 25%;
|
|
}
|
|
|
|
.commission-dashboard-chart-bar {
|
|
position: relative;
|
|
display: block;
|
|
width: 42%;
|
|
max-width: 44px;
|
|
min-height: 1px;
|
|
border-radius: 4px 4px 0 0;
|
|
background: var(--dash-muted-bar);
|
|
}
|
|
|
|
.commission-dashboard-chart-column--current .commission-dashboard-chart-bar {
|
|
background: var(--dash-primary);
|
|
}
|
|
|
|
.commission-dashboard-chart-value {
|
|
position: absolute;
|
|
left: 50%;
|
|
bottom: calc(100% + 8px);
|
|
transform: translateX(-50%);
|
|
font-size: 12px;
|
|
font-variant-numeric: tabular-nums;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.commission-dashboard-chart-month {
|
|
display: block;
|
|
margin-top: 10px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.commission-dashboard-chart-status {
|
|
display: block;
|
|
margin-top: 3px;
|
|
color: var(--dash-muted);
|
|
font-size: 11px;
|
|
}
|
|
|
|
@media (max-width: 1300px) {
|
|
.commission-dashboard-todo-summary {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
|
|
.commission-dashboard-stat {
|
|
padding: 18px;
|
|
}
|
|
|
|
.commission-dashboard-stat > strong {
|
|
font-size: 26px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 1000px) {
|
|
.commission-dashboard-main {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.commission-dashboard-health-metrics {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 12px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.commission-dashboard-core,
|
|
.commission-dashboard-support {
|
|
grid-template-columns: 1fr;
|
|
gap: 12px;
|
|
}
|
|
|
|
.commission-dashboard-todo-summary {
|
|
gap: 10px;
|
|
}
|
|
|
|
.commission-dashboard-summary-item {
|
|
padding: 12px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 520px) {
|
|
.commission-dashboard-heading,
|
|
.commission-dashboard-trend-heading {
|
|
align-items: flex-start;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
.commission-dashboard-card {
|
|
padding: 16px;
|
|
}
|
|
|
|
.commission-dashboard-health-metrics {
|
|
grid-template-columns: 1fr;
|
|
gap: 0;
|
|
}
|
|
|
|
.commission-dashboard-todo {
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.commission-dashboard-button {
|
|
padding: 6px 9px;
|
|
}
|
|
|
|
.commission-dashboard-chart-value {
|
|
font-size: 10px;
|
|
}
|
|
|
|
.commission-dashboard-chart-frame {
|
|
gap: 8px;
|
|
padding-inline: 0;
|
|
}
|
|
}
|