Skip to content

Commit fe5927b

Browse files
fix the navbar search responsiveness issue
Signed-off-by: suntiwari3495-arch <suntiwari3495@gmail.com>
1 parent 21cb5d0 commit fe5927b

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

website/src/css/global.css

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@
128128
background: transparent !important;
129129
height: 32px !important;
130130
width: 250px !important;
131+
max-width: 100%;
131132
}
132133

133134
.DocSearch-Button-Key {
@@ -156,6 +157,43 @@
156157
margin-right: 8px;
157158
}
158159

160+
@media screen and (max-width: 996px) {
161+
.navbarSearchContainer_Bca1 {
162+
padding: 4px 8px !important;
163+
margin-right: 4px;
164+
border-right: none !important;
165+
}
166+
}
167+
168+
@media screen and (max-width: 768px) {
169+
.DocSearch-Button {
170+
width: 180px !important;
171+
}
172+
173+
.navbar {
174+
padding: 0px 12px;
175+
}
176+
}
177+
178+
@media screen and (max-width: 480px) {
179+
.DocSearch-Button {
180+
width: 120px !important;
181+
}
182+
183+
.DocSearch-Button-Placeholder {
184+
font-size: 11px;
185+
}
186+
187+
.navbar {
188+
padding: 0px 8px;
189+
}
190+
191+
.navbarSearchContainer_Bca1 {
192+
padding: 4px !important;
193+
margin-right: 2px;
194+
}
195+
}
196+
159197
html {
160198
font-family: 'Work Sans', sans-serif;
161199
}

0 commit comments

Comments
 (0)