-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathavatar.css
More file actions
59 lines (51 loc) · 1.04 KB
/
Copy pathavatar.css
File metadata and controls
59 lines (51 loc) · 1.04 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
.avatar-container {
position: relative;
width: 150px;
height: 150px;
}
.avatar {
width: 100%;
height: 100%;
border-radius: 50%;
background-color: #1f2937;
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
cursor: pointer;
border: 3px solid #4f46e5;
transition: 0.3s;
}
.avatar:hover {
opacity: 0.8;
}
.avatar img {
width: 100%;
height: 100%;
object-fit: cover;
}
.avatar svg {
width: 60px;
height: 60px;
color: #9ca3af;
}
input[type="file"] {
display: none;
}
.upload-btn {
position: absolute;
bottom: 10px;
right: 10px;
background: linear-gradient(to right, #4f46e5, #9333ea);
border-radius: 50%;
padding: 8px;
cursor: pointer;
display: flex;
justify-content: center;
align-items: center;
}
.upload-btn svg {
width: 18px;
height: 18px;
color: white;
}