Skip to content

Commit

Permalink
Replace custom search with vertex search widget
Browse files Browse the repository at this point in the history
  • Loading branch information
kevcenteno committed Oct 9, 2024
1 parent 8d4cc04 commit 41b7296
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 401 deletions.
49 changes: 0 additions & 49 deletions assets/js/GoogleSearch.ts

This file was deleted.

106 changes: 0 additions & 106 deletions assets/js/search-results.ts

This file was deleted.

26 changes: 0 additions & 26 deletions assets/js/search.ts

This file was deleted.

116 changes: 0 additions & 116 deletions assets/scss/_search-results.scss

This file was deleted.

54 changes: 3 additions & 51 deletions assets/scss/_search.scss
Original file line number Diff line number Diff line change
@@ -1,63 +1,15 @@
@use 'mixins';

.searchbar {
display: none;
position: relative;
}

.mag {
svg {
color: var(--mm-color-primary-text);
left: calc(var(--mm-spacing) / 2);
position: absolute;
top: 50%;
transform: translateY(-50%);
}
}

.searchbar__open {
display: inline-block;
left: calc(50% - 20px);
margin: 0 calc(var(--mm-spacing) / 2);
max-width: calc(var(--mm-max-content-width) - var(--mm-spacing) );
position: absolute;
top: calc(50% + 5px);
transform: translate(-50%, -50%);
width: calc(100% - (var(--mm-spacing)));
z-index: 100;
}

.search {
position: relative;
}

.search__button {
@include mixins.menu-button;
float: right;

svg {
margin-top: 3px;
}
}

.input {
appearance: none !important;
border: 1px solid var(--mm-color-border);
border-radius: var(--mm-border-radius);
color: var(--mm-color-primary-text);
padding: 12px 10px 12px calc(var(--mm-spacing) + 15px);
width: 100%;

&::placeholder {
opacity: 0.5;
}

&:focus {
box-shadow: 0 0 0 2px var(--mm-color-logo-blue-light);
outline: none;
}
}

.hidden {
display: none;
.search__button svg {
margin-top: 3px;
pointer-events: none;
}
1 change: 0 additions & 1 deletion assets/scss/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
@import 'pre';
@import 'loading';
@import 'search';
@import 'search-results';
@import 'sidebar';
@import 'table';
@import 'variables';
Expand Down
5 changes: 0 additions & 5 deletions content/search-results.md

This file was deleted.

Loading

0 comments on commit 41b7296

Please sign in to comment.