Skip to content

Commit cd72f2f

Browse files
committed
Update layout
1 parent 0355f27 commit cd72f2f

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

example/src/App.vue

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,17 @@
22
<div id="app">
33
<div id="nav">
44
<router-link to="/">home</router-link>
5+
<span class="line">|</span>
56
<router-link to="/fixed-size">fixed size</router-link>
7+
<span class="line">|</span>
68
<router-link to="/dynamic-size">dynamic size</router-link>
9+
<span class="line">|</span>
710
<router-link to="/horizontal">horizontal</router-link>
11+
<span class="line">|</span>
812
<router-link to="/infinite-loading">infinite loading</router-link>
13+
<span class="line">|</span>
914
<router-link to="/keep-state">keep state</router-link>
15+
<span class="line">|</span>
1016
<router-link to="/chat-room">chat room</router-link>
1117
</div>
1218
<router-view/>
@@ -33,7 +39,8 @@ body {
3339
background-color: #9b4cca;
3440
color: #fff;
3541
height: 40px;
36-
line-height: 40px;
42+
display: flex;
43+
align-items: center;
3744
padding-left: 2em;
3845
@media (max-width: 640px) {
3946
padding: 0;
@@ -43,12 +50,10 @@ body {
4350
background-color: unset;
4451
color: unset;
4552
height: unset;
46-
line-height: unset;
4753
padding-left: unset;
54+
align-items: unset;
4855
}
4956
a {
50-
margin-right: 1.5em;
51-
margin-bottom: .5em;
5257
display: inline-block;
5358
color: #fff;
5459
@media (max-width: 640px) {
@@ -57,6 +62,14 @@ body {
5762
color: #9b4dca;
5863
}
5964
}
65+
.line {
66+
margin: 0 1em;
67+
font-size: 14px;
68+
color: darkgray;
69+
@media (max-width: 640px) {
70+
display: none;
71+
}
72+
}
6073
.router-link-exact-active,
6174
.router-link-exact-active:hover {
6275
color: inherit;

0 commit comments

Comments
 (0)