Skip to content

Commit cb6200d

Browse files
committed
fix: issue #212 - problem with mobile navbar / burger menu
1 parent 0949c21 commit cb6200d

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/css/search.css

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
background-color: #474d57;
1515
font-family: inherit;
1616
font-size: 0.95rem;
17-
width: 150px;
17+
width: 120px;
1818
border: none;
1919
line-height: 1.5;
2020
padding: 4px 20px;
@@ -29,12 +29,19 @@
2929
outline: none;
3030
}
3131

32+
@media screen and (min-width: 500px) {
33+
#search-input {
34+
width: 150px;
35+
}
36+
}
37+
3238
@media screen and (min-width: 769px) {
3339
#search-input {
3440
width: 200px;
3541
}
3642
}
3743

44+
3845
.search-result-dropdown-menu {
3946
position: absolute;
4047
z-index: 100;

src/partials/header-content.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
{{#if env.SITE_SEARCH_PROVIDER}}
88
<div class="navbar-item search hide-for-print">
99
<div id="search-field" class="field">
10-
<input id="search-input" type="text" placeholder="Search the docs"{{#if page.home}} autofocus{{/if}}>
10+
<input id="search-input" type="text" placeholder="Search..."{{#if page.home}} autofocus{{/if}}>
1111
</div>
1212
</div>
1313
{{/if}}

0 commit comments

Comments
 (0)