This is a tough one, as it’s very much custom development, which takes time. I’m sure the developers of Hermes spent a lot of time working on their header.
Let’s see if we can clean things up on mobile.
First, let’s make the search closer to the toggle:
@media (max-width: 768px) {
.main-navigation.has-branding button.menu-toggle {
padding: 0 10px 0 20px;
}
.main-navigation.has-branding .search-item a {
padding-left: 10px;
}
}
Now, let’s try to make the navigation search nicer on mobile:
#mobile-header .navigation-search.nav-search-active {
position: absolute;
top: 5px;
right: 5px;
bottom: 5px;
left: 5px;
width: auto;
height: auto;
}
#mobile-header .navigation-search input[type="search"] {
height: 100%;
padding-left: 40px;
}
#mobile-header .menu-bar-item.search-item.active {
position: absolute;
top: 5px;
left: 10px;
bottom: 5px;
}
#mobile-header .menu-bar-item.search-item.active a {
height: auto;
line-height: 50px;
background: transparent;
}
That should get you much closer to the desired result ๐