-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
127 lines (111 loc) · 2.31 KB
/
style.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
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
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap");
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: #2f363e;
}
.container {
position: relative;
width: 350px;
min-height: 500px;
background: #2f363e;
border-radius: 30px;
padding: 50px;
box-shadow: 25px 25px 75px rgba(0, 0, 0, 0.25),
10px 10px 70px rgba(0, 0, 0, 0.25), inset 5px 5px 10px rgba(0, 0, 0, 0.5),
inset 5px 5px 20px rgba(255, 255, 255, 0.2),
inset -5px -5px 15px rgba(0, 0, 0, 0.75);
}
.container h3 {
color: #fff;
font-weight: 700;
font-size: 1.2em;
}
.container .list {
position: relative;
display: flex;
align-items: center;
margin: 20px 0;
cursor: pointer;
}
.container .list::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 45px;
height: 45px;
background: #1f83f3;
border-radius: 22.5px;
box-shadow: 5px 5px 7px rgba(0, 0, 0, 0.25),
inset 2px 2px 5px rgba(255, 255, 255, 0.25),
inset -3px -3px 5px rgba(0, 0, 0, 0.5);
transition: 0.5s;
}
.container .list:hover::before {
width: 100%;
}
.container .list .rank {
position: relative;
min-width: 45px;
height: 45px;
display: flex;
justify-content: center;
align-items: center;
border-radius: 50%;
margin-right: 10px;
}
.container .list .rank::before {
content: "";
position: absolute;
/* top: 7px; */
width: 30px;
height: 30px;
background: #2f363e;
border-radius: 30px;
transform: scale(0);
transition: 0.5s;
}
.container .list:hover .rank::before {
transform: scale(1);
}
.container .list .rank span {
position: relative;
font-weight: 600;
font-size: 1em;
color: #fff;
transition: 0.5s;
}
.container .list .creator {
position: relative;
line-height: 1.15em;
}
.container .list .creator h4 {
font-weight: 600;
color: #bcbcc0;
transition: 0.5s;
}
.container .list .creator p {
font-weight: 400;
color: #95999d;
font-size: 0.85em;
transition: 0.5s;
}
.container .list:hover .creator h4,
.container .list:hover .creator p {
color: #fff;
}
@media screen and (max-width: 300px) {
.container {
padding: 20px 15px 20px 15px;
margin-inline: 10px;
}
}