File tree Expand file tree Collapse file tree 2 files changed +15
-13
lines changed Expand file tree Collapse file tree 2 files changed +15
-13
lines changed Original file line number Diff line number Diff line change 52
52
<menu .Item><LinkTo @route =" category-slugs" >List of category slugs</LinkTo ></menu .Item>
53
53
</dd .Menu>
54
54
</Dropdown >
55
- <span local-class =" sep" >|</span >
55
+ </nav >
56
+
57
+ <div local-class =" login" >
56
58
{{ #if this.session.currentUser }}
57
59
<Dropdown data-test-user-menu as |dd|>
58
60
<dd .Trigger local-class =" dropdown-button" data-test-toggle>
96
98
Log in with GitHub
97
99
</button >
98
100
{{ /if }}
99
- </nav >
101
+ </div >
100
102
101
103
<div local-class =' menu' >
102
104
<Dropdown as |dd|>
Original file line number Diff line number Diff line change 18
18
19
19
@media only screen and (min-width : 890px ) {
20
20
grid-template :
21
- "index-link search-form nav" auto
22
- / auto 1fr auto;
21
+ "index-link search-form nav login " auto
22
+ / auto minmax ( 150 px , 400 px ) minmax ( 220 px , 1fr ) auto;
23
23
}
24
24
25
25
a {
@@ -80,20 +80,12 @@ input.search {
80
80
background-size : 14px 15px ;
81
81
border-radius : 15px ;
82
82
box-shadow : none;
83
- transition : box-shadow 150ms , max-width 150 ms ;
83
+ transition : box-shadow 150ms ;
84
84
85
85
& : focus {
86
86
outline : none;
87
87
box-shadow : 0 0 0 4px var (--yellow500 );
88
88
}
89
-
90
- @media only screen and (min-width : 551px ) {
91
- max-width : 400px ;
92
-
93
- & : focus {
94
- max-width : 100% ;
95
- }
96
- }
97
89
}
98
90
99
91
.search-label {
@@ -127,6 +119,14 @@ input.search {
127
119
}
128
120
}
129
121
122
+ .login {
123
+ display : none;
124
+
125
+ @media only screen and (min-width : 890px ) {
126
+ display : block;
127
+ }
128
+ }
129
+
130
130
.menu {
131
131
grid-area : menu;
132
132
text-align : right;
You can’t perform that action at this time.
0 commit comments