Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: correct the icon's margin and padding on form #125

Merged
merged 1 commit into from
Dec 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions layouts/partials/hb/modules/search/form.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{{- $url := partial "search/functions/search-url" . }}
<form class="hb-module hb-search-form position-relative" action="{{ $url }}">
<input name="q" class="form-control form-control-lg pe-5" placeholder="{{ i18n `search` }}">
<button
type="submit"
class="position-absolute end-0 top-0 mt-4 me-4 p-0 border-0 bg-transparent"
title="{{ i18n `search` }}">
{{ partial "icons/icon" (dict "vendor" "bs" "name" "search" "width" "1.5rem" "height" "1.5rem") }}
</button>
<form class="hb-module hb-search-form" action="{{ $url }}">
<div class="position-relative">
<input name="q" class="form-control pe-5" placeholder="{{ i18n `search` }}">
<button
type="submit"
class="position-absolute end-0 top-0 mt-2 me-2 p-0 border-0 bg-transparent text-primary"
title="{{ i18n `search` }}">
{{ partial "icons/icon" (dict "vendor" "bs" "name" "search" "width" "1.25rem" "height" "1.25rem") }}
</button>
</div>
</form>