File tree 2 files changed +24
-4
lines changed
src/librustdoc/html/static
2 files changed +24
-4
lines changed Original file line number Diff line number Diff line change @@ -1669,6 +1669,28 @@ a.tooltip:hover::after {
1669
1669
font-weight : normal;
1670
1670
}
1671
1671
1672
+ /* panel that only shows up during searches */
1673
+ # search-focus-panel {
1674
+ position : absolute;
1675
+ display : none;
1676
+ background-color : var (--main-background-color );
1677
+ border-width : 1px ;
1678
+ border-color : var (--border-color );
1679
+ border-style : solid;
1680
+ padding : 3px ;
1681
+ text-wrap : nowrap;
1682
+ z-index : 1 ;
1683
+ top : 0 ;
1684
+ }
1685
+
1686
+ rustdoc-search {
1687
+ position : relative;
1688
+ }
1689
+
1690
+ rustdoc-search : focus-within # search-focus-panel {
1691
+ display : block;
1692
+ }
1693
+
1672
1694
# src-sidebar {
1673
1695
width : 100% ;
1674
1696
overflow : auto;
Original file line number Diff line number Diff line change @@ -277,11 +277,9 @@ class RustdocSearchElement extends HTMLElement {
277
277
Settings
278
278
</a>
279
279
</div>
280
- <div id="search-focus-panel">
281
- example query goes here
282
- </div>
283
280
</form>
284
- </nav>` ;
281
+ </nav>
282
+ <div id="search-focus-panel">example query goes here</div>` ;
285
283
}
286
284
}
287
285
window . customElements . define ( "rustdoc-search" , RustdocSearchElement ) ;
You can’t perform that action at this time.
0 commit comments