Files
labelmain-demo/app/person/dashboard/page.module.css
2026-04-28 14:36:36 +08:00

329 lines
5.5 KiB
CSS

.pageIntro {
gap: 4px;
}
.breadcrumb {
color: #86909c;
font-size: 13px;
line-height: 20px;
}
.breadcrumbCurrent {
color: #4e5969;
}
.summaryGrid {
display: grid;
grid-template-columns: 180px repeat(3, minmax(0, 1fr));
}
.summaryDateCell,
.summaryMetricCell {
display: flex;
min-width: 0;
min-height: 116px;
flex-direction: column;
gap: 8px;
padding: 16px 20px;
}
.summaryDateCell,
.summaryMetricCell:not(:last-child) {
border-right: 1px solid #e5e6eb;
}
.summaryDateCell {
justify-content: center;
background: #f7f8fa;
}
.summaryDateLabel,
.summaryMetricLabel {
color: #86909c;
font-size: 12px;
font-weight: 500;
line-height: 20px;
}
.summaryDateValue {
color: #1d2129;
font-size: 28px;
font-weight: 500;
line-height: 32px;
}
.summaryDateMeta {
color: #4e5969;
font-size: 14px;
line-height: 20px;
}
.summaryMetricCell {
justify-content: center;
}
.summaryMetricValue {
color: #1d2129;
font-size: 24px;
font-weight: 500;
line-height: 32px;
}
.summaryMetricMeta {
display: inline-flex;
width: fit-content;
align-items: center;
gap: 8px;
border-radius: 4px;
background: #f7f8fa;
padding: 6px 10px;
}
.summaryMetricMetaLabel {
color: #86909c;
font-size: 12px;
line-height: 20px;
}
.summaryMetricMetaValue {
color: #1d2129;
font-size: 14px;
font-weight: 500;
line-height: 20px;
}
.tableGrid {
display: grid;
flex: 1;
min-height: 0;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
}
.dashboardPanel {
display: flex;
min-height: 0;
flex-direction: column;
}
.dashboardPanelBody {
display: flex;
min-height: 0;
flex: 1;
flex-direction: column;
padding: 16px;
}
.dashboardSection {
display: flex;
min-height: 0;
height: 100%;
flex-direction: column;
gap: 12px;
}
.dashboardTableArea {
display: flex;
min-height: 0;
flex: 1;
flex-direction: column;
}
.dashboardFilterBar {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: 12px 16px;
align-items: center;
padding-bottom: 12px;
border-bottom: 1px solid #e5e6eb;
}
.dashboardFilterField {
display: flex;
min-width: 0;
align-items: center;
gap: 10px;
}
.dashboardFilterLabel {
flex: 0 0 80px;
color: #4e5969;
font-size: 14px;
font-weight: 500;
line-height: 20px;
}
.dashboardFilterControl {
flex: 1;
min-width: 0;
}
.dashboardFilterControl :global(.mantine-InputWrapper-root) {
width: 100%;
}
.dashboardFilterBar :global(.mantine-Input-input),
.dashboardFilterBar :global(.mantine-DateInput-input) {
min-height: 32px;
border-color: #e5e6eb;
border-radius: 4px;
background: #f7f8fa;
color: #1d2129;
font-size: 14px;
box-shadow: none;
transition:
border-color 0.2s ease,
color 0.2s ease,
background-color 0.2s ease;
}
.dashboardFilterBar :global(.mantine-Input-input::placeholder),
.dashboardFilterBar :global(.mantine-DateInput-input::placeholder) {
color: #86909c;
}
.dashboardFilterBar :global(.mantine-Input-input:focus),
.dashboardFilterBar :global(.mantine-DateInput-input:focus) {
border-color: #1874ff;
background: #ffffff;
box-shadow: 0 0 0 2px rgba(24, 116, 255, 0.12);
}
.dashboardFilterBar :global(.mantine-Input-section),
.dashboardFilterBar :global(.mantine-DateInput-section) {
color: #86909c;
}
.dashboardFilterActions {
display: inline-flex;
align-items: center;
justify-self: end;
gap: 8px;
}
.dashboardFilterActions :global(.mantine-Button-root) {
min-height: 32px;
border-radius: 4px;
padding-inline: 12px;
font-size: 14px;
font-weight: 500;
box-shadow: none;
}
.dashboardFilterActions :global(.mantine-Button-root[data-variant="filled"]) {
--button-bg: #1874ff;
--button-hover: #0f6ae8;
--button-color: #ffffff;
--button-bd: transparent;
background: #1874ff !important;
color: #ffffff !important;
}
.dashboardFilterActions
:global(.mantine-Button-root[data-variant="filled"]:hover) {
background: #0f6ae8 !important;
}
.dashboardFilterActions :global(.mantine-Button-root[data-variant="default"]) {
border-color: #e5e6eb;
background: #ffffff;
color: #4e5969;
}
.tableLink {
border: 0;
padding: 0;
background: transparent;
color: #1874ff;
font-size: 14px;
line-height: 20px;
cursor: pointer;
}
.tableLink:disabled {
color: #c9cdd4;
cursor: not-allowed;
}
.tableCellText {
display: block;
color: #1d2129;
font-size: 14px;
line-height: 20px;
}
.ellipsisText {
display: block;
color: #1d2129;
font-size: 14px;
line-height: 20px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.statusBadge {
min-height: 24px;
border: 0;
border-radius: 999px;
padding: 0 10px;
font-size: 12px;
font-weight: 500;
}
@media (max-width: 1200px) {
.summaryGrid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.summaryMetricCell:nth-child(2) {
border-right: 0;
}
.summaryDateCell,
.summaryMetricCell {
border-bottom: 1px solid #e5e6eb;
}
.summaryMetricCell:nth-last-child(-n + 2) {
border-bottom: 0;
}
.tableGrid {
grid-template-columns: 1fr;
}
}
@media (max-width: 720px) {
.summaryGrid {
grid-template-columns: 1fr;
}
.summaryDateCell,
.summaryMetricCell {
border-right: 0;
}
.summaryMetricCell:not(:last-child) {
border-bottom: 1px solid #e5e6eb;
}
.dashboardFilterBar {
grid-template-columns: 1fr;
}
.dashboardFilterField {
flex-direction: column;
align-items: flex-start;
gap: 6px;
}
.dashboardFilterLabel {
flex-basis: auto;
}
.dashboardFilterActions {
justify-self: stretch;
}
}