Skip to content

Commit

Permalink
Merge pull request #863 from facebookresearch/update-searchbar-colors
Browse files Browse the repository at this point in the history
Update searchbar colors
  • Loading branch information
Etesam913 authored Jul 26, 2022
2 parents 55f7937 + 4725c98 commit c780e4a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
1 change: 0 additions & 1 deletion docs/web/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ const config = {
apiKey: "ac51a5b25842fad8a3a7b1f384496bf9",

indexName: "mephisto",
contextualSearch: false,
searchPagePath: false,
},
navbar: {
Expand Down
18 changes: 8 additions & 10 deletions docs/web/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
--mephisto-alt-purple: #f0ebf5;
--mephisto-alt-orange: #fbd6b7;
--mephisto-alt-yellow: #ffde89;
--docsearch-primary-color: var(--ifm-color-primary-darkest) !important;
--docsearch-logo-color: var(--ifm-color-primary) !important;
}

.docusaurus-highlight-code-line {
Expand Down Expand Up @@ -116,17 +118,13 @@ h6 {
}

@media (max-width: 750px) {
.DocSearch-Container {
position: fixed !important;
}
.DocSearch-Modal {
margin: 60px 0 !important;
}
}

/*
This hides the text that allows you to see all results
As of now when you try to see all results it takes you to a separate page
This page has a searchbar, but no options show.
That is why it is being hidden.
*/
.DocSearch-HitsFooter {
display: none !important;
.DocSearch-Dropdown {
padding-bottom: 20px !important;
}
}

0 comments on commit c780e4a

Please sign in to comment.