summaryrefslogtreecommitdiff
path: root/docs/src/components
diff options
context:
space:
mode:
authorGravatar V. Tinev <54780475+vtinev@users.noreply.github.com> 2021-08-06 21:54:42 +0300
committerGravatar GitHub <noreply@github.com> 2021-08-06 11:54:42 -0700
commit57328fc0569ccab902081d6f3b026ac565bc10c6 (patch)
tree9cc990ad895d3d8907414ad4e7ee0a62432d9eee /docs/src/components
parent50fed4902b258489805af3d02df5888e5865d637 (diff)
downloadastro-57328fc0569ccab902081d6f3b026ac565bc10c6.tar.gz
astro-57328fc0569ccab902081d6f3b026ac565bc10c6.tar.zst
astro-57328fc0569ccab902081d6f3b026ac565bc10c6.zip
Styled the dark version of the search bar. (#1041)
* Styled the dark version for the search bar. Changed some stlyes for both themes. * Adjusted the SearchFooter glow. Co-authored-by: Peter Singh <drgaud@hotmail.com> * Removed search footer glow. * Added inset shadow for the search modal. Co-authored-by: V. Tinev <vtinev@2create.studio> Co-authored-by: Peter Singh <drgaud@hotmail.com>
Diffstat (limited to 'docs/src/components')
-rw-r--r--docs/src/components/Header/Search.css107
1 files changed, 58 insertions, 49 deletions
diff --git a/docs/src/components/Header/Search.css b/docs/src/components/Header/Search.css
index b11a59290..9a0c7f303 100644
--- a/docs/src/components/Header/Search.css
+++ b/docs/src/components/Header/Search.css
@@ -1,67 +1,76 @@
/** Style Algolia */
:root {
- --docsearch-primary-color: var(--theme-accent);
- --docsearch-logo-color: var(--theme-text);
+ --docsearch-primary-color: var(--theme-accent);
+ --docsearch-logo-color: var(--theme-text);
}
.search-input {
- flex-grow: 1;
- box-sizing: border-box;
- width: 100%;
- margin: 0;
- padding: 0.33em 0.5em;
- overflow: visible;
- font-weight: 500;
- font-size: 1rem;
- font-family: inherit;
- line-height: inherit;
- background-color: var(--theme-divider);
- border-color: var(--theme-divider);
- color: var(--theme-text-light);
- border-style: solid;
- border-width: 1px;
- border-radius: 0.25rem;
- outline: 0;
- cursor: pointer;
- transition-timing-function: ease-out;
- transition-duration: 0.2s;
- transition-property: border-color, color;
- -webkit-font-smoothing: antialiased;
+ flex-grow: 1;
+ box-sizing: border-box;
+ width: 100%;
+ margin: 0;
+ padding: 0.33em 0.5em;
+ overflow: visible;
+ font-weight: 500;
+ font-size: 1rem;
+ font-family: inherit;
+ line-height: inherit;
+ background-color: var(--theme-divider);
+ border-color: var(--theme-divider);
+ color: var(--theme-text-light);
+ border-style: solid;
+ border-width: 1px;
+ border-radius: 0.25rem;
+ outline: 0;
+ cursor: pointer;
+ transition-timing-function: ease-out;
+ transition-duration: 0.2s;
+ transition-property: border-color, color;
+ -webkit-font-smoothing: antialiased;
}
.search-input:hover,
.search-input:focus {
- color: var(--theme-text);
- border-color: var(--theme-text-light);
+ color: var(--theme-text);
+ border-color: var(--theme-text-light);
}
.search-input:hover::placeholder,
.search-input:focus::placeholder {
- color: var(--theme-text-light);
+ color: var(--theme-text-light);
}
.search-input::placeholder {
- color: var(--theme-text-light);
+ color: var(--theme-text-light);
}
.search-hint {
- position: absolute;
- top: 7px;
- right: 19px;
- padding: 3px 5px;
- display: none;
- display: none;
- align-items: center;
- justify-content: center;
- letter-spacing: 0.125em;
- font-size: 13px;
- font-family: var(--font-mono);
- pointer-events: none;
- border-color: var(--theme-text-lighter);
- color: var(--theme-text-light);
- border-style: solid;
- border-width: 1px;
- border-radius: 0.25rem;
- line-height: 14px;
+ position: absolute;
+ top: 7px;
+ right: 19px;
+ padding: 3px 5px;
+ display: none;
+ display: none;
+ align-items: center;
+ justify-content: center;
+ letter-spacing: 0.125em;
+ font-size: 13px;
+ font-family: var(--font-mono);
+ pointer-events: none;
+ border-color: var(--theme-text-lighter);
+ color: var(--theme-text-light);
+ border-style: solid;
+ border-width: 1px;
+ border-radius: 0.25rem;
+ line-height: 14px;
}
@media (min-width: 50em) {
- .search-hint {
- display: flex;
- }
+ .search-hint {
+ display: flex;
+ }
+}
+
+/* ------------------------------------------------------------ *\
+ DocSearch (Algolia)
+\* ------------------------------------------------------------ */
+
+.DocSearch-Modal .DocSearch-Hit a {
+ box-shadow: none;
+ border: 1px solid var(--theme-accent);
}