fix: improve CSS layout with box-sizing reset, responsive alerts, and form spacing

- Add universal box-sizing: border-box reset to base styles
- Make alert component responsive with container queries (flex-wrap,
  full-width title/body at narrow widths)
- Increase form legend margin-bottom from --size-1 to --size-3
This commit is contained in:
Florian Schroedl
2026-03-11 11:09:47 +01:00
parent 828d467226
commit 13508f4654
3 changed files with 16 additions and 3 deletions

View File

@@ -1,6 +1,8 @@
.alert {
container-type: inline-size;
position: relative;
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--size-3);
padding: var(--size-4) var(--size-6);
@@ -19,6 +21,13 @@
margin: 0;
}
@container (max-width: 24rem) {
.alert-title,
.alert-body {
flex-basis: 100%;
}
}
.alert-success {
border: none;
color: var(--success);