Skip to content

Commit

Permalink
style: change Algolia button size
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Jan 20, 2023
1 parent 04385dd commit f89a6fe
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions assets/algolia/scss/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@
padding: 0;
}

.aa-DetachedSearchButtonIcon {
width: 1.125rem;
}

.aa-SubmitIcon {
color: var(--#{$prefix}navbar-color);
}
Expand Down
4 changes: 4 additions & 0 deletions assets/docsearch/scss/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@
}
}

.DocSearch-Button {
margin-left: 0;
}

.DocSearch-Button-Placeholder,
.DocSearch-Button-Keys {
display: none;
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/header/search-button.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
{{- $indexURL = $index.RelPermalink }}
{{- end -}}
<hr class="vr d-none d-xxl-block ms-xxl-1">
<div class="search-button d-flex align-items-center ms-0 ms-xxl-1 p-0" data-search-index="{{ $indexURL }}"></div>
<div class="search-button d-flex align-items-center ms-0 ms-xxl-2 p-0" data-search-index="{{ $indexURL }}"></div>
{{- end -}}

0 comments on commit f89a6fe

Please sign in to comment.