File tree Expand file tree Collapse file tree 1 file changed +14
-40
lines changed Expand file tree Collapse file tree 1 file changed +14
-40
lines changed Original file line number Diff line number Diff line change 26
26
color : var(- - ui5- avatar- initials- color );
27
27
}
28
28
29
- /* Shapes */
30
- : host ([shape = "Square" ]),
31
- : host ([shape = "Square" ]) ::slotted (* ){
32
- border-radius : .25rem ;
33
- }
34
-
35
- : host ([shape = "Square" ]) .ui5-avatar-root {
36
- border-radius : inherit;
37
- }
38
-
39
- : host ([shape = "Square" ]) .ui5-avatar-img {
40
- border-radius : inherit;
29
+ .ui5-avatar-root {
30
+ display : flex;
31
+ align-items : center;
32
+ justify-content : center;
33
+ outline : none;
34
+ height : 100% ;
35
+ width : 100% ;
41
36
}
42
37
43
38
/* Sizes */
120
115
border-radius : 50% ;
121
116
width : 100% ;
122
117
height : 100% ;
118
+ pointer-events : none;
119
+ }
120
+
121
+ /* Shapes */
122
+ : host ([shape = "Square" ]),
123
+ : host ([shape = "Square" ]) ::slotted (* ) {
124
+ border-radius : .25rem ;
123
125
}
124
126
125
127
: host (: not ([color-scheme ])),
195
197
vertical-align : middle;
196
198
}
197
199
198
- : host ([image-fit-type = "Contain" ]) .ui5-avatar-img {
199
- background-size : contain;
200
- }
201
-
202
- .ui5-avatar-root {
203
- display : flex;
204
- align-items : center;
205
- justify-content : center;
206
- outline : none;
207
- }
208
-
209
- .ui5-avatar-root ,
210
- .ui5-avatar-img {
211
- height : 100% ;
212
- width : 100% ;
213
- border-radius : 50% ;
214
- }
215
-
216
- .ui5-avatar-img {
217
- background-repeat : no-repeat;
218
- background-position : center;
219
- background-size : cover;
220
- }
221
-
222
200
.ui5-avatar-initials {
223
201
color : inherit;
224
- }
225
-
226
- ::slotted (* ) {
227
- pointer-events : none;
228
202
}
You can’t perform that action at this time.
0 commit comments