File tree 2 files changed +44
-7
lines changed
2 files changed +44
-7
lines changed Original file line number Diff line number Diff line change @@ -14,12 +14,15 @@ export default {
14
14
</script >
15
15
16
16
<style >
17
+ body {
18
+ margin : 0 ;
19
+ }
17
20
#app {
18
21
font-family : Avenir, Helvetica , Arial , sans-serif ;
19
22
-webkit-font-smoothing : antialiased ;
20
23
-moz-osx-font-smoothing : grayscale ;
21
24
text-align : center ;
22
25
color : #2c3e50 ;
23
- margin-top : 60 px ;
26
+
24
27
}
25
28
</style >
Original file line number Diff line number Diff line change 39
39
40
40
<style >
41
41
.top-menu {
42
- background-color : #f0f0f0 ;
42
+ background-color : #333 ;
43
+
44
+ display : flex ;
45
+ align-items : center ;
46
+
43
47
}
44
48
45
49
nav ul {
46
50
list-style-type : none ;
51
+ margin : 0 20px ;
47
52
padding : 0 ;
48
- margin : 0 ;
53
+ display : flex ;
54
+ height : 100% ;
55
+ max-width : 90vw ;
49
56
}
50
57
51
58
nav ul li {
52
- display : inline-block ;
53
- padding : 10px ;
59
+ margin-right : 10px ;
60
+ opacity : 0 ;
61
+ transform : translateY (-20px );
62
+ animation : slideIn 0.5s forwards ;
63
+ animation-delay : calc (var (--index ) * 0.1s );
64
+ height : 100% ;
65
+ }
66
+
67
+ nav ul li a {
68
+ color : #fff ;
69
+ text-decoration : none ;
70
+ padding : 15px ;
71
+ transition : color 0.3s , background-color 0.3s ;
72
+ height : 100% ;
73
+ display : flex ;
74
+ align-items : center ;
75
+ }
76
+
77
+ nav ul li a :hover {
78
+ color : #ffcc00 ;
79
+ background-color : #444 ;
80
+ }
81
+
82
+ nav ul li .active a {
83
+ color : #ffcc00 ;
84
+ background-color : #444 ;
54
85
}
55
86
56
- nav ul li .active {
57
- background-color : #ccc ;
87
+ @keyframes slideIn {
88
+ to {
89
+ opacity : 1 ;
90
+ transform : translateY (0 );
91
+ }
58
92
}
59
93
</style >
You can’t perform that action at this time.
0 commit comments