Skip to content

Commit 4ba6c97

Browse files
committed
docs: fix mobile docs search layout
1 parent 746d013 commit 4ba6c97

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

docs/src/styles/cli.css

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,10 +501,27 @@ pre.table-box * {
501501
}
502502

503503
/* ==========================================================================
504-
Mobile Responsive (splash-specific)
504+
Mobile Responsive
505505
========================================================================== */
506506

507507
@media (max-width: 768px) {
508+
/* Reset search bar to flow naturally in the compact docs header. */
509+
site-search button {
510+
position: static !important;
511+
left: auto !important;
512+
top: auto !important;
513+
transform: none !important;
514+
z-index: auto !important;
515+
width: auto !important;
516+
min-width: auto !important;
517+
padding: 0.5rem !important;
518+
}
519+
520+
site-search button span,
521+
site-search button kbd {
522+
display: none !important;
523+
}
524+
508525
.hero {
509526
text-align: center !important;
510527
}

0 commit comments

Comments
 (0)