Skip to content

Commit ffcbc42

Browse files
Fix search icon spacing
1 parent d373d92 commit ffcbc42

File tree

4 files changed

+32
-14
lines changed

4 files changed

+32
-14
lines changed

assets/built/screen.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/built/screen.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/screen.css

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,6 @@ body:not(.has-cover) .site-header-content:not(.left-aligned) {
224224

225225
@media (max-width: 767px) {
226226
.has-cover .site-header-content {
227-
padding-bottom: 36px;
228227
min-height: 240px;
229228
}
230229
.site-header-inner {
@@ -321,6 +320,11 @@ body:not(.has-cover) .site-header-content:not(.left-aligned) {
321320
max-height: 26px;
322321
}
323322

323+
.gh-head-brand-wrapper {
324+
display: flex;
325+
align-items: center;
326+
}
327+
324328

325329
/* Primary Navigation
326330
/* ---------------------------------------------------------- */
@@ -368,7 +372,7 @@ body:not(.has-cover) .site-header-content:not(.left-aligned) {
368372
.gh-social {
369373
display: flex;
370374
align-items: center;
371-
gap: 16px;
375+
gap: 20px;
372376
}
373377

374378
.gh-social-link {
@@ -433,12 +437,23 @@ body:not(.has-cover) .site-header-content:not(.left-aligned) {
433437
opacity: 0.9;
434438
}
435439

440+
.gh-head-brand .gh-search {
441+
margin-right: 8px;
442+
}
443+
444+
.gh-head-actions .gh-search {
445+
margin-right: -10px;
446+
}
447+
436448
@media (max-width: 991px) {
437-
.gh-search {
438-
position: fixed;
439-
top: 16px;
440-
left: 16px;
441-
z-index: 10;
449+
.gh-head-actions .gh-search {
450+
display: none;
451+
}
452+
}
453+
454+
@media (min-width: 992px) {
455+
.gh-head-brand .gh-search {
456+
display: none;
442457
}
443458
}
444459

default.hbs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,14 @@
3232
{{@site.title}}
3333
{{/if}}
3434
</a>
35-
<a class="gh-burger" role="button">
36-
<div class="gh-burger-box">
37-
<div class="gh-burger-inner"></div>
38-
</div>
39-
</a>
35+
<div class="gh-head-brand-wrapper">
36+
<button class="gh-search" data-ghost-search>{{> "icons/search"}}</button>
37+
<a class="gh-burger" role="button">
38+
<div class="gh-burger-box">
39+
<div class="gh-burger-inner"></div>
40+
</div>
41+
</a>
42+
</div>
4043
</div>
4144
<div class="gh-head-menu">
4245
{{navigation}}

0 commit comments

Comments
 (0)