File tree Expand file tree Collapse file tree 2 files changed +24
-4
lines changed
src/librustdoc/html/static Expand file tree Collapse file tree 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 {
16691669 font-weight : normal;
16701670}
16711671
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+
16721694# src-sidebar {
16731695 width : 100% ;
16741696 overflow : auto;
Original file line number Diff line number Diff line change @@ -277,11 +277,9 @@ class RustdocSearchElement extends HTMLElement {
277277 Settings
278278 </a>
279279 </div>
280- <div id="search-focus-panel">
281- example query goes here
282- </div>
283280 </form>
284- </nav>` ;
281+ </nav>
282+ <div id="search-focus-panel">example query goes here</div>` ;
285283 }
286284}
287285window . customElements . define ( "rustdoc-search" , RustdocSearchElement ) ;
You can’t perform that action at this time.
0 commit comments