Files
hemhub/frontend/src/styles.css
2026-07-27 21:26:19 +02:00

411 lines
5.7 KiB
CSS

:root {
font-family: system-ui, sans-serif;
color: #1f2937;
background: #f3f4f6;
}
body {
margin: 0;
}
.panel {
max-width: 40rem;
margin: 6rem auto;
padding: 2rem;
border-radius: 0.75rem;
background: white;
box-shadow: 0 0.25rem 1rem rgb(0 0 0 / 8%);
}
h1 {
margin-top: 0;
}
button,
input,
select,
textarea {
font: inherit;
}
button {
padding: 0.65rem 1rem;
border: 0;
border-radius: 0.4rem;
color: white;
background: #2563eb;
cursor: pointer;
}
button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
cursor: not-allowed;
opacity: 0.65;
}
.secondary {
margin-top: 1rem;
color: #1f2937;
background: #e5e7eb;
}
.user-list {
display: flex;
flex-wrap: wrap;
gap: 0.75rem;
}
form {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 0.75rem;
}
input {
box-sizing: border-box;
width: 100%;
padding: 0.6rem;
border: 1px solid #9ca3af;
border-radius: 0.4rem;
}
select {
box-sizing: border-box;
width: 100%;
padding: 0.6rem;
border: 1px solid #9ca3af;
border-radius: 0.4rem;
background: white;
}
textarea {
box-sizing: border-box;
width: 100%;
padding: 0.6rem;
border: 1px solid #9ca3af;
border-radius: 0.4rem;
resize: vertical;
}
.error {
margin: 0;
color: #b91c1c;
}
.task-app {
min-height: 100vh;
padding: 2rem clamp(1rem, 4vw, 4rem);
background: #f3f4f6;
}
.app-header,
.board-toolbar,
.user-controls,
.modal-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
}
.app-header {
margin: 0 auto 2rem;
max-width: 90rem;
}
.app-header h1,
.eyebrow {
margin: 0;
}
.eyebrow {
color: #64748b;
font-weight: 600;
}
.user-controls {
justify-content: flex-end;
}
.compact {
margin-top: 0;
}
.board-toolbar {
min-height: 2.75rem;
margin: 0 auto 1rem;
max-width: 90rem;
}
.link-button {
padding: 0.25rem 0.5rem;
color: #2563eb;
background: transparent;
text-decoration: underline;
}
.board {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 1rem;
margin: 0 auto;
max-width: 90rem;
}
.board-column {
min-height: 20rem;
padding: 1rem;
border: 1px solid transparent;
border-radius: 0.75rem;
background: #e5e7eb;
transition: border-color 120ms ease, background-color 120ms ease;
}
.board-column-drop-target {
border-color: #93c5fd;
background: #e0e7ff;
}
.board-column h2 {
margin: 0 0 1rem;
font-size: 1.1rem;
}
.task-list {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.task-card {
padding: 1rem;
border-radius: 0.5rem;
background: white;
box-shadow: 0 0.125rem 0.4rem rgb(0 0 0 / 8%);
}
.task-card-pending {
opacity: 0.65;
}
.task-card-dragging {
cursor: grabbing;
}
.task-card h3,
.task-card p {
margin: 0;
}
.task-assignment {
margin-top: 0.9rem;
}
.task-assignee {
display: inline-flex;
align-items: center;
gap: 0.4rem;
color: #475569;
font-size: 0.9rem;
}
.task-assignee-button {
padding: 0.25rem 0;
color: #2563eb;
background: transparent;
}
.user-icon {
flex: 0 0 auto;
}
.assignee-select-label {
display: flex;
align-items: center;
gap: 0.4rem;
}
.assignee-select-label select {
width: auto;
min-width: 9rem;
}
.field-label-uppercase {
color: #64748b;
font-size: 0.8rem;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.visually-hidden {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
.task-card-header {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 0.75rem;
}
.task-card-actions {
display: flex;
flex: 0 0 auto;
align-items: center;
gap: 0.35rem;
}
.task-delete-button {
display: inline-grid;
width: 2.5rem;
height: 2.5rem;
padding: 0;
place-items: center;
color: #64748b;
background: transparent;
}
.task-delete-button:hover,
.task-delete-button:focus-visible {
color: #991b1b;
background: #fee2e2;
}
.task-delete-button:focus-visible {
outline: 2px solid #dc2626;
outline-offset: 2px;
}
.points-badge {
flex: 0 0 auto;
padding: 0.2rem 0.5rem;
border-radius: 999px;
color: #1e3a8a;
background: #dbeafe;
font-size: 0.8rem;
font-weight: 700;
line-height: 1.25;
}
.task-card p {
margin-top: 0.5rem;
color: #475569;
white-space: pre-wrap;
}
.task-status-actions {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
margin-top: 0.9rem;
}
.status-button {
padding: 0.4rem 0.65rem;
color: #1e3a8a;
background: #dbeafe;
font-size: 0.85rem;
}
.task-error {
margin-top: 0.6rem;
font-size: 0.85rem;
}
.field-help {
margin: -0.25rem 0 0;
color: #64748b;
font-size: 0.85rem;
}
.modal-backdrop {
position: fixed;
inset: 0;
display: grid;
place-items: center;
padding: 1rem;
background: rgb(15 23 42 / 55%);
}
.modal {
width: min(100%, 34rem);
padding: 1.5rem;
border-radius: 0.75rem;
background: white;
box-shadow: 0 1rem 3rem rgb(0 0 0 / 25%);
}
.modal-header {
margin-bottom: 1.25rem;
}
.modal-header h2 {
margin: 0;
}
.delete-task-modal p {
margin: 0 0 1rem;
}
.delete-task-actions {
display: flex;
justify-content: flex-end;
gap: 0.75rem;
}
.delete-task-actions .secondary {
margin-top: 0;
}
.danger {
background: #b91c1c;
}
.danger:hover,
.danger:focus-visible {
background: #991b1b;
}
.close-button {
padding: 0.2rem 0.55rem;
color: #475569;
background: transparent;
font-size: 1.75rem;
line-height: 1;
}
@media (max-width: 48rem) {
.panel {
margin: 2rem 1rem;
}
.app-header {
align-items: flex-start;
}
.user-controls {
flex-direction: column;
align-items: flex-end;
}
.board {
grid-template-columns: 1fr;
}
.board-column {
min-height: 8rem;
}
}