Skip to content

Commit

Permalink
Fixed search header
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrewster committed Aug 8, 2024
1 parent d8213a7 commit b7da32b
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 2 deletions.
2 changes: 1 addition & 1 deletion webui/apps/docs/src/components/widgets/Header.astro
Original file line number Diff line number Diff line change
Expand Up @@ -189,5 +189,5 @@ const githubText = `<div style="height: 24px; width: 24px">${githubIcon}</div>`
indexName: "eidolonai",
container: '#docsearchbtn',
placeholder: 'Search documentation',
});
} as any);
</script>
35 changes: 34 additions & 1 deletion webui/apps/docs/src/components/widgets/search.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,39 @@
.DocSearch-Button {
--docsearch-searchbox-background: #fff;
border-radius: 12px;
border-radius: 6px;
border: 1px solid #eeeeee;
padding-right: 4px;
background: #f8f8f8;
}

.DocSearch-Button-Keys {
border: 1px solid #ccc;
min-width: auto;
padding-top: 2px;
border-radius: 4px;
background: #fff;
}

.DocSearch-Button-Key {
color: #000;
font-size: 14px;
font-weight: 500;
/*padding: 2px;*/
border-radius: 0;
box-shadow: none;
border: none;
/*margin-right: 0;*/
background: transparent;
margin: 0;
padding: 0;
}

.DocSearch-Button-Keys > kbd:first-of-type {
padding-right: 0;
left: 4px;
}
.DocSearch-Button-Keys kbd:last-of-type {
padding-left: 0;
font-size: small;
right: 4px;
}

0 comments on commit b7da32b

Please sign in to comment.