x
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
<div class="d-flex gap-4">
<div class="avatar">
<img src="/assets/avatar1-d5096dd40dc74591be5aaf32485040a1b09cf3c3dc382d8c8c5f9730899d4b92.webp">
</div>
<div class="avatar">
<span>Ale</span>
</div>
<div class="avatar">
<img src="/assets/avatar2-6da882df6804c2717efad8bff25454a3c48a4b7660c9d8c2bfa01a148524e793.webp">
</div>
<div class="avatar">
<span>Joh</span>
</div>
<div class="avatar">
<img src="/assets/avatar3-aee5e74aa9dc5f816256a53476d538aa6f6dbab76d691279d7c2a7bfe4293ba3.webp">
</div>
<div class="avatar">
<span>Sam</span>
</div>
<div class="avatar">
<img src="/assets/avatar4-988f3434a5fef5f24be7ece57dcea4b0cd3988c05d98706eab1e86443de0483a.webp">
</div>
<div class="avatar">
<span>Tom</span>
</div>
</div>
<hr class="mt-5">
<h4 class="my-3">Disabled</h4>
<div class="d-flex gap-4">
<div class="avatar disabled">
<img src="/assets/avatar1-d5096dd40dc74591be5aaf32485040a1b09cf3c3dc382d8c8c5f9730899d4b92.webp">
</div>
<div class="avatar disabled">
<span>Ale</span>
</div>
<div class="avatar disabled">
<img src="/assets/avatar2-6da882df6804c2717efad8bff25454a3c48a4b7660c9d8c2bfa01a148524e793.webp">
</div>
<div class="avatar disabled">
<span>Joh</span>
</div>
<div class="avatar disabled">
<img src="/assets/avatar3-aee5e74aa9dc5f816256a53476d538aa6f6dbab76d691279d7c2a7bfe4293ba3.webp">
</div>
<div class="avatar disabled">
<span>Sam</span>
</div>
<div class="avatar disabled">
<img src="/assets/avatar4-988f3434a5fef5f24be7ece57dcea4b0cd3988c05d98706eab1e86443de0483a.webp">
</div>
<div class="avatar disabled">
<span>Tom</span>
</div>
</div>
<hr class="mt-5">
<h4 class="my-3">Bordered</h4>
<div class="d-flex gap-4">
<div class="avatar">
<img class="bordered" src="/assets/avatar1-d5096dd40dc74591be5aaf32485040a1b09cf3c3dc382d8c8c5f9730899d4b92.webp">
</div>
<div class="avatar">
<span class="bordered">Ale</span>
</div>
<div class="avatar">
<img class="bordered" src="/assets/avatar2-6da882df6804c2717efad8bff25454a3c48a4b7660c9d8c2bfa01a148524e793.webp">
</div>
<div class="avatar">
<span class="bordered">Joh</span>
</div>
<div class="avatar">
<img class="bordered" src="/assets/avatar3-aee5e74aa9dc5f816256a53476d538aa6f6dbab76d691279d7c2a7bfe4293ba3.webp">
</div>
<div class="avatar">
<span class="bordered">Sam</span>
</div>
<div class="avatar">
<img class="bordered" src="/assets/avatar4-988f3434a5fef5f24be7ece57dcea4b0cd3988c05d98706eab1e86443de0483a.webp">
</div>
<div class="avatar">
<span class="bordered">Tom</span>
</div>
</div>
<hr class="mt-5">
<h4 class="my-3">Rounded</h4>
<div class="d-flex gap-4">
<div class="avatar">
<img class="rounded-2" src="/assets/avatar1-d5096dd40dc74591be5aaf32485040a1b09cf3c3dc382d8c8c5f9730899d4b92.webp">
</div>
<div class="avatar">
<img class="rounded-3" src="/assets/avatar2-6da882df6804c2717efad8bff25454a3c48a4b7660c9d8c2bfa01a148524e793.webp">
</div>
<div class="avatar disabled">
<img class="rounded-4" src="/assets/avatar3-aee5e74aa9dc5f816256a53476d538aa6f6dbab76d691279d7c2a7bfe4293ba3.webp">
</div>
<div class="avatar">
<img class="rounded-5 bordered" src="/assets/avatar4-988f3434a5fef5f24be7ece57dcea4b0cd3988c05d98706eab1e86443de0483a.webp">
</div>
<div class="avatar">
<span class="rounded-1 bordered">Tom</span>
</div>
</div>
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
<div class="d-flex gap-4">
<div class="avatar">
<img src="<%= image_path('avatar1.webp') %>">
</div>
<div class="avatar">
<span>Ale</span>
</div>
<div class="avatar">
<img src="<%= image_path('avatar2.webp') %>">
</div>
<div class="avatar">
<span>Joh</span>
</div>
<div class="avatar">
<img src="<%= image_path('avatar3.webp') %>">
</div>
<div class="avatar">
<span>Sam</span>
</div>
<div class="avatar">
<img src="<%= image_path('avatar4.webp') %>">
</div>
<div class="avatar">
<span><%= 'Tommaso'[0..2] %></span>
</div>
</div>
<hr class="mt-5">
<h4 class="my-3">Disabled</h4>
<div class="d-flex gap-4">
<div class="avatar disabled">
<img src="<%= image_path('avatar1.webp') %>">
</div>
<div class="avatar disabled">
<span>Ale</span>
</div>
<div class="avatar disabled">
<img src="<%= image_path('avatar2.webp') %>">
</div>
<div class="avatar disabled">
<span>Joh</span>
</div>
<div class="avatar disabled">
<img src="<%= image_path('avatar3.webp') %>">
</div>
<div class="avatar disabled">
<span>Sam</span>
</div>
<div class="avatar disabled">
<img src="<%= image_path('avatar4.webp') %>">
</div>
<div class="avatar disabled">
<span><%= 'Tommaso'[0..2] %></span>
</div>
</div>
<hr class="mt-5">
<h4 class="my-3">Bordered</h4>
<div class="d-flex gap-4">
<div class="avatar">
<img class="bordered" src="<%= image_path('avatar1.webp') %>">
</div>
<div class="avatar">
<span class="bordered">Ale</span>
</div>
<div class="avatar">
<img class="bordered" src="<%= image_path('avatar2.webp') %>">
</div>
<div class="avatar">
<span class="bordered">Joh</span>
</div>
<div class="avatar">
<img class="bordered" src="<%= image_path('avatar3.webp') %>">
</div>
<div class="avatar">
<span class="bordered">Sam</span>
</div>
<div class="avatar">
<img class="bordered" src="<%= image_path('avatar4.webp') %>">
</div>
<div class="avatar">
<span class="bordered"><%= 'Tommaso'[0..2] %></span>
</div>
</div>
<hr class="mt-5">
<h4 class="my-3">Rounded</h4>
<div class="d-flex gap-4">
<div class="avatar">
<img class="rounded-2" src="<%= image_path('avatar1.webp') %>">
</div>
<div class="avatar">
<img class="rounded-3" src="<%= image_path('avatar2.webp') %>">
</div>
<div class="avatar disabled">
<img class="rounded-4" src="<%= image_path('avatar3.webp') %>">
</div>
<div class="avatar">
<img class="rounded-5 bordered" src="<%= image_path('avatar4.webp') %>">
</div>
<div class="avatar">
<span class="rounded-1 bordered"><%= 'Tommaso'[0..2] %></span>
</div>
</div>

_avatar.scss

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
.avatar {
--avatar-size: 50px;
--avatar-opacity: 0.5;
width: var(--avatar-size);
height: var(--avatar-size);
transition: opacity .5s cubic-bezier(.4,0,.2,1);
&.disabled {
opacity: var(--avatar-opacity);
}
.bordered {
box-shadow: rgb(255, 255, 255) 0px 0px 0px 2px, rgb(212, 212, 216) 0px 0px 0px 4px, rgba(0, 0, 0, 0) 0px 0px 0px 0px
}
img {
@extend .img-fluid, .h-100;
border-radius: 50%;
}
span {
@extend .img-fluid, .h-100;
@extend .d-flex, .align-items-center, .justify-content-center;
width: var(--avatar-size);
height: var(--avatar-size);
background-color: rgb(212, 212, 216);
color: rgb(0, 0, 0);
border-radius: 50%;
}
}

No assets to display.