-
Notifications
You must be signed in to change notification settings - Fork 70
/
Copy pathapp.wxss
146 lines (127 loc) · 2.18 KB
/
app.wxss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
@import "/theme/main.wxss";
@import "/theme/icon.wxss";
page{
background-color: #F5F5F5;
}
.container {
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
padding: 200rpx 0;
box-sizing: border-box;
}
.nav-list {
display: flex;
flex-wrap: wrap;
padding: 0rpx 12rpx 0rpx;
justify-content: space-between;
}
.nav-li {
padding: 30rpx;
border-radius: 12rpx;
width: 100%;
margin: 0 2% 40rpx;
background-image: url(https://file.xishng.top/MiniProgram/my/cardBg.png);
background-size: cover;
background-position: center;
position: relative;
z-index: 1;
}
.nav-li::after {
content: "";
position: absolute;
z-index: -1;
background-color: inherit;
width: 100%;
height: 100%;
left: 0%;
bottom: -5%;
border-radius: 10rpx;
opacity: 0.1;
transform: scale(0.92, 1);
}
.nav-li.cur {
color: #fff;
background: rgb(94, 185, 94);
box-shadow: 4rpx 4rpx 6rpx rgba(94, 185, 94, 0.4);
}
.nav-title {
font-size: 36rpx;
font-weight: 300;
opacity: 0;
}
.nav-title::first-letter {
font-size: 42rpx;
margin-right: 4rpx;
}
.nav-name {
font-size: 42rpx;
text-transform: Capitalize;
padding: 10rpx 0;
position: relative;
}
.nav-name::before {
content: "";
position: absolute;
display: block;
width: 50rpx;
height: 6rpx;
background: #fff;
bottom: 0;
left: 0;
opacity: 0.5;
}
.nav-name::after {
content: "";
position: absolute;
display: block;
width: 100%;
height: 1px;
background: #fff;
bottom: 0;
left: 0rpx;
opacity: 0.3;
}
.nav-name::first-letter {
font-weight: 600;
font-size: 46rpx;
margin-right: 1px;
}
.nav-li text {
position: absolute;
right: 0rpx;
top: 30rpx;
font-size: 100rpx;
width: 108rpx;
height: 108rpx;
text-align: center;
line-height: 60rpx;
opacity: 0.1;
}
.text-light {
font-weight: 300;
}
@keyframes show {
0% {
transform: translateY(-50px);
}
60% {
transform: translateY(40rpx);
}
100% {
transform: translateY(0px);
}
}
@-webkit-keyframes show {
0% {
transform: translateY(-50px);
}
60% {
transform: translateY(40rpx);
}
100% {
transform: translateY(0px);
}
}