diff --git a/CHANGELOG.md b/CHANGELOG.md
index a2a3224..188c43a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,9 @@
## vNEXT
+* Re-introduce the scrolling ability within search results.
+ [PR #83](https://github.com/meteor/meteor-theme-hexo/pull/83)
+
## v1.0.15
* Update Prism version to 1.15.0.
diff --git a/layout/partials/sidebar.ejs b/layout/partials/sidebar.ejs
index a26863f..5fbd5cc 100644
--- a/layout/partials/sidebar.ejs
+++ b/layout/partials/sidebar.ejs
@@ -81,9 +81,11 @@
<% if (config.apis && config.apis.docsearch) { %>
-
diff --git a/source/style/_global/docsearch.less b/source/style/_global/docsearch.less
index 02ba567..fa58552 100644
--- a/source/style/_global/docsearch.less
+++ b/source/style/_global/docsearch.less
@@ -17,16 +17,17 @@
}
// Main autocomplete wrapper
-.wrapper-desktop-search-results .aa-dropdown-menu {
+.wrapper-desktop-search-results .ds-dropdown-menu {
//reset algolia js styling
top: 0.75rem !important;
bottom: auto !important;
left: 0 !important;
right: 0 !important;
background: @color-lighter;
+ margin-right: 2rem;
}
-.wrapper-mobile-search-results .aa-dropdown-menu {
+.wrapper-mobile-search-results .ds-dropdown-menu {
//reset algolia js styling
bottom: auto !important;
left: 0 !important;
@@ -147,6 +148,7 @@
.font-s1;
color: @color-medium;
padding-top: 1rem;
+ .std-xpadding;
.algolia-docsearch-footer--logo {
display: inline-block !important;
@@ -166,11 +168,11 @@
&.charcoal {
@color-highlight-header-background: fade(@color-dark, 95%);
- .wrapper-desktop-search-results .aa-dropdown-menu {
+ .wrapper-desktop-search-results .ds-dropdown-menu {
background: transparent;
}
- .wrapper-mobile-search-results .aa-dropdown-menu {
+ .wrapper-mobile-search-results .ds-dropdown-menu {
background: transparent;
}
diff --git a/source/style/_theme/layout.less b/source/style/_theme/layout.less
index c120576..3f114c4 100644
--- a/source/style/_theme/layout.less
+++ b/source/style/_theme/layout.less
@@ -128,6 +128,7 @@ body {
height: 100%;
max-height: 100vh;
.scrollbars(6px, rgba(0,0,0,0.07), rgba(0,0,0,0.05));
+ overflow-y: auto;
opacity: 1;
}
diff --git a/source/style/_theme/sidebar.less b/source/style/_theme/sidebar.less
index 0d59e70..15ac707 100644
--- a/source/style/_theme/sidebar.less
+++ b/source/style/_theme/sidebar.less
@@ -21,14 +21,19 @@
.wrapper-search {
display: block;
-
- .std-xpadding;
margin-bottom: .75rem;
- .input-symbol {
- width: 100%;
+ .input-area {
+
+ .std-xpadding;
- input { box-shadow: @color-light 0 0 0 1px inset; }
+ .input-symbol {
+ width: 100%;
+
+ input {
+ box-shadow: @color-light 0 0 0 1px inset;
+ }
+ }
}
}