2020-07-01 00:24:46 +02:00
|
|
|
/*
|
2024-09-09 15:57:16 +02:00
|
|
|
Copyright 2024 New Vector Ltd.
|
2020-07-01 00:24:46 +02:00
|
|
|
Copyright 2020 The Matrix.org Foundation C.I.C.
|
|
|
|
|
2024-09-09 15:57:16 +02:00
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
|
|
|
|
Please see LICENSE files in the repository root for full details.
|
2020-07-01 00:24:46 +02:00
|
|
|
*/
|
|
|
|
|
2022-12-12 12:24:14 +01:00
|
|
|
.mx_DecoratedRoomAvatar,
|
|
|
|
.mx_ExtraTile {
|
2020-07-01 00:24:46 +02:00
|
|
|
position: relative;
|
2021-06-01 12:21:59 +02:00
|
|
|
contain: content;
|
2023-08-25 15:52:20 +02:00
|
|
|
line-height: 0;
|
2020-07-01 00:24:46 +02:00
|
|
|
|
2020-08-14 11:20:59 +02:00
|
|
|
&.mx_DecoratedRoomAvatar_cutout .mx_BaseAvatar {
|
2022-12-12 12:24:14 +01:00
|
|
|
mask-image: url("$(res)/img/element-icons/roomlist/decorated-avatar-mask.svg");
|
2020-08-14 11:20:59 +02:00
|
|
|
mask-position: center;
|
|
|
|
mask-size: contain;
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_DecoratedRoomAvatar_icon {
|
2020-07-01 00:24:46 +02:00
|
|
|
position: absolute;
|
2022-07-27 15:39:29 +02:00
|
|
|
/* the following percentage based sizings are to match the scalable svg mask for the cutout */
|
2024-01-02 19:56:39 +01:00
|
|
|
bottom: 6.25%; /* 2px for a 32x32 avatar */
|
2023-08-25 15:52:20 +02:00
|
|
|
right: 6.25%;
|
2024-01-02 19:56:39 +01:00
|
|
|
width: 25%; /* 8px for a 32x32 avatar */
|
2022-02-02 10:22:27 +01:00
|
|
|
height: 25%;
|
2020-08-14 11:20:59 +02:00
|
|
|
border-radius: 50%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_DecoratedRoomAvatar_icon::before {
|
2022-12-12 12:24:14 +01:00
|
|
|
content: "";
|
2022-02-02 10:22:27 +01:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2021-12-10 12:50:01 +01:00
|
|
|
right: 0;
|
2020-08-14 11:20:59 +02:00
|
|
|
position: absolute;
|
|
|
|
border-radius: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_DecoratedRoomAvatar_icon_globe::before {
|
|
|
|
mask-position: center;
|
|
|
|
mask-size: contain;
|
|
|
|
mask-repeat: no-repeat;
|
2021-08-12 11:30:35 +02:00
|
|
|
background: $secondary-content;
|
2022-12-12 12:24:14 +01:00
|
|
|
mask-image: url("$(res)/img/globe.svg");
|
2020-08-14 11:20:59 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_DecoratedRoomAvatar_icon_offline::before {
|
|
|
|
background-color: $presence-offline;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_DecoratedRoomAvatar_icon_online::before {
|
2021-11-11 14:37:29 +01:00
|
|
|
background-color: $accent;
|
2020-08-14 11:20:59 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_DecoratedRoomAvatar_icon_away::before {
|
|
|
|
background-color: $presence-away;
|
2020-07-01 00:24:46 +02:00
|
|
|
}
|
|
|
|
|
2022-03-14 11:22:12 +01:00
|
|
|
.mx_DecoratedRoomAvatar_icon_busy::before {
|
|
|
|
background-color: $presence-busy;
|
|
|
|
}
|
|
|
|
|
2022-12-12 12:24:14 +01:00
|
|
|
.mx_NotificationBadge,
|
|
|
|
.mx_RoomTile_badgeContainer {
|
2020-07-01 00:24:46 +02:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
height: 18px;
|
|
|
|
width: 18px;
|
|
|
|
}
|
|
|
|
}
|