-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglass-morphism.css
68 lines (66 loc) · 1.41 KB
/
glass-morphism.css
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
/*
*野原新一 个人主页:https://www.yutao.xyz/
* @Date: 2022-07-19 13:30:15
* @LastEditTime: 2022-07-19 19:31:36
* @FilePath: \源码存放\VScode\个人主页\css\glass-morphism.css
*
*/
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins',sans-serif;
}
.container{
width: 100%;
height: 100vh;
background-image: url(https://api.ghser.com/random/fengjing.php);
background-position: center;
background-size: cover;
display: flex;
align-items: center;
justify-content: center;
}
.card{
width: 90%;
max-width: 500px;
color: #fff;
text-align: center;
padding: 50px 35px;
border: 1px solid rgba(225,225,225,0.3);
background: rgba(225,225,225,0.2);
border-radius: 20px;
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
backdrop-filter: blur();/*改里面的数字可以调整不透明度 */
}
.card img{
width: 140px;
border-radius: 20%;
}
.card h2{
font-size: 40px;
font-weight: 600;
margin-top: 20px;
}
.card p{
font-size: 18px;
margin: 10px auto;
max-width: 330px;
}
.card.links img:hover{
background-color: #ff01cf;
}
.card.links a{
text-decoration: none;
}
.btn{
text-decoration: none;
display: inline-block;
font-size: 18px;
font-weight: 500;
background: #fff;
color: #ff01cf;
padding: 10px 30px;
border-radius: 30px;
margin: 30px 0 10px;
}