Skip to content

Commit e9707bb

Browse files
author
An Phan
committed
Responsive
1 parent c11b56c commit e9707bb

File tree

3 files changed

+114
-21
lines changed

3 files changed

+114
-21
lines changed

app/site/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<meta charset="utf-8">
55
<title>Awesome Vue</title>
66
<meta name="description" content="A curated list of awesome things related to Vue.js">
7+
<meta name="viewport" content="width=device-width, initial-scale=1">
78
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css">
89
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous">
910
<link href='https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600|Roboto Mono' rel='stylesheet' type='text/css'>

app/site/src/App.vue

Lines changed: 98 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
title="Contribute on GitHub"
3333
class="github">
3434
<i class="fa fa-github"></i>
35+
<span class="sm">Contribute on GitHub</span>
3536
</a>
3637
</footer>
3738
</div>
@@ -229,14 +230,15 @@ code {
229230
background: #fcfcfc;
230231
231232
hgroup {
233+
margin-bottom: 2.4rem;
234+
232235
h1 {
233236
font-size: 2.7rem;
234237
margin-bottom: 1.6rem;
235238
}
236239
237240
h2 {
238241
font-size: 1.3rem;
239-
margin-bottom: 2.4rem;
240242
}
241243
}
242244
@@ -299,6 +301,39 @@ code {
299301
}
300302
}
301303
}
304+
305+
footer {
306+
margin-top: 4rem;
307+
308+
.github {
309+
color: #34495e;
310+
font-size: 2rem;
311+
width: 149px;
312+
display: inline-block;
313+
position: relative;
314+
315+
.sm {
316+
display: none;
317+
}
318+
319+
&::after {
320+
content: "";
321+
display: block;
322+
width: 100%;
323+
height: 27px;
324+
background: url(./assets/look-here.png) no-repeat;
325+
background-size: 149px;
326+
position: absolute;
327+
right: -5px;
328+
transform: rotate(-4deg);
329+
transform-origin: 100% 0;
330+
}
331+
332+
&:hover::after {
333+
animation: soho 1s ease-in-out infinite;
334+
}
335+
}
336+
}
302337
}
303338
304339
.right {
@@ -322,31 +357,73 @@ code {
322357
}
323358
}
324359
325-
footer {
326-
margin-top: 4rem;
360+
@media only screen and (max-width: 1023px) {
361+
#app {
362+
.left, .right {
363+
padding: 24px 16px;
364+
}
327365
328-
.github {
329-
color: #34495e;
330-
font-size: 2rem;
331-
width: 149px;
332-
display: inline-block;
333-
position: relative;
366+
.right {
367+
overflow-y: scroll;
368+
-webkit-overflow-scrolling: touch;
369+
}
370+
}
371+
}
334372
335-
&::after {
336-
content: "";
337-
display: block;
373+
@media only screen and (max-width: 735px) {
374+
#app {
375+
display: block;
376+
overflow: auto;
377+
378+
.left, .right {
338379
width: 100%;
339-
height: 27px;
340-
background: url(./assets/look-here.png) no-repeat;
341-
background-size: 149px;
342-
position: absolute;
343-
right: -5px;
344-
transform: rotate(-4deg);
345-
transform-origin: 100% 0;
380+
display: block;
346381
}
347382
348-
&:hover::after {
349-
animation: soho 1s ease-in-out infinite;
383+
.left {
384+
text-align: left;
385+
border-right: 0;
386+
border-bottom: 1px solid #ebebeb;
387+
388+
hgroup {
389+
margin-bottom: 1.8rem;
390+
.tagline {
391+
display: none;
392+
}
393+
}
394+
395+
form {
396+
label {
397+
display: block;
398+
}
399+
400+
input[type="search"] {
401+
width: 100%;
402+
}
403+
}
404+
405+
footer {
406+
margin-top: 2rem;
407+
408+
.github {
409+
font-size: 1rem;
410+
width: 100%;
411+
412+
.sm {
413+
display: inline;
414+
}
415+
416+
&::after {
417+
display: none;
418+
}
419+
}
420+
}
421+
}
422+
423+
.right {
424+
.wrap {
425+
max-width: 100%;
426+
}
350427
}
351428
}
352429
}

app/site/src/components/Explore.vue

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,20 @@ export default {
5858
display: none;
5959
}
6060
}
61+
62+
@media only screen and (max-width: 1023px) {
63+
h1 {
64+
display: inline;
65+
font-size: 1rem;
66+
67+
&::after {
68+
content: ":";
69+
}
70+
}
71+
72+
ul {
73+
display: inline;
74+
}
75+
}
6176
}
6277
</style>

0 commit comments

Comments
 (0)