auto-complete: switch to em units #466

This commit is contained in:
Sören Weber 2023-02-14 21:16:39 +01:00
parent 4b7409f31c
commit 959ed155c4
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D
2 changed files with 6 additions and 6 deletions

View file

@ -10,8 +10,8 @@
position: absolute; position: absolute;
display: none; display: none;
z-index: 9999; z-index: 9999;
max-height: 150px; max-height: 10em;
max-height: calc( 100vh - 150px ); max-height: calc( 100vh - 10em );
overflow: hidden; overflow: hidden;
overflow-y: auto; overflow-y: auto;
box-sizing: border-box; box-sizing: border-box;
@ -19,8 +19,8 @@
.autocomplete-suggestion { .autocomplete-suggestion {
position: relative; position: relative;
cursor: pointer; cursor: pointer;
padding: 7px; padding: .46em;
line-height: 23px; line-height: 1.5em;
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
@ -51,7 +51,7 @@
} }
.autocomplete-suggestion > .context { .autocomplete-suggestion > .context {
font-size: 12px; font-size: .7869em;
margin-inline-start: 1em; margin-inline-start: 1em;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;

View file

@ -430,7 +430,7 @@ body:not(.print) #body-inner.narrow h1 {
border-bottom: 4px solid rgba( 134, 134, 134, .125 ); border-bottom: 4px solid rgba( 134, 134, 134, .125 );
font-size: 3.5rem; font-size: 3.5rem;
} }
@media only screen and (min-width: 48em) and (max-width: 60rem) { @media only screen and (min-width: 48rem) and (max-width: 60rem) {
body:not(.print) #body-inner.narrow h1 { body:not(.print) #body-inner.narrow h1 {
font-size: 2.8rem; font-size: 2.8rem;
} }