Skip to content

Commit 8df35e1

Browse files
committed
add mobile styling so the modal takes up the entire veritcal
1 parent dfdc875 commit 8df35e1

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/theme/SearchBar/styles.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,21 @@
6565
.DocSearch-Dropdown {
6666
max-height: calc(min(90vh) - 180px) !important;
6767
}
68+
69+
/* Mobile styles */
70+
@media (max-width: 768px) {
71+
.DocSearch-Dropdown {
72+
max-height: calc(100vh - 120px) !important;
73+
width: calc(100vw - 20px) !important;
74+
left: 10px !important;
75+
right: 10px !important;
76+
position: fixed !important;
77+
z-index: 9999 !important;
78+
}
79+
80+
.DocSearch-SearchBar {
81+
position: sticky !important;
82+
top: 0 !important;
83+
z-index: 10000 !important;
84+
}
85+
}

0 commit comments

Comments
 (0)