-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update template design for website (#752)
* add typescript support for offline plugin * update template design for website
- Loading branch information
Christian Llontop
authored
Mar 28, 2023
1 parent
eae7f19
commit 3ba41d6
Showing
20 changed files
with
339 additions
and
135 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"authorName": "Jared Wray", | ||
"footer": "License MIT and Copyright", | ||
"homeTitle": "Simple key-value storage with support for multiple backends" | ||
"homeTitle": "Simple key-value storage with support for multiple backends", | ||
"name": "Keyv" | ||
} |
125 changes: 125 additions & 0 deletions
125
packages/website/site/_includes/assets/css/styles/algolia.css
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,125 @@ | ||
#hits { | ||
height: calc(100vh - 72px); | ||
position: fixed; | ||
top: 72px; | ||
overflow-y: auto; | ||
background-color: var(--search-input-background); | ||
width: 100%; | ||
} | ||
|
||
#hits > div { | ||
padding: 0 24px; | ||
} | ||
|
||
.search-box { | ||
display: flex; | ||
width: 100%; | ||
border-color: var(--search-input-background); | ||
background-color: var(--search-input-background); | ||
border: none; | ||
border-bottom: 1px solid var(--border); | ||
height: 72px; | ||
} | ||
|
||
.search-box input { | ||
border-color: var(--search-input-background); | ||
border: none !important; | ||
border-bottom: 1px solid var(--border); | ||
font-size: 18px; | ||
height: 71px !important; | ||
} | ||
|
||
.ais-SearchBox { | ||
position: relative; | ||
flex: 0.8; | ||
} | ||
|
||
.close-modal--btn { | ||
flex: 0.2; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
font-size: 13px; | ||
border-left: 1px solid var(--border); | ||
margin: 10px 0; | ||
cursor: pointer; | ||
opacity: 0.6; | ||
} | ||
|
||
.ais-SearchBox-submit, .ais-SearchBox-reset { | ||
position: absolute; | ||
top: 24px; | ||
cursor: pointer; | ||
opacity: 0.6; | ||
} | ||
|
||
.ais-SearchBox-submit svg { | ||
fill: currentColor; | ||
width: 16px; | ||
height: 16px; | ||
} | ||
|
||
.ais-SearchBox-reset svg { | ||
fill: currentColor; | ||
width: 10px; | ||
height: 10px; | ||
} | ||
|
||
.ais-SearchBox-submit { | ||
left: 16px | ||
} | ||
|
||
.ais-SearchBox-reset { | ||
right: 16px; | ||
} | ||
|
||
.search-result { | ||
padding: 0; | ||
margin-top: 24px; | ||
} | ||
|
||
.search-result hr { | ||
margin: 46px 0; | ||
opacity: 0.3 | ||
} | ||
|
||
@media screen and (min-width: 640px) { | ||
.ais-SearchBox { | ||
flex: 0.9; | ||
} | ||
|
||
.close-modal--btn { | ||
flex: 0.1; | ||
} | ||
} | ||
|
||
@media screen and (min-width: 992px) { | ||
#hits { | ||
height: calc(780px - 72px); | ||
position: fixed; | ||
} | ||
|
||
#hits > div { | ||
padding: 0 48px; | ||
} | ||
|
||
.search-container { | ||
height: 780px; | ||
} | ||
|
||
.search-box { | ||
justify-content: center; | ||
} | ||
|
||
.ais-SearchBox-submit, .ais-SearchBox-reset { | ||
top: 16px; | ||
} | ||
|
||
.ais-SearchBox { | ||
flex: 0.8; | ||
} | ||
|
||
.close-modal--btn { | ||
justify-content: flex-end; | ||
} | ||
} |
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
Oops, something went wrong.