Skip to content

Commit f29ba8b

Browse files
authored
样式微调,增加背景阴影遮罩 (#287)
* 修正封面阴影 * 增加背景渐变遮罩
1 parent 0acc59d commit f29ba8b

File tree

5 files changed

+21
-23
lines changed

5 files changed

+21
-23
lines changed

packages/react-full/src/components/Cover/index.module.css

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
.cover {
2-
--base-box-shadow-v-0: rgba(0, 0, 0, 0.15);
3-
--base-box-shadow-y-0: 1.2em;
4-
--base-box-shadow-r-0: 2em;
5-
--base-box-shadow-s-0: -0.6em;
6-
--base-box-shadow-v-1: rgba(0, 0, 0, 0.225);
7-
--base-box-shadow-y-1: 0.4em;
8-
--base-box-shadow-r-1: 2.4em;
2+
--base-box-shadow-v-0: rgba(0, 0, 0, 0.19);
3+
--base-box-shadow-y-0: 1em;
4+
--base-box-shadow-r-0: 1.2em;
95
aspect-ratio: 1 / 1;
106
width: 100%;
117
height: 100%;
@@ -17,23 +13,15 @@
1713
filter: drop-shadow(
1814
var(--base-box-shadow-v-0) 0px var(--base-box-shadow-y-0)
1915
var(--base-box-shadow-r-0)
20-
)
21-
drop-shadow(
22-
var(--base-box-shadow-v-1) 0px var(--base-box-shadow-y-1)
23-
var(--base-box-shadow-r-1)
2416
);
2517
transform: scale(1);
2618
transition: background-image 0.5s linear, filter 0.5s ease, transform 0.5s
2719
cubic-bezier(0.3, 0.2, 0.2, 1.4);
2820

2921
&.musicPaused {
30-
--base-box-shadow-v-0: rgba(0, 0, 0, 0.15);
31-
--base-box-shadow-y-0: 0.6em;
32-
--base-box-shadow-r-0: 1em;
33-
--base-box-shadow-s-0: -0.3em;
34-
--base-box-shadow-v-1: rgba(0, 0, 0, 0.225);
35-
--base-box-shadow-y-1: 0.2em;
36-
--base-box-shadow-r-1: 1.2em;
22+
--base-box-shadow-v-0: rgba(0, 0, 0, 0.19);
23+
--base-box-shadow-y-0: 0.8em;
24+
--base-box-shadow-r-0: 0.8em;
3725
transform: scale(var(--scale-level));
3826
transition: background-image 0.5s linear, filter 0.5s ease, transform 0.6s
3927
cubic-bezier(0.4, 0.2, 0.1, 1);

packages/react-full/src/components/MediaButton/index.module.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@
2727
padding: 0;
2828
border: none;
2929

30-
transition: background-color 0.5s;
30+
transition: background-color 0.3s;
3131

3232
&:hover {
3333
background-color: #fff2;
3434
}
3535

3636
&:active {
37-
background-color: #fff4;
37+
background-color: #fff2;
3838

3939
* {
4040
animation-name: none !important;

packages/react-full/src/components/MenuButton/index.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
position: relative;
55
border: none;
66
background: #ffffff15 !important;
7-
width: 4vh;
7+
width: 3.5vh;
88
margin-left: 16px;
99
border-radius: 50%;
1010
align-self: center;

packages/react-full/src/components/PrebuiltLyricPlayer/index.module.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@
7171
transition: scale 0.3s;
7272

7373
@media screen and (max-height: 1080px) {
74-
scale: 1.2;
74+
scale: 1.1;
7575
}
7676

7777
@media screen and (max-height: 768px) {
78-
scale: 1;
78+
scale: 0.8;
7979
}
8080

8181
@media screen and (max-height: 512px) {

packages/react-full/src/layout/auto.module.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,13 @@
55
width: 100%;
66
transition: 0.5s ease-in-out;
77
}
8+
9+
.background::after {
10+
width: 100vw;
11+
height: 100vh;
12+
content: "";
13+
position: absolute;
14+
top: 0px;
15+
left: 0px;
16+
background-image: linear-gradient(#00000000 60%, #0000001a 100%);
17+
}

0 commit comments

Comments
 (0)