Skip to content

Commit

Permalink
Fixes the nested nav's interaction with the custom search component (o…
Browse files Browse the repository at this point in the history
…pensearch-project#1251)

Signed-off-by: Miki <[email protected]>

Signed-off-by: Miki <[email protected]>
  • Loading branch information
AMoo-Miki authored Sep 19, 2022
1 parent 9da8dc2 commit 981ec77
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
2 changes: 1 addition & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ <h1><a href="#">Documentation</a></h1>
</div>
<div class="search-overlay"></div>
</div>
<div class="main" id="top">
<div class="main">
<div id="main-content-wrap" class="main-content-wrap">
{% unless page.url == "/" %}
{% if page.parent %}
Expand Down
8 changes: 4 additions & 4 deletions _sass/_nested-nav.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#top {
z-index: 9;
}

@media screen and (min-width: 46.25rem) {
#top {
z-index: 9;
}

[role="banner"] {
overflow: visible;

Expand Down
14 changes: 12 additions & 2 deletions _sass/custom/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1004,6 +1004,13 @@ main {
}

.search-active {
body {
position: fixed;

@include mq(md) {
position: unset;
}
}
.main {
position: relative !important;
}
Expand All @@ -1018,6 +1025,7 @@ main {
}
}


.site-header {
background: #D9E1E2;
font-weight: 300;
Expand Down Expand Up @@ -1161,8 +1169,10 @@ version-selector {
}
}

.banner-alert ~ main .custom-search-results {
max-height: calc(100vh - 200% - 60px - 3.6rem) !important;
@include respond-min(46.25rem) {
.banner-alert ~ main .custom-search-results {
max-height: calc(100vh - 200% - 60px - 3.6rem) !important;
}
}

.search-spinner {
Expand Down

0 comments on commit 981ec77

Please sign in to comment.