2021-12-19 05:58:41 +01:00
|
|
|
@use '../../partials/flex';
|
|
|
|
|
2021-07-28 15:15:52 +02:00
|
|
|
.avatar-container {
|
|
|
|
display: inline-flex;
|
|
|
|
width: 42px;
|
|
|
|
height: 42px;
|
|
|
|
border-radius: var(--bo-radius);
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&__large {
|
|
|
|
width: var(--av-large);
|
|
|
|
height: var(--av-large);
|
|
|
|
}
|
|
|
|
&__normal {
|
|
|
|
width: var(--av-normal);
|
|
|
|
height: var(--av-normal);
|
|
|
|
}
|
|
|
|
|
|
|
|
&__small {
|
|
|
|
width: var(--av-small);
|
|
|
|
height: var(--av-small);
|
|
|
|
}
|
|
|
|
|
|
|
|
&__extra-small {
|
|
|
|
width: var(--av-extra-small);
|
|
|
|
height: var(--av-extra-small);
|
|
|
|
}
|
|
|
|
|
2021-11-23 07:57:01 +01:00
|
|
|
> img {
|
2021-07-28 15:15:52 +02:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
object-fit: cover;
|
|
|
|
border-radius: inherit;
|
2022-02-05 13:49:30 +01:00
|
|
|
background-color: var(--bg-surface-hover);
|
2021-07-28 15:15:52 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.avatar__border {
|
2021-12-19 05:58:41 +01:00
|
|
|
@extend .cp-fx__row--c-c;
|
|
|
|
|
2021-07-28 15:15:52 +02:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
border-radius: inherit;
|
|
|
|
|
|
|
|
.text {
|
2021-12-18 05:40:23 +01:00
|
|
|
color: white;
|
2021-07-28 15:15:52 +02:00
|
|
|
}
|
2021-12-19 05:58:41 +01:00
|
|
|
&--active {
|
|
|
|
@extend .avatar__border;
|
|
|
|
box-shadow: var(--bs-surface-border);
|
|
|
|
}
|
2021-07-28 15:15:52 +02:00
|
|
|
}
|
|
|
|
}
|