From d165d0c2bdba12e718a8dcff8c942334cc1a51e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zo=C3=AB?= Date: Fri, 2 May 2025 17:23:49 +0200 Subject: [PATCH] feat: replace search icon with an SVG this change allows us to use the font colour for the icon. it might also be nice to use a sprite.svg for all icons. this would use the same mechanism as i did here. this also optimises the SVG a bit --- public/assets/css/front/index.css | 9 +++------ public/assets/images/global/icon-search.svg | 10 +++------- resources/views/front/index.blade.php | 4 +++- 3 files changed, 9 insertions(+), 14 deletions(-) diff --git a/public/assets/css/front/index.css b/public/assets/css/front/index.css index ec9b25b..e5c2d20 100644 --- a/public/assets/css/front/index.css +++ b/public/assets/css/front/index.css @@ -38,8 +38,9 @@ form.index-search-form > button { right: 0; } -form.index-search-form > button > img#search-icon { - float: none; +form.index-search-form > button > svg { + width: 48px; + height: 48px; } form.index-search-form > button > label { @@ -116,8 +117,4 @@ table.index-meta td { form.index-search-form > button > label { display: inline; } - - form.index-search-form > button > img#search-icon { - float: right; - } } diff --git a/public/assets/images/global/icon-search.svg b/public/assets/images/global/icon-search.svg index 47a3125..d41cc54 100644 --- a/public/assets/images/global/icon-search.svg +++ b/public/assets/images/global/icon-search.svg @@ -1,8 +1,4 @@ - - - - - - - + + + diff --git a/resources/views/front/index.blade.php b/resources/views/front/index.blade.php index 9e390ef..f63c242 100644 --- a/resources/views/front/index.blade.php +++ b/resources/views/front/index.blade.php @@ -7,7 +7,9 @@ + + + @csrf