feat(ui): use CSS container queries for precise header font scaling

This commit is contained in:
Alexander Minges 2025-07-17 19:40:25 +02:00
parent 9ea6bfac84
commit dfb2a4a781
Signed by: Athemis
GPG key ID: 31FBDEF92DDB162B
2 changed files with 4 additions and 2 deletions

View file

@ -42,6 +42,7 @@
align-items: center;
border-bottom: 0;
margin: 0;
container-type: inline-size;
}
&__name-input[type="text"] {
@ -49,7 +50,7 @@
background-color: transparent;
border: none;
flex: 1;
font-size: clamp(0.75em, 2.5vw, 1.25em);
font-size: clamp(0.75em, 8cqi, 1.25em);
height: auto;
// Use lighter font weight for better readability

View file

@ -33,6 +33,7 @@
&__name {
border: none;
margin: 0;
container-type: inline-size;
}
&__name-label {
@ -43,7 +44,7 @@
@include mixins.font-heading-upper;
background-color: transparent;
border: none;
font-size: clamp(0.75em, 2.5vw, 1.25em);
font-size: clamp(0.75em, 8cqi, 1.25em);
height: auto;
padding-left: 0;
padding-right: 0;