-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path_avatar.scss
More file actions
37 lines (35 loc) · 806 Bytes
/
_avatar.scss
File metadata and controls
37 lines (35 loc) · 806 Bytes
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
img[alt*="avatar" i],
img[alt*="profile" i] {
border: 1px solid var(--border);
border-radius: 50%;
width: 2.5rem;
height: 2.5rem;
object-fit: cover;
}
/* Fallback for missing images */
img[alt*="avatar" i]:not([src]),
img[alt*="profile" i]:not([src]) {
display: inline-flex;
justify-content: center;
align-items: center;
background: var(--background-secondary);
color: var(--color-muted);
font-weight: 500;
font-size: 0.875rem;
}
/* Style for broken/loading images */
img[alt*="avatar" i]::after,
img[alt*="profile" i]::after {
display: flex;
justify-content: center;
align-items: center;
background: var(--background-secondary);
width: 100%;
height: 100%;
content: attr(alt);
color: var(--color-muted);
font-weight: 500;
font-size: 0.75rem;
line-height: 1;
text-align: center;
}