dootask/resources/assets/sass/pages/page-dashboard.scss

1876 lines
50 KiB
SCSS
Vendored
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

.page-dashboard {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
background-color: #ffffff;
.dashboard-scroller {
flex: 1;
width: 100%;
height: 100%;
}
.dashboard-warning {
position: sticky;
top: 0;
z-index: 2;
display: flex;
justify-content: center;
.ivu-alert {
border-top: 0;
border-top-left-radius: 0;
border-top-right-radius: 0;
margin-bottom: 0;
> span {
cursor: pointer;
}
}
}
.dashboard-body {
max-width: 1208px;
margin: 0 auto;
padding: clamp(16px, 3vw, 36px);
display: flex;
flex-direction: column;
gap: 20px;
}
// ==================== 头部 ====================
.dashboard-header {
display: flex;
align-items: flex-start;
gap: 14px;
flex-wrap: wrap;
.header-left {
flex: 1;
min-width: 220px;
display: flex;
flex-direction: column;
gap: 5px;
.header-hello {
color: #22261f;
font-size: 24px;
font-weight: 600;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.header-sub {
display: flex;
align-items: center;
font-size: 13px;
color: #7a8078;
.team-cache-help {
display: inline-flex;
padding-left: 6px;
color: #a2a89f;
font-size: 15px;
cursor: pointer;
transition: color 0.2s;
&:hover {
color: #1e9e55;
}
}
.dashboard-load {
display: flex;
align-items: center;
justify-content: center;
width: 14px;
height: 14px;
margin-left: 6px;
}
}
.header-servertime {
font-size: 12px;
color: #a2a89f;
> span {
margin-right: 4px;
}
}
}
.header-right {
flex: 1;
display: flex;
align-items: center;
justify-content: flex-end;
gap: 10px 14px;
flex-wrap: wrap;
.header-search {
display: flex;
align-items: center;
gap: 8px;
background: rgba(244, 245, 247, 0.8);
border-radius: 10px;
padding: 8px 12px;
min-width: 150px;
color: #7a8078;
font-size: 13px;
cursor: pointer;
transition: background 0.2s;
> i {
font-size: 20px;
}
> span {
white-space: nowrap;
}
&:hover {
background: #f4f5f7;
}
&.min-search {
min-width: auto;
> i {
font-size: 22px;
}
> span {
display: none;
}
}
}
.header-seg {
display: flex;
background: rgba(244, 245, 247, 0.8);
border-radius: 10px;
padding: 3px;
flex-shrink: 0;
> span {
padding: 6px 16px;
border-radius: 8px;
font-size: 13px;
color: #7a8078;
cursor: pointer;
white-space: nowrap;
&.seg-active {
background: #ffffff;
color: #22261f;
font-weight: 500;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
}
}
// 部门范围选择(团队视角,占个人视角布局切换的同一槽位)
.header-dept {
display: flex;
align-items: center;
gap: 7px;
background: rgba(244, 245, 247, 0.8);
border-radius: 10px;
padding: 8px 12px;
max-width: 260px;
font-size: 13px;
color: #22261f;
cursor: pointer;
transition: background 0.2s;
> i {
color: #7a8078;
font-size: 17px;
}
> span {
font-weight: 500;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.dept-badge {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 19px;
height: 19px;
border-radius: 10px;
padding: 0 5px;
background: #e6e8ea;
color: #5f665c;
font-style: normal;
font-size: 11px;
font-weight: 500;
font-variant-numeric: tabular-nums;
}
&:hover {
background: #f4f5f7;
}
}
}
}
// ==================== 通用卡片 ====================
.dashboard-card {
background: #ffffff;
border-radius: 14px;
box-shadow: 0 0 0 1px rgba(28, 32, 26, 0.06), 0 2px 8px rgba(28, 32, 26, 0.05);
overflow: hidden;
}
.dashboard-cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
gap: 14px;
> li {
position: relative;
display: flex;
flex-direction: column;
justify-content: space-between;
list-style: none;
background: #ffffff;
border-radius: 14px;
box-shadow: 0 0 0 1px rgba(28, 32, 26, 0.06), 0 2px 8px rgba(28, 32, 26, 0.05);
padding: 18px 22px;
cursor: pointer;
transition: box-shadow 0.2s;
&:hover {
box-shadow: 0 0 0 1.5px rgba(28, 32, 26, 0.16), 0 2px 8px rgba(28, 32, 26, 0.05);
}
&.card-static {
cursor: default;
}
.card-label {
font-size: 13px;
color: #7a8078;
margin-bottom: 6px;
}
.card-data {
display: flex;
align-items: baseline;
gap: 8px;
.card-num {
font-size: 32px;
font-weight: 650;
color: #22261f;
line-height: 1;
font-variant-numeric: tabular-nums;
&.num-red {
color: #d94f46;
}
&.num-orange {
color: #c47316;
}
&.num-green {
color: #177f44;
}
}
.card-sub {
font-size: 12px;
color: #a2a89f;
}
}
.card-link {
font-size: 12px;
color: #a2a89f;
margin-top: 8px;
&.link-red {
color: #d94f46;
}
&.link-orange {
color: #c47316;
}
}
// 待完成卡右下角弱化显示「待开始」数量绝对定位不占高0 项时整块不渲染)
.duo-upcoming {
position: absolute;
right: 22px;
bottom: 18px;
text-align: right;
cursor: pointer;
transform: scale(0.9);
transform-origin: bottom right;
.side-num {
font-size: 20px;
font-weight: 500;
color: #8a63d2;
line-height: 20px;
font-variant-numeric: tabular-nums;
}
.side-label {
font-size: 12px;
color: #a99cc9;
margin-top: 1px;
line-height: 16px;
white-space: nowrap;
}
&:hover .side-num {
color: #6b4fa8;
}
}
// 数值为 0数字灰显、不可点击
&.card-off {
cursor: default;
&:hover {
box-shadow: 0 0 0 1px rgba(28, 32, 26, 0.06), 0 2px 8px rgba(28, 32, 26, 0.05);
}
.card-data .card-num {
color: #c2c7bf;
}
}
}
}
.card-more {
padding: 10px 20px;
font-size: 12.5px;
color: #7a8078;
cursor: pointer;
transition: color 0.2s;
&:hover {
color: #177f44;
}
&.more-done {
color: #a2a89f;
cursor: default;
&:hover {
color: #a2a89f;
}
}
}
// 工作流状态胶囊(自定义颜色走 css 变量,与任务列表机制一致)
.status-pill {
display: inline-block;
font-style: normal;
font-size: 11.5px;
line-height: 1.4;
padding: 2px 8px;
border-radius: 999px;
color: #6f7570;
background-color: #f0f0ec;
white-space: nowrap;
&.start {
background-color: var(--flow-item-custom-color-10, rgba($flow-status-start-color, 0.1));
color: var(--flow-item-custom-color-100, $flow-status-start-color);
}
&.progress {
background-color: var(--flow-item-custom-color-10, rgba($flow-status-progress-color, 0.1));
color: var(--flow-item-custom-color-100, $flow-status-progress-color);
}
&.test {
background-color: var(--flow-item-custom-color-10, rgba($flow-status-test-color, 0.1));
color: var(--flow-item-custom-color-100, $flow-status-test-color);
}
&.end {
background-color: var(--flow-item-custom-color-10, rgba($flow-status-end-color, 0.1));
color: var(--flow-item-custom-color-100, $flow-status-end-color);
}
}
.priority-dot {
display: inline-block;
width: 7px;
height: 7px;
border-radius: 50%;
}
.t-end {
text-align: right;
color: #7a8078;
font-size: 12.5px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
&.end-today {
color: #c47316;
font-weight: 600;
}
&.end-overdue {
color: #d94f46;
font-weight: 600;
}
}
.mock-avatar {
display: inline-flex;
align-items: center;
justify-content: center;
width: 26px;
height: 26px;
border-radius: 50%;
color: #ffffff;
font-size: 11px;
flex-shrink: 0;
&.avatar-none {
background: transparent;
border: 1.5px dashed #c6cbc4;
color: #a2a89f;
}
}
// ==================== 个人视角:列表 ====================
.my-table {
.table-body {
margin: 4px 0;
}
.table-row {
display: grid;
grid-template-columns: 28px minmax(0, 1fr) 140px 90px 90px 76px 96px;
gap: 12px;
align-items: center;
padding: 11px 20px;
font-size: 13px;
cursor: pointer;
&:hover {
background: #fafaf6;
}
&.table-thead {
padding: 12px 20px 10px;
font-size: 11.5px;
color: #a2a89f;
cursor: default;
&:hover {
background: transparent;
}
}
&.complete {
.cell-name {
opacity: 0.5;
text-decoration: line-through;
}
}
.cell-check {
display: flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
.task-menu-icon {
display: flex;
align-items: center;
color: #bbbbbb;
cursor: pointer;
.ivu-icon {
font-size: 18px;
}
}
}
.cell-name {
color: #22261f;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
// 标题前状态胶囊:仅在状态列被隐藏的窄屏场景显示
.name-status {
display: none;
font-size: 11px;
padding: 1px 7px;
margin-right: 4px;
vertical-align: 1px;
cursor: pointer;
}
.name-tag {
font-style: normal;
font-size: 12px;
height: 18px;
min-width: 20px;
line-height: 16px;
padding: 0 3px;
border-radius: 3px;
color: $primary-color;
border: 1px solid $primary-color;
display: inline-block;
vertical-align: 1px;
margin-right: 3px;
text-align: center;
}
}
.t-project {
color: #7a8078;
font-size: 12.5px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.t-status {
display: flex;
align-items: center;
justify-self: start;
max-width: 100%;
.status-pill {
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
}
}
.t-priority {
display: flex;
align-items: center;
color: #7a8078;
font-size: 12px;
gap: 5px;
> i {
flex-shrink: 0;
}
> span {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}
.t-sub {
display: flex;
align-items: center;
gap: 6px;
color: #a2a89f;
.sub-bar {
width: 40px;
height: 4px;
background: #ecebe6;
border-radius: 2px;
overflow: hidden;
> b {
display: block;
height: 100%;
background: #1e9e55;
}
}
> em {
font-style: normal;
font-size: 11.5px;
font-variant-numeric: tabular-nums;
}
}
}
.table-group {
display: flex;
align-items: center;
gap: 8px;
padding: 10px 20px;
cursor: pointer;
transition: box-shadow 0.35s;
.group-dot {
width: 7px;
height: 7px;
border-radius: 50%;
flex-shrink: 0;
}
.group-title {
font-size: 12.5px;
font-weight: 600;
}
.group-chevron {
margin-left: auto;
font-weight: normal;
font-size: 18px;
line-height: 1;
transform: rotate(180deg);
transition: transform 0.3s;
&.chevron-close {
transform: rotate(90deg);
}
}
&.group-overdue {
background: rgba(251, 236, 235, 0.55);
.group-dot {
background: #d94f46;
}
.group-title {
color: #b6423a;
}
.group-chevron {
color: #d9a5a0;
}
}
&.group-today {
background: rgba(250, 244, 233, 0.65);
.group-dot {
background: #c47316;
}
.group-title {
color: #a3620f;
}
.group-chevron {
color: #d8bb90;
}
}
&.group-todo {
background: #f4f4ef;
.group-dot {
background: #9aa096;
}
.group-title {
color: #7a8078;
}
.group-chevron {
color: #a2a89f;
}
}
&.group-upcoming {
background: rgba(243, 240, 250, 0.6);
.group-dot {
background: #8a63d2;
}
.group-title {
color: #6b4fa8;
}
.group-chevron {
color: #b3a1d9;
}
}
&.group-assist {
background: rgba(238, 243, 251, 0.6);
.group-dot {
background: #3a7bd5;
}
.group-title {
color: #31589c;
}
.group-chevron {
color: #8ba3c9;
}
}
&.group-completed {
background: rgba(231, 245, 236, 0.72);
.group-dot {
background: #1e9e55;
}
.group-title {
color: #287a4b;
}
.group-chevron {
color: #8db89c;
}
}
&.group-flash {
box-shadow: inset 0 0 0 2px #1e9e55;
}
}
// 全部分组都无数据时的整卡缺省态
.table-all-empty {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 48px 30px 42px;
color: #a2a89f;
font-size: 13px;
.empty-state-loading {
min-height: 260px;
display: flex;
align-items: center;
justify-content: center;
}
.empty-state-content {
width: min(100%, 720px);
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
}
.empty-icon {
display: flex;
align-items: center;
justify-content: center;
width: 48px;
height: 48px;
border-radius: 50%;
background: #e7f5ec;
color: #1e9e55;
font-size: 23px;
&.empty-icon-new {
background: #fff4e5;
color: #c47316;
}
}
.empty-state-title {
margin-top: 16px;
color: #22261f;
font-size: 18px;
font-weight: 600;
line-height: 1.4;
}
.empty-state-summary {
margin-top: 8px;
color: #7a8078;
font-size: 13px;
line-height: 1.6;
}
.empty-state-actions {
margin-top: 19px;
.ivu-btn {
min-width: 112px;
}
}
.empty-state-hint {
margin-top: 14px;
color: #a2a89f;
font-size: 12px;
}
.recent-completed-list {
width: min(100%, 680px);
margin-top: 30px;
border-top: 1px solid #ecefe9;
text-align: left;
}
.recent-completed-head {
display: flex;
align-items: center;
justify-content: space-between;
padding: 14px 0 8px;
color: #6f776e;
font-size: 12px;
> em {
color: #a2a89f;
font-size: 11px;
font-style: normal;
}
}
.recent-completed-row {
display: grid;
grid-template-columns: 22px minmax(0, 1fr) 130px 82px;
align-items: center;
gap: 10px;
padding: 10px 0;
border-top: 1px solid #f0f2ee;
color: #4f584f;
cursor: pointer;
text-align: left;
&:hover {
color: #22261f;
}
}
.recent-completed-check {
color: $primary-color;
font-size: 18px;
}
.recent-completed-name,
.recent-completed-project,
.recent-completed-time {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.recent-completed-name {
font-size: 13px;
}
.recent-completed-project,
.recent-completed-time {
color: #a2a89f;
font-size: 11.5px;
}
.recent-completed-time {
text-align: right;
}
}
.table-empty-group {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
padding: 22px 20px;
color: #a2a89f;
font-size: 12.5px;
.empty-icon {
display: flex;
align-items: center;
justify-content: center;
width: 22px;
height: 22px;
border-radius: 50%;
background: #e7f5ec;
color: #1e9e55;
font-size: 13px;
}
}
}
// ==================== 个人视角:四象限 ====================
.dashboard-quad {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 16px;
.quad-card {
display: flex;
flex-direction: column;
.quad-head {
display: flex;
align-items: center;
gap: 10px;
padding: 16px 20px 12px;
.group-dot {
width: 8px;
height: 8px;
border-radius: 50%;
flex-shrink: 0;
}
.group-title {
flex: 1;
font-size: 14px;
font-weight: 600;
color: #22261f;
}
.quad-num {
font-size: 22px;
font-weight: 650;
color: #22261f;
font-variant-numeric: tabular-nums;
}
}
&.group-overdue {
box-shadow: 0 0 0 1px rgba(217, 79, 70, 0.16), 0 2px 8px rgba(28, 32, 26, 0.05);
.quad-head {
.group-dot {
background: #d94f46;
}
.group-title {
color: #b6423a;
}
.quad-num {
color: #d94f46;
}
}
}
&.group-today {
.group-dot {
background: #c47316;
}
.quad-num {
color: #c47316;
}
}
&.group-todo {
.group-dot {
background: #1e9e55;
}
}
&.group-assist {
.group-dot {
background: #3a7bd5;
}
}
.quad-head .quad-num.num-zero {
color: #c2c7bf;
}
.quad-row {
display: flex;
align-items: center;
gap: 12px;
padding: 11px 20px;
font-size: 13.5px;
cursor: pointer;
&:hover {
background: #fafaf6;
}
&.complete {
.cell-name {
opacity: 0.5;
text-decoration: line-through;
}
}
.cell-check {
display: flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
flex-shrink: 0;
.task-menu-icon {
display: flex;
align-items: center;
font-size: 18px;
color: #bbbbbb;
cursor: pointer;
.ivu-icon {
font-size: 18px;
}
}
}
.cell-name {
flex: 1;
color: #22261f;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.status-pill {
flex-shrink: 0;
max-width: 42%;
overflow: hidden;
text-overflow: ellipsis;
}
.quad-priority {
display: flex;
align-items: center;
flex-shrink: 0;
}
.quad-sub {
flex-shrink: 0;
font-size: 11.5px;
color: #a2a89f;
font-variant-numeric: tabular-nums;
}
.t-end {
flex-shrink: 0;
min-width: 66px;
font-size: 12px;
}
}
// 空状态:图标 + 文案垂直居中填满剩余空间
.quad-empty {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 12px;
padding: 72px 20px;
color: #a2a89f;
font-size: 12.5px;
.empty-icon {
display: flex;
align-items: center;
justify-content: center;
width: 36px;
height: 36px;
border-radius: 50%;
background: #e7f5ec;
color: #1e9e55;
font-size: 20px;
}
}
// 数据较少时的填充文案(全部显示完毕等),居中填满剩余空间
.quad-filler {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
padding: 36px 20px 44px;
color: #a2a89f;
font-size: 12.5px;
}
.card-more {
margin-top: auto;
}
}
}
// ==================== 团队概览 ====================
.dashboard-team {
display: flex;
flex-direction: column;
gap: 20px;
.team-avatar {
flex-shrink: 0;
}
.card-head {
display: flex;
align-items: center;
gap: 10px;
padding: 15px 20px;
flex-wrap: wrap;
.head-title {
font-size: 14px;
font-weight: 600;
color: #22261f;
flex-shrink: 0;
}
.head-legend {
display: flex;
gap: 14px;
margin-left: auto;
font-size: 11.5px;
color: #7a8078;
> span {
display: flex;
align-items: center;
gap: 5px;
> i {
width: 8px;
height: 8px;
border-radius: 2px;
}
}
}
.head-note {
font-size: 12px;
color: #a2a89f;
}
}
.team-duo {
display: flex;
align-items: stretch;
gap: 16px;
flex-wrap: wrap;
.team-members {
flex: 1.5;
min-width: min(420px, 100%);
}
.team-priority {
flex: 1;
min-width: min(300px, 100%);
display: flex;
flex-direction: column;
}
}
.team-stats-loading {
min-height: 220px;
display: flex;
align-items: center;
justify-content: center;
}
.member-list {
--member-grid-columns: 26px 60px minmax(80px, 1fr) fit-content(220px);
display: grid;
grid-template-columns: var(--member-grid-columns);
column-gap: 12px;
padding: 2px 20px 6px;
> li {
list-style: none;
}
.member-row {
grid-column: 1 / -1;
display: grid;
grid-template-columns: subgrid;
align-items: center;
column-gap: 12px;
padding: 9px 0;
cursor: pointer;
&:hover {
background: #fafaf6;
}
.member-name {
min-width: 0;
font-size: 13px;
color: #22261f;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.member-track {
min-width: 0;
height: 10px;
border-radius: 5px;
background: #f0efea;
overflow: hidden;
.member-bar {
display: flex;
height: 100%;
> i {
height: 100%;
}
&.bar-hatched {
display: block;
background: repeating-linear-gradient(45deg, #e8c893, #e8c893 4px, #f5e3c4 4px, #f5e3c4 8px);
}
}
}
.member-num {
min-width: 0;
max-width: 220px;
text-align: right;
font-size: 12px;
color: #7a8078;
font-variant-numeric: tabular-nums;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
> em {
font-style: normal;
}
.num-overdue {
color: #d94f46;
font-weight: 600;
}
&.num-noowner {
color: #c47316;
font-weight: 600;
}
}
&.member-noowner {
.member-name {
color: #c47316;
font-weight: 500;
}
}
}
}
.priority-list {
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
padding: 4px 20px 16px;
.priority-row {
padding: 7px 0;
cursor: pointer;
transition: opacity 0.2s;
&:hover {
opacity: 0.75;
}
.priority-head {
display: flex;
font-size: 12.5px;
margin-bottom: 5px;
.priority-name {
flex: 1;
color: #22261f;
}
.priority-num {
color: #7a8078;
font-variant-numeric: tabular-nums;
}
}
.priority-bar {
height: 10px;
border-radius: 5px;
background: #f0efea;
overflow: hidden;
> i {
display: block;
height: 100%;
border-radius: 5px;
}
}
}
.priority-tip {
margin-top: 6px;
font-size: 11.5px;
color: #a2a89f;
&.priority-more {
color: #7a8078;
cursor: pointer;
transition: color 0.2s;
&:hover {
color: #177f44;
}
}
}
}
.team-focus-section {
&.focus-scroll-reserve {
// 点击下钻后预留一个可视区高度,离开负责人视角时恢复正常布局
min-height: calc(var(--window-height) - var(--status-bar-height) - var(--navigation-bar-height) - 52px);
}
}
.team-focus {
.focus-head {
gap: 8px;
.head-title {
margin-right: 8px;
}
}
.focus-chip {
font-size: 12px;
padding: 5px 12px;
border-radius: 999px;
color: #7a8078;
cursor: pointer;
white-space: nowrap;
&.chip-active {
font-weight: 600;
&.chip-overdue {
background: #fbeceb;
color: #b6423a;
}
&.chip-soon {
background: #faf1e2;
color: #a3620f;
}
&.chip-hi {
background: #f1ecfa;
color: #5b3fa8;
}
&.chip-noowner {
background: #fdf3da;
color: #a3620f;
}
&.chip-extra {
background: #eef3fb;
color: #31589c;
}
}
> i {
font-style: normal;
margin-left: 6px;
}
}
.focus-row {
display: grid;
grid-template-columns: minmax(0, 1fr) 150px 110px 84px 84px 100px;
gap: 12px;
align-items: center;
padding: 12px 20px;
font-size: 13px;
cursor: pointer;
&:hover {
background: #fafaf6;
}
&.focus-thead {
padding: 9px 20px;
font-size: 11.5px;
color: #a2a89f;
cursor: default;
&:hover {
background: transparent;
}
}
.f-name {
color: #22261f;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.f-project {
color: #7a8078;
font-size: 12.5px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.f-owner {
display: flex;
align-items: center;
gap: 6px;
color: #22261f;
font-size: 12.5px;
white-space: nowrap;
.mock-avatar {
width: 20px;
height: 20px;
font-size: 10px;
}
.owner-none {
font-style: normal;
color: #c47316;
}
.owner-name {
overflow: hidden;
text-overflow: ellipsis;
}
.owner-more {
flex-shrink: 0;
color: #a2a89f;
font-size: 11px;
font-style: normal;
}
}
.f-priority {
display: flex;
align-items: center;
gap: 5px;
color: #7a8078;
font-size: 12px;
> i {
flex-shrink: 0;
}
> span {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}
.f-status {
justify-self: start;
max-width: 100%;
.status-pill {
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
}
}
.f-end {
text-align: right;
color: #7a8078;
font-size: 12.5px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
&.end-today {
color: #c47316;
font-weight: 600;
}
&.end-overdue {
color: #d94f46;
font-weight: 600;
}
}
}
.focus-loading {
display: flex;
align-items: center;
justify-content: center;
min-height: 150px;
}
.focus-empty {
min-height: 150px;
padding: 24px 20px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 7px;
color: #a2a89f;
font-size: 12.5px;
.focus-empty-icon {
width: 34px;
height: 34px;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 3px;
border-radius: 50%;
background: #e7f5ec;
color: #1e9e55;
font-size: 19px;
}
> strong {
color: #555c53;
font-size: 13.5px;
font-weight: 600;
}
}
}
}
}
.dashboard-cache-popper {
.dashboard-cache-popover {
width: 260px;
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 8px;
> strong {
color: #22261f;
font-size: 13.5px;
}
> p {
color: #7a8078;
font-size: 12.5px;
line-height: 1.65;
}
> span {
color: #a2a89f;
font-size: 12px;
}
> button {
align-self: flex-end;
margin-top: 2px;
height: 28px;
padding: 0 8px;
font-size: 13px;
}
}
}
@supports not (grid-template-columns: subgrid) {
.page-dashboard {
.dashboard-team {
.member-list {
display: block;
.member-row {
grid-template-columns: var(--member-grid-columns);
}
}
}
}
}
.dashboard-member-progress-popper {
.member-progress-tooltip {
min-width: 180px;
display: flex;
flex-direction: column;
gap: 7px;
.progress-tooltip-title {
color: #a2a89f;
font-size: 11px;
&.title-stage {
margin-top: 2px;
padding-top: 7px;
border-top: 1px solid rgba(128, 128, 128, 0.18);
}
}
.progress-tooltip-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
font-size: 12px;
.progress-tooltip-label {
display: flex;
align-items: center;
gap: 6px;
> i {
width: 8px;
height: 8px;
border-radius: 2px;
}
}
> strong {
font-weight: 500;
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
&.row-overdue {
.progress-tooltip-label,
> strong {
color: #d94f46;
}
}
}
}
}
// ==================== 窄窗口断点(视口含侧栏约 256px====================
@media (max-width: 1080px) {
.page-dashboard {
.my-table {
.table-row {
grid-template-columns: 28px minmax(0, 1fr) 90px 76px 96px;
.t-project,
.t-sub {
display: none;
}
}
.recent-completed-list .recent-completed-row {
grid-template-columns: 22px minmax(0, 1fr) 100px 78px;
}
}
.dashboard-team {
.team-focus {
.focus-row {
grid-template-columns: minmax(0, 1fr) 110px 84px 100px;
.f-project,
.f-status {
display: none;
}
}
}
}
}
}
@media (max-width: 760px) {
.page-dashboard {
.my-table {
.table-row {
grid-template-columns: 28px minmax(0, 1fr) 96px;
.t-status,
.t-priority {
display: none;
}
.cell-name .name-status {
display: inline-block;
}
}
.recent-completed-list .recent-completed-row {
grid-template-columns: 22px minmax(0, 1fr) 78px;
.recent-completed-project {
display: none;
}
}
}
.dashboard-team {
.team-focus {
.focus-row {
grid-template-columns: minmax(0, 1fr) 96px 96px;
.f-priority {
display: none;
}
}
}
}
.dashboard-quad {
grid-template-columns: minmax(0, 1fr);
}
}
}
// 加载状态(延时显示,立即隐藏)
.dashboard-load-enter-active {
transition: opacity 0.3s ease;
transition-delay: 1s;
}
.dashboard-load-leave-active {
transition: opacity 0.2s ease;
transition-delay: 0s;
}
.dashboard-load-enter,
.dashboard-load-leave-to {
opacity: 0;
}
// ==================== 竖屏适配 ====================
body.window-portrait {
.page-dashboard {
.dashboard-body {
padding: 16px 12px 24px;
gap: 16px;
}
.dashboard-header {
.header-left {
.header-hello,
.header-title > h2 {
font-size: 20px;
}
}
.header-right {
gap: 8px;
// 与右侧切换器等高对齐
.header-search {
&.min-search {
width: 34px;
height: 34px;
padding: 0;
justify-content: center;
> i {
font-size: 20px;
}
}
}
.header-seg {
height: 34px;
align-items: center;
> span {
padding: 4px 10px;
font-size: 12px;
}
}
.header-dept {
height: 34px;
padding: 0 10px;
max-width: 180px;
font-size: 12px;
}
}
}
.dashboard-cards {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px;
&.personal-panel {
> li {
gap: 8px;
}
}
> li {
padding: 12px 14px;
.card-data {
.card-num {
font-size: 26px;
}
}
.duo-upcoming {
right: 14px;
bottom: 12px;
}
}
}
.my-table {
.table-row {
grid-template-columns: 28px minmax(0, 1fr) 86px;
gap: 8px;
padding: 11px 14px;
&.table-thead {
display: none;
}
.t-project,
.t-status,
.t-priority,
.t-sub {
display: none;
}
.cell-name .name-status {
display: inline-block;
}
}
.table-all-empty {
padding: 38px 14px 30px;
.empty-state-title {
font-size: 16px;
}
.recent-completed-list {
margin-top: 24px;
}
}
.table-group {
padding: 13px 20px;
.group-dot {
width: 8px;
height: 8px;
margin-right: 2px;
}
.group-title {
font-weight: 400;
}
&.group-overdue,
&.group-today,
&.group-todo,
&.group-upcoming,
&.group-assist,
&.group-completed {
border-bottom: 1px solid #f4f4ef;
background: transparent;
}
}
}
.dashboard-quad {
grid-template-columns: minmax(0, 1fr);
.quad-card {
.quad-row {
padding: 11px 14px;
.status-pill,
.quad-sub {
display: none;
}
}
}
}
.dashboard-team {
gap: 14px;
.member-list {
--member-grid-columns: 26px 48px minmax(48px, 1fr) fit-content(180px);
padding: 2px 14px 6px;
.member-row {
padding: 9px 0;
.member-name {
min-width: 0;
}
.member-num {
max-width: 180px;
}
}
}
.team-focus {
.focus-row {
grid-template-columns: minmax(0, 1fr) 90px 96px;
gap: 8px;
padding: 12px 14px;
.f-project,
.f-priority,
.f-status {
display: none;
}
}
}
}
.card-more {
padding: 10px 14px;
}
}
}