Skip to content
This repository has been archived by the owner on Sep 22, 2023. It is now read-only.

Commit

Permalink
Move Algolia CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
markzegarelli committed Sep 21, 2023
1 parent 0cd7090 commit 433aba8
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 46 deletions.
44 changes: 44 additions & 0 deletions docs/stylesheets/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -562,4 +562,48 @@ textarea.at-field {

table code {
white-space : pre-wrap !important;
}

/* Algolia DocSearch Styles */


.DocSearch-Hit-content-wrapper {
font-size: 1.25em;
}

.DocSearch-Button {
align-items: center;
background: rgba(0, 0, 0, 0.26);
border: 0;
border-radius: 2px;
color: rgba(255,255,255,0.8);
cursor: pointer;
display: flex;
font-weight: 500;
height: 1.8rem;
justify-content: space-between;
margin: 0 0 0 16px;
padding: 0 8px;
user-select: none;
transition: color .25s, background-color .25s;
}

.DocSearch-Button:hover, .DocSearch-Button:active {
background-color: #ffffff1f;
box-shadow: none;
color: rgba(255,255,255,0.8);
outline: none;
}

.DocSearch-Button .DocSearch-Search-Icon {
color: rgba(255,255,255,0.8);
}

.DocSearch-Button-Placeholder {
font-size: .8rem;
margin-right:1.5rem;
}

.DocSearch-Hit-source {
font-size: .5rem;
}
47 changes: 1 addition & 46 deletions overrides/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,51 +5,6 @@
{% block styles %}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@docsearch/css@3" />
{{ super() }}
<style>

.DocSearch-Hit-content-wrapper {
font-size: 1.25em;
}

.DocSearch-Button {
align-items: center;
background: rgba(0, 0, 0, 0.26);
border: 0;
border-radius: 2px;
color: rgba(255,255,255,0.8);
cursor: pointer;
display: flex;
font-weight: 500;
height: 1.8rem;
justify-content: space-between;
margin: 0 0 0 16px;
padding: 0 8px;
user-select: none;
transition: color .25s, background-color .25s;
}

.DocSearch-Button:hover, .DocSearch-Button:active {
background-color: #ffffff1f;
box-shadow: none;
color: rgba(255,255,255,0.8);
outline: none;
}

.DocSearch-Button .DocSearch-Search-Icon {
color: rgba(255,255,255,0.8);
}

.DocSearch-Button-Placeholder {
font-size: .8rem;
margin-right:1.5rem;
}

.DocSearch-Hit-source {
font-size: .5rem;
}
</style>


{% endblock %}

{% block site_meta %}
Expand All @@ -66,7 +21,7 @@
indexName: 'developers-amplitude',
insights: true, // Optional, automatically send insights when user interacts with search result
container: '#docsearch',
debug: true, // Set debug to true if you want to inspect the modal
debug: false, // Set debug to true if you want to inspect the modal
transformItems(items) {
return items.map((item) => ({
...item,
Expand Down

0 comments on commit 433aba8

Please sign in to comment.