Skip to content

Commit

Permalink
fix docsearch modal
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentlauvlwj committed Oct 2, 2024
1 parent 38f0b6c commit 0dd8fe3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 18 deletions.
7 changes: 2 additions & 5 deletions themes/doc/source/style/_doc/layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,11 @@ body {
}
}

&.doc-sidebar--is-visible:not(.DocSearch--active) {
&.doc-sidebar--is-visible {
@media screen and (max-width: $doc-breakpoint) {
.doc-sidebar {
transform: translateX(0);
}

.doc-content {
transform: translateX($doc-sidebar-width);
z-index: 9;
}
}
}
Expand Down
26 changes: 13 additions & 13 deletions themes/doc/source/style/_doc/navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -173,21 +173,21 @@
border-color: #26aafe;
box-shadow: none;
}
}

.DocSearch-Search-Icon {
margin: 0 4px;
width: 16px;
height: 16px;
color: #9b9b9b;
}
.DocSearch-Search-Icon {
margin: 0 4px;
width: 16px;
height: 16px;
color: #9b9b9b;
}

.DocSearch-Button-Placeholder {
display: initial !important;
}

.DocSearch-Button-Keys {
display: none;
.DocSearch-Button-Placeholder {
display: initial !important;
}

.DocSearch-Button-Keys {
display: none;
}
}
}
}
Expand Down

0 comments on commit 0dd8fe3

Please sign in to comment.