Skip to content

Commit 3ab92fb

Browse files
committed
feat: remove some toolkits
1 parent 193c8b1 commit 3ab92fb

File tree

4 files changed

+92
-108
lines changed

4 files changed

+92
-108
lines changed

css/cover.css

Lines changed: 33 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
11
#coverLaunch {
2-
font-size: .6em;
3-
position: fixed;
4-
z-index: 3;
5-
top: 0;
6-
right: 0;
7-
bottom: 0;
8-
left: 0;
92
display: flex;
3+
position: fixed;
104
flex-direction: column-reverse;
11-
padding: 1rem;
5+
z-index: 3;
126
animation: whiteSplash 2.5s forwards;
13-
text-align: center;
7+
inset: 0;
8+
background: #fff fixed center url("https://7.isyangs.cn/24/656d964db3c37-24.png") no-repeat;
9+
background-size: 20em;
10+
padding: 1rem;
1411
pointer-events: none;
1512
color: #333;
16-
background: #fff fixed center url(https://7.isyangs.cn/24/656d964db3c37-24.png) no-repeat;
17-
background-size: 20em;
13+
font-size: .6em;
14+
text-align: center;
1815
}
1916

2017
@keyframes whiteSplash {
@@ -37,17 +34,14 @@
3734
}
3835

3936
#cover {
40-
position: fixed;
41-
z-index: 2;
42-
top: 0;
43-
right: 0;
44-
bottom: 0;
45-
left: 0;
4637
display: none;
38+
position: fixed;
4739
flex-direction: column;
4840
justify-content: space-between;
41+
z-index: 2;
4942
transition: .2s;
50-
background: #000 fixed center url(https://7.isyangs.cn/24/656ca7c42eb90-24.jpg);
43+
inset: 0;
44+
background: #000 fixed center url("https://7.isyangs.cn/24/656ca7c42eb90-24.jpg");
5145
background-size: cover;
5246
}
5347

@@ -58,13 +52,10 @@
5852
#coverMask {
5953
position: absolute;
6054
z-index: -1;
61-
top: 0;
62-
right: 0;
63-
bottom: 0;
64-
left: 0;
65-
margin: 0;
66-
background: rgba(0, 0, 0, .5);
6755
backdrop-filter: blur(.2rem);
56+
margin: 0;
57+
inset: 0;
58+
background: rgb(0 0 0 / 50%);
6859
}
6960

7061
.coverMain {
@@ -84,25 +75,25 @@
8475

8576
.coverMain>.info>.title {
8677
display: flex;
87-
align-items: center;
8878
justify-content: space-between;
89-
min-width: 36vw;
79+
align-items: center;
9080
margin: .5rem;
91-
padding: .1rem .3rem;
9281
background: #222;
82+
padding: .1rem .3rem;
83+
min-width: 36vw;
9384
}
9485

9586
#coverBadge {
87+
background: #fff;
9688
height: calc(100% + .6rem);
9789
color: #222;
98-
background: #fff;
9990
}
10091

10192
#coverBadge>.reskew {
10293
display: flex;
103-
align-items: center;
10494
flex-direction: column;
10595
justify-content: center;
96+
align-items: center;
10697
width: 3em;
10798
height: 100%;
10899
}
@@ -113,8 +104,8 @@
113104

114105
.reskew>* {
115106
margin: 0 .5rem;
116-
white-space: nowrap;
117107
text-overflow: ellipsis;
108+
white-space: nowrap;
118109
}
119110

120111
#coverAuthor,
@@ -129,42 +120,39 @@
129120

130121
.coverMain>.cover {
131122
position: relative;
132-
overflow: hidden;
123+
margin: auto 0;
124+
box-shadow: 0 0 2rem rgb(0 0 0 / 50%);
133125
width: 40vw;
134126
height: 30vw;
135-
margin: auto 0;
136-
box-shadow: 0 0 2rem rgba(0, 0, 0, .5);
127+
overflow: hidden;
137128
}
138129

139130
#coverImage {
140131
position: fixed;
141-
top: 0;
142-
right: -5vw;
143-
bottom: 0;
144-
left: -5vw;
145-
background: rgba(255, 255, 255, 0.6) center url(https://7.isyangs.cn/24/656ca7c42eb90-24.jpg);
132+
inset: 0 -5vw;
133+
background: rgb(255 255 255 / 60%) center url("https://7.isyangs.cn/24/656ca7c42eb90-24.jpg");
146134
background-size: cover;
147135
}
148136

149137
#cover .loadingBar {
150138
position: relative;
151-
overflow: hidden;
152139
padding: 0 .5em;
140+
overflow: hidden;
153141
}
154142

155143
#cover .loadingBar::after {
144+
display: block;
156145
position: absolute;
157-
z-index: 1;
158146
top: 0;
159147
left: 0;
160-
display: block;
148+
z-index: 1;
149+
mix-blend-mode: exclusion;
150+
backdrop-filter: brightness(.6) contrast(3);
151+
animation: loadingBarMask 1.5s ease-in-out infinite;
152+
background: #fff;
161153
width: 200%;
162154
height: 100%;
163155
content: '';
164-
animation: loadingBarMask 1.5s ease-in-out infinite;
165-
background: #fff;
166-
backdrop-filter: brightness(.6) contrast(3);
167-
mix-blend-mode: exclusion;
168156
}
169157

170158
@keyframes loadingBarMask {

0 commit comments

Comments
 (0)