diff --git a/docs/_includes/header.html b/docs/_includes/header.html
index cb7c626d..2fa86397 100644
--- a/docs/_includes/header.html
+++ b/docs/_includes/header.html
@@ -10,6 +10,13 @@
+ -
+
+
{% assign url = page.url %}
{% for link in site.navigation %}
-
diff --git a/docs/_includes/searchbar.html b/docs/_includes/searchbar.html
new file mode 100644
index 00000000..7bd7d551
--- /dev/null
+++ b/docs/_includes/searchbar.html
@@ -0,0 +1,34 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html
index bd9e5245..3736763b 100644
--- a/docs/_layouts/default.html
+++ b/docs/_layouts/default.html
@@ -40,6 +40,7 @@
+
@@ -60,6 +61,15 @@
{% endif %}
+
+
+
{% include marketing.html %}
{% contentblock site-footer %}
diff --git a/docs/css/_searchbar.scss b/docs/css/_searchbar.scss
new file mode 100644
index 00000000..68fdce15
--- /dev/null
+++ b/docs/css/_searchbar.scss
@@ -0,0 +1,197 @@
+$custom:(
+ input-width: 240px,
+ input-height: 36px,
+ border-width: 2px,
+ border-radius: 18px,
+ input-border-color: #1D96C7,
+ input-focus-border-color: #1D96C7,
+ input-background: #091724,
+ input-focus-background: #091724,
+ font-size: 13px,
+ placeholder-color: #AAAAAA,
+ icon: sbx-icon-search-13,
+ icon-size: 16px,
+ icon-position: left,
+ icon-color: #1D96C7,
+ icon-background: #FFFFFF,
+ icon-background-opacity: 0,
+ icon-clear: sbx-icon-clear-2,
+ icon-clear-size: 12px
+);
+
+@mixin searchbox(
+ $input-width: 500px,
+ $input-height: 40px,
+ $border-width: 1px,
+ $border-radius: 3px,
+ $input-border-color: #ccc,
+ $input-focus-border-color: darken($input-border-color, 15%),
+ $input-background: #fff,
+ $input-focus-background: $input-background,
+ $font-size: 14px,
+ $placeholder-color: #aaa,
+ $icon: 'sbx-icon-search-1',
+ $icon-size: 18px,
+ $icon-position: right,
+ $icon-color: #fff,
+ $icon-background: #3e82f7,
+ $icon-background-opacity: 1,
+ $icon-clear: 'sbx-icon-clear-1',
+ $icon-clear-size: 12px
+) {
+ display: inline-block;
+ position: relative;
+ width: $input-width;
+ height: $input-height;
+ white-space: nowrap;
+ box-sizing: border-box;
+
+ &__input {
+ display: inline-block;
+ transition: box-shadow .4s ease, background .4s ease, padding .4s ease;
+ border: 0;
+ border-radius: $border-radius;
+ box-shadow: inset 0 0 0 $border-width $input-border-color;
+ background: $input-background;
+ padding: 0;
+ padding-right: if($icon-position == 'right', $input-height, 0) + $icon-clear-size * 2 + 8px;
+ padding-left: if($icon-position == 'right', $font-size, $input-height + if($icon-background-opacity == 0, 0, 8px));
+ width: 100%;
+ height: 100%;
+ vertical-align: middle;
+ white-space: normal;
+ font-size: $font-size;
+ appearance: none;
+ color: white;
+
+ &::-webkit-search-decoration,
+ &::-webkit-search-cancel-button,
+ &::-webkit-search-results-button,
+ &::-webkit-search-results-decoration {
+ display: none;
+ }
+
+ &:hover {
+ box-shadow: inset 0 0 0 $border-width darken($input-border-color, 10%);
+ }
+
+ &:focus,
+ &:active {
+ outline: 0;
+ box-shadow: inset 0 0 0 $border-width $input-focus-border-color;
+ background: $input-focus-background;
+ }
+
+ &::placeholder {
+ color: $placeholder-color;
+ }
+
+ }
+
+ &__submit {
+ position: absolute;
+ top: 0;
+ #{$icon-position}: 0;
+ margin: 0;
+ border: 0;
+ border-radius: if($icon-position == 'right', 0 $border-radius $border-radius 0, $border-radius 0 0 $border-radius);
+ background-color: rgba($icon-background, $icon-background-opacity);
+ padding: 0;
+ width: $input-height;
+ height: 100%;
+ vertical-align: middle;
+ text-align: center;
+ user-select: none;
+
+ // Helper for vertical alignement of the icon
+ &::before {
+ display: inline-block;
+ margin-right: -4px;
+ height: 100%;
+ vertical-align: middle;
+ content: '';
+ }
+
+ &:hover,
+ &:active {
+ cursor: pointer;
+ }
+
+ &:focus {
+ outline: 0;
+ }
+
+ svg {
+ width: $icon-size;
+ height: $icon-size;
+ vertical-align: middle;
+ fill: $icon-color;
+ }
+ }
+
+ &__reset {
+ display: none;
+ position: absolute;
+ top: ($input-height - $icon-clear-size) / 2 - 4px;
+ right: if($icon-position == 'right', 8px + $input-height, ($input-height - $icon-clear-size) / 2) - 4px;
+ margin: 0;
+ border: 0;
+ background: none;
+ cursor: pointer;
+ padding: 0;
+ user-select: none;
+ fill: rgba(#000, .5);
+
+ &:focus {
+ outline: 0;
+ }
+
+ svg {
+ display: block;
+ margin: 4px;
+ width: $icon-clear-size;
+ height: $icon-clear-size;
+ }
+ }
+
+ &__input:valid ~ &__reset {
+ display: block;
+ animation-name: sbx-reset-in;
+ animation-duration: .15s;
+ }
+
+ @keyframes sbx-reset-in {
+ from {
+ transform: translate3d(-20%, 0, 0);
+ opacity: 0;
+ }
+
+ to {
+ transform: none;
+ opacity: 1;
+ }
+ }
+}
+
+.sbx-custom{
+ @include searchbox($custom...);
+}
+
+.site-header .navbar .navbar-nav > li.searchbar-wrapper {
+ padding-top: 0;
+ padding-bottom: 0;
+}
+
+.algolia-autocomplete {
+ display: inline !important;
+}
+
+.aa-dropdown-menu.aa-with-0 {
+ top: 31px !important;
+}
+
+@media (min-width: 768px) {
+ .aa-dropdown-menu {
+ min-width: 530px !important;
+ }
+}
diff --git a/docs/css/main.scss b/docs/css/main.scss
index ade665a5..c2903e79 100644
--- a/docs/css/main.scss
+++ b/docs/css/main.scss
@@ -11,3 +11,4 @@
@import "home";
@import "page";
+@import "searchbar";