From 959ed155c4ae62562af85155e3b98aa2124198a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Tue, 14 Feb 2023 21:16:39 +0100 Subject: [PATCH] auto-complete: switch to em units #466 --- static/css/auto-complete.css | 10 +++++----- static/css/theme.css | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/static/css/auto-complete.css b/static/css/auto-complete.css index 7b99273717..8f9d33df77 100644 --- a/static/css/auto-complete.css +++ b/static/css/auto-complete.css @@ -10,8 +10,8 @@ position: absolute; display: none; z-index: 9999; - max-height: 150px; - max-height: calc( 100vh - 150px ); + max-height: 10em; + max-height: calc( 100vh - 10em ); overflow: hidden; overflow-y: auto; box-sizing: border-box; @@ -19,8 +19,8 @@ .autocomplete-suggestion { position: relative; cursor: pointer; - padding: 7px; - line-height: 23px; + padding: .46em; + line-height: 1.5em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; @@ -51,7 +51,7 @@ } .autocomplete-suggestion > .context { - font-size: 12px; + font-size: .7869em; margin-inline-start: 1em; overflow: hidden; text-overflow: ellipsis; diff --git a/static/css/theme.css b/static/css/theme.css index 39208a0b55..20e0c67af1 100644 --- a/static/css/theme.css +++ b/static/css/theme.css @@ -430,7 +430,7 @@ body:not(.print) #body-inner.narrow h1 { border-bottom: 4px solid rgba( 134, 134, 134, .125 ); 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 { font-size: 2.8rem; }