.task-calendar-card {
|
.ant-card-body {
|
padding: 20px;
|
}
|
|
.ant-calendar {
|
border: 1px solid #f0f0f0;
|
border-radius: 8px;
|
overflow: hidden;
|
|
.ant-calendar-header {
|
background: #fafafa;
|
border-bottom: 1px solid #f0f0f0;
|
padding: 12px 16px;
|
|
.ant-calendar-prev-year-btn,
|
.ant-calendar-next-year-btn,
|
.ant-calendar-prev-month-btn,
|
.ant-calendar-next-month-btn {
|
color: #1890ff;
|
font-size: 12px;
|
|
&:hover {
|
color: #40a9ff;
|
}
|
}
|
|
.ant-calendar-my-select {
|
font-weight: 600;
|
color: #262626;
|
}
|
}
|
|
.ant-calendar-body {
|
padding: 8px 12px;
|
|
.ant-calendar-table {
|
.ant-calendar-thead {
|
th {
|
text-align: center;
|
font-weight: 600;
|
color: #595959;
|
padding: 8px 0;
|
border-bottom: 1px solid #f0f0f0;
|
}
|
}
|
|
.ant-calendar-tbody {
|
td {
|
border: 1px solid #f0f0f0;
|
padding: 4px 8px;
|
height: 80px;
|
vertical-align: top;
|
|
&.ant-calendar-date {
|
cursor: pointer;
|
transition: all 0.3s;
|
|
&:hover {
|
background: #f6ffed;
|
border-color: #52c41a;
|
}
|
|
&.ant-calendar-selected-day {
|
background: #e6f7ff;
|
border-color: #1890ff;
|
}
|
|
&.ant-calendar-today {
|
background: #fff7e6;
|
border-color: #faad14;
|
}
|
}
|
|
.ant-calendar-date {
|
text-align: center;
|
font-weight: 500;
|
color: #262626;
|
margin-bottom: 4px;
|
}
|
}
|
}
|
}
|
}
|
}
|
|
// 事件列表样式
|
.events {
|
margin: 0;
|
padding: 0;
|
list-style: none;
|
|
li {
|
margin-bottom: 4px;
|
line-height: 1.2;
|
|
.ant-badge {
|
width: 100%;
|
display: block;
|
font-size: 11px;
|
padding: 2px 4px;
|
border-radius: 3px;
|
background: rgba(24, 144, 255, 0.1);
|
border: 1px solid rgba(24, 144, 255, 0.2);
|
transition: all 0.3s;
|
|
&:hover {
|
background: rgba(24, 144, 255, 0.2);
|
border-color: rgba(24, 144, 255, 0.4);
|
}
|
|
.ant-badge-status-dot {
|
width: 6px;
|
height: 6px;
|
margin-right: 4px;
|
}
|
|
.ant-badge-status-text {
|
color: #262626;
|
font-weight: 500;
|
white-space: nowrap;
|
overflow: hidden;
|
text-overflow: ellipsis;
|
}
|
|
// 不同状态的颜色
|
&.ant-badge-status-success {
|
background: rgba(82, 196, 26, 0.1);
|
border-color: rgba(82, 196, 26, 0.2);
|
|
&:hover {
|
background: rgba(82, 196, 26, 0.2);
|
border-color: rgba(82, 196, 26, 0.4);
|
}
|
}
|
|
&.ant-badge-status-processing {
|
background: rgba(24, 144, 255, 0.1);
|
border-color: rgba(24, 144, 255, 0.2);
|
|
&:hover {
|
background: rgba(24, 144, 255, 0.2);
|
border-color: rgba(24, 144, 255, 0.4);
|
}
|
}
|
|
&.ant-badge-status-error {
|
background: rgba(245, 34, 45, 0.1);
|
border-color: rgba(245, 34, 45, 0.2);
|
|
&:hover {
|
background: rgba(245, 34, 45, 0.2);
|
border-color: rgba(245, 34, 45, 0.4);
|
}
|
}
|
|
&.ant-badge-status-warning {
|
background: rgba(250, 173, 20, 0.1);
|
border-color: rgba(250, 173, 20, 0.2);
|
|
&:hover {
|
background: rgba(250, 173, 20, 0.2);
|
border-color: rgba(250, 173, 20, 0.4);
|
}
|
}
|
}
|
}
|
}
|
|
// 月份视图样式
|
.notes-month {
|
text-align: center;
|
|
section {
|
font-size: 12px;
|
color: #8c8c8c;
|
margin-bottom: 4px;
|
}
|
|
ul {
|
margin: 0;
|
padding: 0;
|
list-style: none;
|
|
li {
|
margin-bottom: 2px;
|
|
.ant-badge {
|
font-size: 10px;
|
|
.ant-badge-status-text {
|
color: #595959;
|
}
|
}
|
}
|
}
|
}
|
}
|
|
// 任务详情模态框样式
|
.task-details {
|
.task-item {
|
border: 1px solid #f0f0f0;
|
border-radius: 6px;
|
padding: 16px;
|
margin-bottom: 16px;
|
background: #fafafa;
|
|
&:last-child {
|
margin-bottom: 0;
|
}
|
|
.task-header {
|
display: flex;
|
justify-content: space-between;
|
align-items: center;
|
margin-bottom: 12px;
|
padding-bottom: 8px;
|
border-bottom: 1px solid #e8e8e8;
|
|
h4 {
|
margin: 0;
|
color: #262626;
|
font-weight: 600;
|
}
|
|
.ant-tag {
|
margin: 0;
|
font-weight: 500;
|
}
|
}
|
|
.task-info {
|
p {
|
margin: 4px 0;
|
color: #595959;
|
line-height: 1.6;
|
|
strong {
|
color: #262626;
|
margin-right: 8px;
|
}
|
}
|
}
|
}
|
}
|
|
// 响应式设计
|
@media (max-width: 768px) {
|
.task-calendar-card {
|
.ant-calendar {
|
.ant-calendar-body {
|
.ant-calendar-table {
|
.ant-calendar-tbody {
|
td {
|
height: 60px;
|
padding: 2px 4px;
|
|
.events {
|
li {
|
.ant-badge {
|
font-size: 10px;
|
padding: 1px 2px;
|
|
.ant-badge-status-text {
|
font-size: 10px;
|
}
|
}
|
}
|
}
|
}
|
}
|
}
|
}
|
}
|
}
|
}
|