Checkpoint

This commit is contained in:
2026-03-09 16:43:24 +01:00
parent aed73e824e
commit 19bb022290
35 changed files with 1093 additions and 58 deletions

View File

@@ -31,5 +31,61 @@ label {
// Apply chamfered container style to form-group wrapper only
.form-group {
@include mixins.cd-chamfered-container;
// keep existing simple group styling for generic use
}
// Treat a label combined with an input/select as a single chamfered card
.form-group:has(> label + .form-control),
.form-group:has(> label + .form-select) {
@include mixins.cd-chamfered-container;
padding: 0.5rem;
display: flex;
flex-direction: column;
gap: 0.25rem;
> label {
margin: 0;
background: transparent;
padding: 0 0.25rem;
color: var(--color-text-secondary);
}
> .form-control,
> .form-select {
border: none;
background-color: transparent;
box-shadow: none;
margin: 0;
padding: 0.5rem;
border-radius: 0;
}
}
// Treat input groups as a single chamfered card
.input-group {
@include mixins.cd-chamfered-container;
display: flex;
align-items: center;
gap: 0;
padding: 0.125rem;
> .form-control,
> .form-select {
border: none;
background-color: transparent;
box-shadow: none;
margin: 0;
padding: 0.5rem 0.75rem;
border-radius: 0;
flex: 1 1 auto;
}
> .input-group-text {
background: transparent;
border: none;
padding: 0 0.5rem;
color: var(--color-text-primary);
}
}