feat(ui): use CSS container queries for precise header font scaling
This commit is contained in:
parent
9ea6bfac84
commit
dfb2a4a781
2 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue