Files
SDP_Lab_1_To-do-app/src/lib/components/TaskCard.module.css
2026-07-30 18:30:54 +02:00

167 lines
2.5 KiB
CSS

/* Card Container */
.cardContainer {
padding: 1.25rem;
border-radius: 0.75rem;
border: 1px solid #c6c6cc;
background-color: #e6e1e1;
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
transition: all 0.2s ease-in-out;
}
.archiving {
opacity: 0.5;
}
/* Header Section */
.header {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 1rem;
}
.title {
font-weight: 600;
font-size: 1.125rem;
color: #0303e0;
margin: 0;
}
/* Status Badges */
.badge {
font-size: 0.75rem;
padding: 0.25rem 0.625rem;
border-radius: 9999px;
font-weight: 500;
}
.statusComplete {
background-color: #d1fae5;
color: #02c28c;
}
.statusInProgress {
background-color: #fef3c7;
color: #884216;
}
.statusTodo {
background-color: #fcfdff;
color: #4570ff;
}
/* Description */
.description {
margin-top: 0.5rem;
font-size: 0.875rem;
color: #52525b;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
/* Footer Section */
.footer {
margin-top: 1rem;
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 0.5rem;
font-size: 0.75rem;
color: #71717a;
border-top: 1px solid #f4f4f5;
padding-top: 0.75rem;
}
.metaGroup {
display: flex;
align-items: center;
gap: 0.5rem;
}
.topicTag {
background-color: #f4f4f5;
padding: 0.125rem 0.5rem;
border-radius: 0.25rem;
font-family: monospace;
color: #3f3f46;
}
/* Overdue Badge */
.overdueBadge {
background-color: #fee2e2;
color: #b91c1c;
padding: 0.125rem 0.5rem;
border-radius: 15px;
font-weight: 600;
animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse {
0%,
100% {
opacity: 1;
}
50% {
opacity: .5;
}
}
/* Actions Section */
.actions {
margin-top: 1rem;
display: flex;
justify-content: flex-end;
gap: 0.5rem;
font-size: 0.75rem;
}
.btnEdit {
padding: 0.375rem 0.75rem;
border-radius: 0.25rem;
background-color: #f4f4f5;
color: #27272a;
font-weight: 500;
border: none;
cursor: pointer;
transition: background-color 0.2s;
}
.btnEdit:hover {
background-color: #e4e4e7;
}
.btnArchive {
padding: 0.375rem 0.75rem;
border-radius: 0.25rem;
background-color: #fef2f2;
color: #96a2e4;
font-weight: 500;
border: none;
cursor: pointer;
transition: background-color 0.2s;
}
.btnArchive:hover {
background-color: #f18484;
}
.btnArchive:disabled {
opacity: 0.5;
cursor: not-allowed;
}