Skip to content

Commit e5264e9

Browse files
committed
Header: Move primary nav to the left side
1 parent e54459c commit e5264e9

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

app/components/header.hbs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@
5252
<menu.Item><LinkTo @route="category-slugs">List of category slugs</LinkTo></menu.Item>
5353
</dd.Menu>
5454
</Dropdown>
55-
<span local-class="sep">|</span>
55+
</nav>
56+
57+
<div local-class="login">
5658
{{#if this.session.currentUser}}
5759
<Dropdown data-test-user-menu as |dd|>
5860
<dd.Trigger local-class="dropdown-button" data-test-toggle>
@@ -96,7 +98,7 @@
9698
Log in with GitHub
9799
</button>
98100
{{/if}}
99-
</nav>
101+
</div>
100102

101103
<div local-class='menu'>
102104
<Dropdown as |dd|>

app/components/header.module.css

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818

1919
@media only screen and (min-width: 890px) {
2020
grid-template:
21-
"index-link search-form nav" auto
22-
/ auto 1fr auto;
21+
"index-link search-form nav login" auto
22+
/ auto minmax(150px, 400px) minmax(220px, 1fr) auto;
2323
}
2424

2525
a {
@@ -80,20 +80,12 @@ input.search {
8080
background-size: 14px 15px;
8181
border-radius: 15px;
8282
box-shadow: none;
83-
transition: box-shadow 150ms, max-width 150ms;
83+
transition: box-shadow 150ms;
8484

8585
&:focus {
8686
outline: none;
8787
box-shadow: 0 0 0 4px var(--yellow500);
8888
}
89-
90-
@media only screen and (min-width: 551px) {
91-
max-width: 400px;
92-
93-
&:focus {
94-
max-width: 100%;
95-
}
96-
}
9789
}
9890

9991
.search-label {
@@ -127,6 +119,14 @@ input.search {
127119
}
128120
}
129121

122+
.login {
123+
display: none;
124+
125+
@media only screen and (min-width: 890px) {
126+
display: block;
127+
}
128+
}
129+
130130
.menu {
131131
grid-area: menu;
132132
text-align: right;

0 commit comments

Comments
 (0)