|
5 | 5 | // General styles |
6 | 6 |
|
7 | 7 | .avatar { |
8 | | - color: $white; |
9 | | - display: inline-flex; |
10 | | - align-items: center; |
11 | | - justify-content: center; |
12 | | - font-size: $avatar-font-size; |
13 | | - border-radius: $border-radius-pill; |
14 | | - height: $avatar-height; |
15 | | - width: $avatar-width; |
| 8 | + color: $white; |
| 9 | + display: inline-flex; |
| 10 | + align-items: center; |
| 11 | + justify-content: center; |
| 12 | + font-size: $avatar-font-size; |
| 13 | + border-radius: $border-radius-pill; |
| 14 | + height: $avatar-height; |
| 15 | + width: $avatar-width; |
16 | 16 | transition: all .2s ease-in-out; |
17 | 17 |
|
| 18 | + img { |
| 19 | + width: 100%; |
| 20 | + } |
| 21 | + |
| 22 | + &.rounded-circle { |
18 | 23 | img { |
19 | | - width: 100%; |
| 24 | + @extend .rounded-circle; |
20 | 25 | } |
| 26 | + } |
21 | 27 |
|
22 | | - &.rounded-circle { |
23 | | - img { |
24 | | - @extend .rounded-circle; |
25 | | - } |
26 | | - } |
27 | | - |
28 | | - + .avatar-content { |
29 | | - display: inline-block; |
30 | | - margin-left: $avatar-content-margin; |
31 | | - } |
| 28 | + + .avatar-content { |
| 29 | + display: inline-block; |
| 30 | + margin-left: $avatar-content-margin; |
| 31 | + } |
32 | 32 |
|
33 | 33 |
|
34 | 34 | &.avatar-raised { |
|
52 | 52 | // Avatar size variations |
53 | 53 |
|
54 | 54 | .avatar-xxl { |
55 | | - width: $avatar-xxl-width !important; |
56 | | - height: $avatar-xxl-height !important; |
| 55 | + width: $avatar-xxl-width !important; |
| 56 | + height: $avatar-xxl-height !important; |
57 | 57 |
|
58 | 58 | &.avatar-raised { |
59 | 59 | margin-top: -$avatar-xxl-height * 0.5; |
60 | 60 | } |
61 | 61 | } |
62 | 62 |
|
63 | 63 | .avatar-xl { |
64 | | - width: $avatar-xl-width !important; |
65 | | - height: $avatar-xl-height !important; |
| 64 | + width: $avatar-xl-width !important; |
| 65 | + height: $avatar-xl-height !important; |
66 | 66 |
|
67 | 67 | &.avatar-raised { |
68 | 68 | margin-top: -$avatar-xl-height * 0.5; |
69 | 69 | } |
70 | 70 | } |
71 | 71 |
|
72 | 72 | .avatar-lg { |
73 | | - width: $avatar-lg-width !important; |
74 | | - height: $avatar-lg-height !important; |
75 | | - font-size: $font-size-sm; |
| 73 | + width: $avatar-lg-width !important; |
| 74 | + height: $avatar-lg-height !important; |
| 75 | + font-size: $font-size-sm; |
76 | 76 |
|
77 | 77 | &.avatar-raised { |
78 | 78 | margin-top: -$avatar-lg-height * 0.5; |
79 | 79 | } |
80 | 80 | } |
81 | 81 |
|
82 | 82 | .avatar-sm { |
83 | | - width: $avatar-sm-width !important; |
84 | | - height: $avatar-sm-height !important; |
85 | | - font-size: $font-size-sm; |
| 83 | + width: $avatar-sm-width !important; |
| 84 | + height: $avatar-sm-height !important; |
| 85 | + font-size: $font-size-sm; |
86 | 86 |
|
87 | 87 | &.avatar-raised { |
88 | 88 | margin-top: -$avatar-sm-height * 0.5; |
89 | 89 | } |
90 | 90 | } |
91 | 91 |
|
92 | 92 | .avatar-xs { |
93 | | - width: $avatar-xs-width !important; |
94 | | - height: $avatar-xs-height !important; |
95 | | - font-size: $font-size-xs; |
| 93 | + width: $avatar-xs-width !important; |
| 94 | + height: $avatar-xs-height !important; |
| 95 | + font-size: $font-size-xs; |
96 | 96 |
|
97 | 97 | &.avatar-raised { |
98 | 98 | margin-top: -$avatar-xs-height * 0.5; |
|
106 | 106 | // General styles |
107 | 107 |
|
108 | 108 | .avatar-group { |
109 | | - .avatar { |
110 | | - position: relative; |
111 | | - z-index: $avatar-group-zindex; |
112 | | - border: $avatar-group-border solid $card-bg; |
| 109 | + .avatar { |
| 110 | + position: relative; |
| 111 | + z-index: $avatar-group-zindex; |
| 112 | + border: $avatar-group-border solid $card-bg; |
113 | 113 |
|
114 | | - &:hover { |
115 | | - z-index: $avatar-group-zindex-hover; |
116 | | - } |
117 | | - } |
| 114 | + &:hover { |
| 115 | + z-index: $avatar-group-zindex-hover; |
| 116 | + } |
| 117 | + } |
118 | 118 |
|
119 | | - .avatar + .avatar { |
120 | | - margin-left: $avatar-group-double; |
| 119 | + .avatar + .avatar { |
| 120 | + margin-left: $avatar-group-double; |
121 | 121 |
|
122 | | - } |
| 122 | + } |
123 | 123 | } |
0 commit comments