Files
SDP_Lab_1_To-do-app/src/lib/components/TaskEditModal.module.css

138 lines
2.3 KiB
CSS
Raw Normal View History

2026-07-30 00:03:20 +02:00
/* Modal Backdrop Overlay */
.overlay {
position: fixed;
inset: 0;
z-index: 50;
display: flex;
align-items: center;
justify-content: center;
background-color: rgba(15, 23, 42, 0.7);
2026-07-30 00:03:20 +02:00
padding: 1rem;
backdrop-filter: blur(6px);
2026-07-30 00:03:20 +02:00
}
/* Modal Dialog Box */
.dialog {
width: 100%;
max-width: 32rem;
border-radius: 0.875rem;
background-color: #1e293b;
border: 1px solid #334155;
2026-07-30 00:03:20 +02:00
padding: 1.5rem;
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
2026-07-30 00:03:20 +02:00
}
/* Modal Header */
.header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.25rem;
2026-07-30 00:03:20 +02:00
}
.title {
font-size: 1.25rem;
font-weight: 700;
color: #f8fafc;
2026-07-30 00:03:20 +02:00
margin: 0;
}
.btnClose {
background: none;
border: none;
font-size: 1.25rem;
color: #94a3b8;
2026-07-30 00:03:20 +02:00
cursor: pointer;
transition: color 0.2s;
2026-07-30 00:03:20 +02:00
}
.btnClose:hover {
color: #f8fafc;
2026-07-30 00:03:20 +02:00
}
/* Form Layout */
.form {
display: flex;
flex-direction: column;
gap: 1rem;
}
.gridTwo {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1rem;
}
.field {
display: flex;
flex-direction: column;
}
.label {
display: block;
font-size: 0.8125rem;
font-weight: 600;
color: #cbd5e1;
margin-bottom: 0.375rem;
2026-07-30 00:03:20 +02:00
}
.input, .select, .textarea {
width: 100%;
padding: 0.625rem 0.875rem;
2026-07-30 00:03:20 +02:00
font-size: 0.875rem;
border-radius: 0.5rem;
border: 1px solid #334155;
background-color: #0f172a;
color: #f8fafc;
2026-07-30 00:03:20 +02:00
outline: none;
box-sizing: border-box;
transition: border-color 0.2s, box-shadow 0.2s;
2026-07-30 00:03:20 +02:00
}
.input:focus, .select:focus, .textarea:focus {
border-color: #3b82f6;
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
2026-07-30 00:03:20 +02:00
}
/* Footer Buttons */
.footerActions {
display: flex;
justify-content: flex-end;
gap: 0.75rem;
2026-07-30 00:03:20 +02:00
padding-top: 0.5rem;
}
.btnCancel {
padding: 0.5rem 1rem;
font-size: 0.875rem;
border-radius: 0.5rem;
border: 1px solid #334155;
background: #0f172a;
color: #cbd5e1;
font-weight: 600;
2026-07-30 00:03:20 +02:00
cursor: pointer;
transition: background-color 0.2s;
2026-07-30 00:03:20 +02:00
}
.btnCancel:hover {
background-color: #334155;
color: #f8fafc;
2026-07-30 00:03:20 +02:00
}
.btnSave {
padding: 0.5rem 1.25rem;
2026-07-30 00:03:20 +02:00
font-size: 0.875rem;
border-radius: 0.5rem;
border: none;
background-color: #2563eb;
color: #ffffff;
font-weight: 600;
2026-07-30 00:03:20 +02:00
cursor: pointer;
transition: background-color 0.2s;
box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
2026-07-30 00:03:20 +02:00
}
.btnSave:hover {
background-color: #1d4ed8;
}