From 123fa54d5a38f803aa7eaecbead887cbe479cf9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sascha=20I=C3=9Fbr=C3=BCcker?= Date: Sat, 2 Oct 2021 23:49:59 +0200 Subject: [PATCH] Fix jumping search box (#163) --- bookmarks/styles/bookmarks.scss | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/bookmarks/styles/bookmarks.scss b/bookmarks/styles/bookmarks.scss index ae33592..93d03fd 100644 --- a/bookmarks/styles/bookmarks.scss +++ b/bookmarks/styles/bookmarks.scss @@ -1,14 +1,16 @@ .bookmarks-page .search { + $searchbox-width: 180px; + $searchbox-width-md: 300px; $searchbox-height: 1.8rem; // Regular input input[type='search'] { - width: 180px; + width: $searchbox-width; height: $searchbox-height; -webkit-appearance: none; @media (min-width: $control-width-md) { - width: 300px; + width: $searchbox-width-md; } } @@ -18,14 +20,19 @@ height: $searchbox-height; .form-autocomplete-input { + width: $searchbox-width; height: $searchbox-height; - width: 100%; input[type='search'] { + width: 100%; height: 100%; margin: 0; border: none; } + + @media (min-width: $control-width-md) { + width: $searchbox-width-md; + } } } }