Skip to content

Commit eb54147

Browse files
authored
Merge pull request #44574 from coder12git/sur/search
Show a way to search even when page scrolled
2 parents 0626391 + 9698b89 commit eb54147

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

assets/scss/_custom.scss

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,25 @@ body.td-404 main .error-details {
239239
}
240240
}
241241

242+
.flip-nav .search-item {
243+
.td-search-input {
244+
background-color: $medium-grey;
245+
}
246+
input, textarea {
247+
color: white;
248+
}
249+
textarea:focus, input:focus {
250+
color: white;
251+
}
252+
}
253+
254+
@media only screen and (max-width: 1500px) {
255+
header nav .search-item {
256+
display: none;
257+
}
258+
}
259+
260+
242261
/* FOOTER */
243262
footer {
244263
background-color: #303030;

layouts/partials/navbar.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
{{ partial "navbar-lang-selector.html" . }}
2525
</li>
2626
{{ end }}
27+
<li class="search-item nav-item mr-n4 mr-lg-0">
28+
{{ partial "search-input.html" . }}
29+
</li>
2730
</ul>
2831
</div>
2932
<button id="hamburger" onclick="kub.toggleMenu()" data-auto-burger-exclude><div></div></button>

0 commit comments

Comments
 (0)