Files
bodyshop/client/src/components/task-center/task-center.styles.scss
2025-07-09 12:40:26 -04:00

133 lines
2.3 KiB
SCSS

.task-center {
position: absolute;
top: 64px;
right: 0;
width: 400px;
max-width: 400px;
background: #fff;
color: rgba(0, 0, 0, 0.85);
border: 1px solid #d9d9d9;
border-radius: 6px;
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08), 0 3px 6px rgba(0, 0, 0, 0.06);
z-index: 1000;
display: none;
overflow-x: hidden;
&.visible {
display: block;
}
.task-header {
padding: 4px 10px;
border-bottom: 1px solid #f0f0f0;
display: flex;
justify-content: space-between;
align-items: center;
background: #fafafa;
h3 {
margin: 0;
font-size: 13px;
color: rgba(0, 0, 0, 0.85);
}
}
.task-section {
margin-bottom: 2px;
}
.section-title {
padding: 3px 10px;
background: #f5f5f5;
margin: 0;
font-size: 12px;
color: rgba(0, 0, 0, 0.85);
font-weight: 500;
border-bottom: 1px solid #e8e8e8;
position: sticky;
top: 0;
z-index: 1;
}
.task-item {
padding: 6px 10px;
border-bottom: 1px solid #f0f0f0;
background: #fff;
cursor: pointer;
&:hover {
background: #f5f5f5;
}
.task-content {
display: flex;
flex-direction: column;
gap: 2px;
}
.task-header-row {
display: flex;
justify-content: space-between;
align-items: center;
.task-title {
font-size: 13px;
font-weight: 600;
color: rgba(0, 0, 0, 0.9);
margin-right: 6px;
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.task-due-date {
font-size: 11px;
color: rgba(0, 0, 0, 0.45);
white-space: nowrap;
}
}
.task-description {
font-size: 12px;
color: rgba(0, 0, 0, 0.65);
}
.task-ro-number {
font-size: 11px;
color: rgba(0, 0, 0, 0.45);
}
}
.ant-badge {
width: 100%;
.ant-badge-dot {
width: 6px;
height: 6px;
top: 2px;
right: 2px;
}
}
button {
margin: 8px auto;
padding: 4px 10px;
background-color: #1677ff;
color: white;
border: none;
border-radius: 4px;
font-size: 12px;
cursor: pointer;
&:hover {
background-color: #4096ff;
}
&:disabled {
background-color: #d9d9d9;
cursor: not-allowed;
}
}
}