Merge pull request #109 from mbrejla/search_button_styling

With other buttons disabled, don't always show vertical search button divider
This commit is contained in:
Somrat 2024-03-23 09:12:54 +06:00 committed by GitHub
commit 3f04316dca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -111,7 +111,11 @@
{{ if .enable }}
<button
aria-label="search"
{{ if and (not site.Params.navigation_button.enable) (not site.Params.theme_switcher)}}
class="border-border text-dark hover:text-primary dark:border-darkmode-border mr-5 inline-block border-r lg:border-r-0 pr-5 lg:pr-0 text-xl dark:text-white dark:hover:text-darkmode-primary"
{{ else }}
class="border-border text-dark hover:text-primary dark:border-darkmode-border mr-5 inline-block border-r pr-5 text-xl dark:text-white dark:hover:text-darkmode-primary"
{{ end }}
data-target="search-modal">
<i class="fa-solid fa-search"></i>
</button>