From 41f35630d26784fed164c40289b09aba8f5c1adf Mon Sep 17 00:00:00 2001 From: Jasper De Moor Date: Sun, 7 Oct 2018 11:48:06 +0200 Subject: [PATCH] Add Algolia DocSearch (#253) --- .gitignore | 1 + src/assets/style.css | 28 ++++++++++++++++++++++++++++ src/i18n/en/layout/page.html | 20 ++++++++++++++++++-- src/i18n/es/layout/page.html | 20 ++++++++++++++++++-- src/i18n/fr/layout/page.html | 20 ++++++++++++++++++-- src/i18n/it/layout/page.html | 20 ++++++++++++++++++-- src/i18n/ko/layout/page.html | 22 +++++++++++++++++++--- src/i18n/pl/layout/page.html | 20 ++++++++++++++++++-- src/i18n/pt/layout/page.html | 20 ++++++++++++++++++-- src/i18n/ru/layout/page.html | 20 ++++++++++++++++++-- src/i18n/uk/layout/page.html | 20 ++++++++++++++++++-- src/i18n/zh/layout/page.html | 31 +++++++++++++++++++------------ 12 files changed, 211 insertions(+), 31 deletions(-) diff --git a/.gitignore b/.gitignore index 51652dcc1..40ec3b651 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ yarn.lock .DS_Store yarn-error.log package-lock.json +tmp diff --git a/src/assets/style.css b/src/assets/style.css index c5f6a1bdf..eee7f7901 100644 --- a/src/assets/style.css +++ b/src/assets/style.css @@ -86,6 +86,34 @@ header .links a:hover { padding:1em; } +.search-input { + display: inline-block; + padding: 2px 8px; + width: 90px; + border: none; + border-radius: 50px; + font-family: "Gill Sans", "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif; + font-size: inherit; + margin: 0 20px; + transition: all 250ms; + background: rgba(255, 255, 255, 0); + color: #E7DACB; +} + +.search-input::placeholder { + color: #E7DACB; +} + +.search-input:hover { + background: rgba(255, 255, 255, 0.1); +} + +.search-input:focus { + width: 200px; + background: rgba(255, 255, 255, 0.2); + outline: none; +} + nav { width: 250px; font-family: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif; diff --git a/src/i18n/en/layout/page.html b/src/i18n/en/layout/page.html index 84e9a67f0..aedcdcc3c 100644 --- a/src/i18n/en/layout/page.html +++ b/src/i18n/en/layout/page.html @@ -10,12 +10,15 @@ - +
@@ -24,6 +27,7 @@ Parcel