From bb03ea976d2d0983770718d2f64083fe0a4d6242 Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Sun, 14 Jan 2024 16:50:15 +0800 Subject: [PATCH] [opt] search icon --- layout/_partial/widgets/search.ejs | 2 +- source/css/_layout/widgets/search.styl | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/layout/_partial/widgets/search.ejs b/layout/_partial/widgets/search.ejs index 3666ee1..9cb563d 100644 --- a/layout/_partial/widgets/search.ejs +++ b/layout/_partial/widgets/search.ejs @@ -27,7 +27,7 @@ function layoutDiv() { } else { el += ' placeholder="' + (item.placeholder || __('search.search')) + '">' } - el += '' + el += '' el += '' el += '
' el += '
' + __('search.no_results') + '
' diff --git a/source/css/_layout/widgets/search.styl b/source/css/_layout/widgets/search.styl index 5bf07d8..e7e2ede 100644 --- a/source/css/_layout/widgets/search.styl +++ b/source/css/_layout/widgets/search.styl @@ -23,7 +23,8 @@ &.noresult[searching='true'] .search-icon - color: $c-red + path[p-id="1562"] + color: $c-red .search-form border: 1px solid $c-red @@ -93,6 +94,8 @@ color: var(--text-p2) padding: 0.5rem border-radius: 'calc(%s - 2px)' % $border-bar + path[p-id="1562"] + color: $color-theme #search-result,.search-no-result margin-top: 1rem