-
Notifications
You must be signed in to change notification settings - Fork 0
/
_auk-avatar.scss
74 lines (57 loc) · 1.35 KB
/
_auk-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
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
@use "settings";
/* ==========================================================================
auk-avatar
========================================================================== */
.auk-avatar {
width: 3rem;
height: 3rem;
border-radius: 100%;
display: flex;
align-items: center;
justify-content: center;
flex: 0 0 auto;
}
/* Sizes
========================================================================== */
.auk-avatar--small {
width: 2rem;
height: 2rem;
.au-c-icon {
--au-icon-size: 1.2rem;
}
}
/* Skins
========================================================================== */
.auk-avatar--default {
background-color: settings.$color-gray-200;
color: #666;
}
/* Image variant
========================================================================== */
.auk-avatar--img {
background: none;
overflow: hidden;
img {
width: 100%;
height: 100%;
object-fit: cover; // Not supported in IE
object-position: center; // Not supported in IE
}
}
/* Avatar and text
========================================================================== */
.auk-avatar-and-text {
display: flex;
align-items: center;
min-width: 0;
.auk-avatar {
margin-right: 1.2rem;
}
.auk-avatar.auk-avatar--small {
margin-right: 1.2rem;
}
}
.auk-avatar-and-text__text {
flex: 1;
min-width: 0;
}