LearnStatistics.sass
3.73 KB
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
147
148
149
/* packageStudyCenter/pages/myTask/components/LearnStatistics/LearnStatistics.wxss */
.learn-statistics {
width: calc(100% - var(--fontSize56));
height: var(--fontSize452);
box-sizing: border-box;
border-radius: var(--fontSize24);
background: #ffffff;
padding: var(--fontSize24);
margin: 0 var(--fontSize28) 20rpx;
.learn-statistics-title {
font-size: var(--fontSize30);
font-weight: 500;
color: #292D33;
}
.statistics-content {
display: grid;
grid-template-columns: repeat(2, 1fr);
align-items: center;
margin-top: var(--fontSize16);
margin-bottom: var(--fontSize20);
.statistics-item {
display: flex;
align-items: baseline;
.statistics-number {
color: #3B73FF;
font-size: var(--fontSize40);
font-weight: 700;
}
.blue-number {
color: #3B73FF;
}
.statistics-unit {
font-size: var(--fontSize20);
margin-left: var(--fontSize4);
}
.text {
color: #808080;
font-size: var(--fontSize24);
margin-right: var(--fontSize8);
}
.statistics-rank {
color: #000000;
font-size: var(--fontSize32);
font-weight: 500;
}
}
}
.progress-box {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: var(--fontSize24);
.progress-item {
display: flex;
flex-direction: column;
border-radius: var(--fontSize12);
.progress-item-title {
color: #808080;
font-size: var(--fontSize24);
}
.title {
color: #1A1A1A;
font-size: var(--fontSize28);
}
.progress-item-value {
display: flex;
align-items: baseline;
margin-top: var(--fontSize16);
.number {
color: #000;
font-size: var(--fontSize32);
font-weight: 500;
}
.blue-number {
font-size: var(--fontSize40);
font-weight: 700;
color: #3B73FF;
}
.unit {
font-size: var(--fontSize20);
color: #000;
margin-left: var(--fontSize4);
}
.blue-unit {
font-size: var(--fontSize22);
font-weight: 500;
color: #3B73FF;
}
}
.progress-bar-box {
position: relative;
width: calc(100% - var(--fontSize68));
margin: var(--fontSize32) 0;
.progress-bar {
width: 100%;
height: var(--fontSize12);
border-radius: var(--fontSize8);
opacity: 0.35;
background: linear-gradient(128.8deg, #75bcff 0%, #2c66f7 100%);
&.big-margin {
margin-top: var(--fontSize112);
}
}
.progress-bar-value {
position: absolute;
left: 0;
top: 0;
height: var(--fontSize12);
border-radius: var(--fontSize8);
opacity: 1;
background: linear-gradient(128.8deg, #75bcff 0%, #2c66f7 100%);
}
}
.progress-bar-box2 {
width: calc(100% - var(--fontSize68));
height: var(--fontSize12);
margin: var(--fontSize32) 0;
&.big-height {
margin-top: var(--fontSize164);
}
}
.progress-item-finish {
height: var(--fontSize72);
font-size: var(--fontSize22);
color: #808080;
line-height: var(--fontSize36);
.progress-text {
display: flex;
.number {
color: #3B73FF;
}
}
.no-finish-text {
margin-top: 30rpx;
}
}
}
.bg {
background-color: #F5F9FF;
padding: var(--fontSize24) var(--fontSize20);
}
}
.only-one {
grid-template-columns: repeat(1, 1fr);
}
}
.progress-text {
display: flex;
}