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

85 lines
1.5 KiB
CSS
Raw Normal View History

/* Dark Sleek Form Card */
2026-07-30 00:03:20 +02:00
.formCard {
background-color: #1e293b;
border: 1px solid #334155;
border-radius: 0.875rem;
padding: 1.5rem;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
2026-07-30 00:03:20 +02:00
display: flex;
flex-direction: column;
gap: 1.25rem;
2026-07-30 00:03:20 +02:00
}
.heading {
font-size: 1.25rem;
font-weight: 700;
color: #f8fafc;
2026-07-30 00:03:20 +02:00
margin: 0;
}
.gridTwo {
display: grid;
grid-template-columns: 1fr;
gap: 1rem;
}
@media (min-width: 768px) {
.gridTwo {
grid-template-columns: 1fr 1fr;
}
}
.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
}
.actions {
display: flex;
justify-content: flex-end;
}
.btnSubmit {
padding: 0.625rem 1.25rem;
2026-07-30 00:03:20 +02:00
background-color: #2563eb;
color: #ffffff;
border-radius: 0.5rem;
font-size: 0.875rem;
font-weight: 600;
2026-07-30 00:03:20 +02:00
border: none;
cursor: pointer;
transition: background-color 0.2s, transform 0.1s;
box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
2026-07-30 00:03:20 +02:00
}
.btnSubmit:hover {
background-color: #1d4ed8;
transform: translateY(-1px);
2026-07-30 00:03:20 +02:00
}