-
-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
82 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
#search-input { | ||
border-radius: 18px; | ||
border: 2px solid var(--color-card-border); | ||
line-height: 30px; | ||
padding-left: 8px; | ||
width: 100%; | ||
} | ||
|
||
/* Dropdown styling */ | ||
.ds-dropdown-results { | ||
z-index: 1; /* makes sure that the search is above the version selector */ | ||
} | ||
.ds-dropdown-menu { | ||
width: 500px; | ||
background-color: white; | ||
color: black; | ||
border-radius: 8px; | ||
margin-top: 10px; | ||
border: 2px solid var(--color-card-border); | ||
overflow-x: hidden; | ||
} | ||
|
||
/* Dropdown header styling */ | ||
.algolia-docsearch-suggestion__main { | ||
background-color: var(--color-info); | ||
padding: 8px 16px; | ||
} | ||
|
||
.algolia-docsearch-suggestion__main > .algolia-docsearch-suggestion--wrapper { | ||
border: none; | ||
padding: 0; | ||
} | ||
|
||
/* No results styling */ | ||
.algolia-docsearch-suggestion--noresults { | ||
color: var(--color-gray-600); | ||
padding: 8px 16px; | ||
} | ||
|
||
/* Result styling */ | ||
.algolia-docsearch-suggestion--wrapper { | ||
display: flex; | ||
border-bottom: 1px solid var(--color-card-border); | ||
gap: 10px; | ||
font-size: 14px; | ||
padding: 8px 16px; | ||
} | ||
|
||
.algolia-docsearch-suggestion--subcategory-column { | ||
flex-basis: 80px; | ||
min-width: 80px; | ||
} | ||
|
||
.algolia-docsearch-suggestion--subcategory-column-text { | ||
font-weight: bold; | ||
} | ||
|
||
/* Search sponsor styling */ | ||
.powered-by-algolia { | ||
display: flex; | ||
justify-content: end; | ||
margin: 8px; | ||
} | ||
.powered-by-algolia > a { | ||
display: flex; | ||
} | ||
|
||
@media (min-width: 1008px) { | ||
.navbar-list { | ||
flex-grow: 1; | ||
} | ||
} | ||
|
||
@media (max-width: 1007px) { | ||
.ds-dropdown-menu { | ||
width: calc(100vw - 2rem); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Algolia Search style overrides | ||
|
||
We use Algolia as search engine. This comes with some default styling which we've updated a bit to look nicer and fit more with our theme. |