8
8
<router-link class =" navLink" to =" /" >
9
9
<span class =" navLogo" ><img src =" ../../static/logo.png" height =" 50px" ></span >
10
10
</router-link >
11
+ <div id =" mobileNavHeading" >
12
+ <h1 id =" bio" >Bio</h1 ><h1 id =" js" >JS</h1 >
13
+ </div >
11
14
<router-link class =" navLink" to =" /components" ><span >Components</span ></router-link >
12
15
<router-link class =" navLink" to =" /guide" ><span >Guide</span ></router-link >
13
16
<router-link class =" navLink" to =" /about" ><span >About</span ></router-link >
14
17
<router-link class =" navLink" to =" /contact" ><span >Contact Us</span ></router-link >
15
18
<div class =" close" >
16
19
<img @click =" closeMenu()" src =" ../../static/close.png" alt =" Close menu" >
17
20
</div >
21
+ <div id =" mobileNavBottom" >
22
+ <div id =" mobileNavSocialLink" >
23
+ <a href =" https://github.com/biojs/biojs-frontend" ><img src =" ../../static/github.png" alt =" GitHub" class =" mobileNavSocialLinkImg" ></a >
24
+ <a href =" https://twitter.com/biojslibrary?lang=en" ><img src =" ../../static/twitter.png" alt =" Twitter" class =" mobileNavSocialLinkImg" ></a >
25
+ <
a href =
" mailto:[email protected] " ><
img src =
" ../../static/mail.png" alt =
" Mail" class =
" mobileNavSocialLinkImg" ></
a >
26
+ </div >
27
+ </div >
18
28
</div >
19
29
<div id =" mobileNav" >
20
30
<div class =" hamburger" onclick =" " >
21
31
<img src =" ../../static/hamburger.png" alt =" Open Menu" @click =" openMenu()" >
22
32
</div >
23
- <h2 >Bio<span >JS</span ></h2 >
33
+
34
+ <router-link class =" navLink logoLink" to =" /" >
35
+ <span ><img src =" ../../static/logo.png" height =" 44px" ></span >
36
+ </router-link >
24
37
</div >
25
38
</div >
26
39
</div >
@@ -100,6 +113,7 @@ export default {
100
113
width : 80% ;
101
114
display : flex ;
102
115
justify-content : space-around ;
116
+ background : #f7f9ff ;
103
117
span {
104
118
font-size : 17px ;
105
119
cursor : pointer ;
@@ -123,16 +137,44 @@ export default {
123
137
display : none ;
124
138
}
125
139
}
140
+
141
+ #mobileNavHeading {
142
+ display : none ;
143
+ padding : 30px ;
144
+ #bio {
145
+ color : #007E3A ;
146
+ }
147
+ #js {
148
+ color : #000000 ;
149
+ }
150
+
151
+ #bio , #js {
152
+ font-weight : 700 ;
153
+ display : inline !important ;
154
+ }
155
+ }
156
+ #mobileNavBottom {
157
+ display : none ;
158
+ flex : 1 ;
159
+ align-items : flex-end ;
160
+
161
+ #mobileNavSocialLink {
162
+ display : flex ;
163
+ justify-content : center ;
164
+ padding : 30px ;
165
+ flex : 1 ;
166
+ }
167
+ }
126
168
#mobileNav {
127
169
display : none ;
128
170
align-items : center ;
129
- h2 {
130
- color : #007e3a ;
131
- margin : 0 ;
132
- padding : 0 ;
171
+ width : 100 % ;
172
+ .logoLink {
173
+ margin-left : auto ;
174
+ padding-right : 20 px ;
133
175
}
134
- span {
135
- color : #000 ;
176
+ .navLogo-m {
177
+ height : 44 px ;
136
178
}
137
179
}
138
180
.hamburger {
@@ -150,9 +192,10 @@ export default {
150
192
.close {
151
193
position : absolute ;
152
194
right : 20px ;
153
- top : 10 px ;
195
+ top : 35 px ;
154
196
height : 40px ;
155
197
width : 40px ;
198
+ z-index : 100 ;
156
199
display : none ;
157
200
img {
158
201
height : 100% ;
@@ -187,11 +230,10 @@ export default {
187
230
justify-content : flex-start ;
188
231
background : #fff ;
189
232
margin : 0 ;
190
- padding-top : 80px ;
191
- -webkit-transition : 0.3s all ease-in ;
192
- -moz-transition : 0.3s all ease-in ;
193
- -o-transition : 0.3s all ease-in ;
194
- transition : 0.3s all ease-in ;
233
+ -webkit-transition : 0.4s all cubic-bezier (1 ,0 ,0 ,1 );
234
+ -moz-transition : 0.4s all cubic-bezier (1 ,0 ,0 ,1 );
235
+ -o-transition : 0.4s all cubic-bezier (1 ,0 ,0 ,1 );
236
+ transition : 0.4s all cubic-bezier (1 ,0 ,0 ,1 );
195
237
span {
196
238
padding-left : 30px ;
197
239
line-height : 60px ;
@@ -212,12 +254,15 @@ export default {
212
254
#mobileNav {
213
255
display : flex ;
214
256
}
215
- .close {
257
+ #mobileNav , #mobileNavBottom , .close {
216
258
display : flex ;
217
259
}
218
260
#homeLink {
219
261
order : -1 ;
220
262
}
263
+ #mobileNavHeading {
264
+ display : block ;
265
+ }
221
266
}
222
267
@media (min-width : 768px ) and (max-width : 1024px ) and (orientation : landscape ) {
223
268
}
0 commit comments