From 738fcba51a4947213b8b240ebbecc948308340cb Mon Sep 17 00:00:00 2001 From: =?utf8?q?John=20Molakvo=C3=A6=20=28skjnldsv=29?= Date: Fri, 1 Apr 2022 09:30:02 +0200 Subject: [PATCH] Update search icon size MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- core/css/header.scss | 55 -------------------------------- core/src/views/UnifiedSearch.vue | 13 +++----- 2 files changed, 5 insertions(+), 63 deletions(-) diff --git a/core/css/header.scss b/core/css/header.scss index 2c1dc647189..39e3156fb0b 100644 --- a/core/css/header.scss +++ b/core/css/header.scss @@ -658,61 +658,6 @@ nav[role='navigation'] { } } -/* SEARCHBOX --------------------------------------------------------------- */ -.searchbox { - position: relative; - display: flex; - align-items: center; - input[type='search'] { - position: relative; - font-size: 1.2em; - padding: 3px; - padding-left: 25px; - padding-right: 20px; - background-color: transparent; - color: var(--color-primary-text); - border: 0; - border-radius: var(--border-radius-pill); - height: 34px; - width: 0; - cursor: pointer; - transition: width 100ms, opacity 100ms; - opacity: .6; - &:focus, &:active, &:valid { - background-position-x: 6px; - color: var(--color-primary-text); - width: 155px; - cursor: text; - background-color: transparent !important; - border: 1px solid var(--color-primary-text) !important; - } - &:hover, &:focus, &:active { - opacity: 1; - } - & ~ .icon-close-white { - display: inline; - position: absolute; - width: 30px; - height: 100%; - right: 0; - top: 0; - margin: 0; - &, &:focus, &:active, &:hover { - border: none; - background-color: transparent; - } - } - &:not(:valid) ~ .icon-close-white { - display: none; - } - &::-webkit-search-cancel-button { - -webkit-appearance: none; - } - } - .icon-search-force-white { - @include icon-color('search', 'actions', '#fffffe', 1, true); - } -} /* Empty content messages in the header e.g. notifications, contacts menu, … */ header #emptycontent, diff --git a/core/src/views/UnifiedSearch.vue b/core/src/views/UnifiedSearch.vue index 89f5d2a0bab..1e11d6bfbde 100644 --- a/core/src/views/UnifiedSearch.vue +++ b/core/src/views/UnifiedSearch.vue @@ -30,7 +30,7 @@ @@ -81,15 +81,17 @@ - +
{{ t('core', 'Press enter to start searching') }}
+
- + {{ t('core', 'Start typing to search') }} +