From e93582d4ea42e754da9c52796e0060a62f018015 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bjo=CC=88rn=20Fromme?= Date: Wed, 2 Sep 2020 10:18:54 +0200 Subject: [PATCH] Turn searchbar link into submit button for whatever reason --- .../Private/Assets/scss/_searchbar.scss | 16 ++++++++++++++-- .../Private/Assets/scss/_searchbox.scss | 19 +++++++++++++++++-- .../Private/Templates/Search/Searchbar.html | 2 +- .../Private/Templates/Search/Searchbox.html | 2 +- 4 files changed, 33 insertions(+), 6 deletions(-) diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/scss/_searchbar.scss b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/scss/_searchbar.scss index 742472e5..effbe445 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/scss/_searchbar.scss +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/scss/_searchbar.scss @@ -14,9 +14,21 @@ } .searchbar__link { - display: block; - padding-top: 8px; + background: transparent; + border: none; + margin-top: 8px; + padding: 0; color: $typoWhite; + display: flex; + align-items: baseline; + + &:after { + display: block; + padding-left: 4px; + font-size: 90%; + font-family: 'FontAwesome'; + content: "\f054"; + } } .form-control{ diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/scss/_searchbox.scss b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/scss/_searchbox.scss index 2ec64917..a66f47e8 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/scss/_searchbox.scss +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/scss/_searchbox.scss @@ -123,10 +123,25 @@ } } - - .btn{ padding:10px 20px; display: block; } + .searchbox__link { + background: transparent; + border: none; + margin-top: 8px; + padding: 0; + color: white; + display: flex; + align-items: baseline; + + &:after { + display: block; + padding-left: 4px; + font-size: 90%; + font-family: 'FontAwesome'; + content: "\f054"; + } + } } diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Search/Searchbar.html b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Search/Searchbar.html index 80fa60a8..9c3497cf 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Search/Searchbar.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Search/Searchbar.html @@ -66,7 +66,7 @@
- Detailsuche +
diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Search/Searchbox.html b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Search/Searchbox.html index c953da19..4d468b1c 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Search/Searchbox.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Search/Searchbox.html @@ -92,7 +92,7 @@
- Detailsuche +