Skip to content

Commit

Permalink
style: revert client search bar
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Dec 5, 2022
1 parent 576134c commit c1dd2f9
Show file tree
Hide file tree
Showing 10 changed files with 204 additions and 187 deletions.
2 changes: 1 addition & 1 deletion assets/algolia/js/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { default as params } from '@params'

window.addEventListener('load', () => {
autocomplete({
container: '.search-bar',
container: '.search-button',
// panelContainer: '#algolia-container',
panelPlacement: 'full-width',
placeholder: 'Search',
Expand Down
2 changes: 1 addition & 1 deletion assets/docsearch/js/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { default as params } from '@params';
import { default as customOptions } from './options';

const defaultOptions = {
container: '.search-bar',
container: '.search-button',
};

const replacements = {
Expand Down
14 changes: 12 additions & 2 deletions assets/main/scss/_top-app-bar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,16 @@
}

.search-bar {
@include media-breakpoint-up(xxl) {
width: 180px;
}

.search-input {
padding-left: 2.25rem;
}
}

.search-button {
color: var(--#{$prefix}on-primary-secondary);
}

Expand All @@ -64,7 +74,7 @@
}

.dropdown-item-description {
color: rgba(255,255,255, 0.7) !important;
color: rgba(255, 255, 255, 0.7) !important;
}
}
}
Expand All @@ -78,7 +88,7 @@
overflow: hidden;
text-overflow: ellipsis;
font-size: 0.8rem;

@include media-breakpoint-down(md) {
display: none;
}
Expand Down
Loading

0 comments on commit c1dd2f9

Please sign in to comment.