2020-07-01 06:24:46 +08:00
|
|
|
/*
|
|
|
|
Copyright 2020 The Matrix.org Foundation C.I.C.
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
*/
|
|
|
|
|
2022-12-12 19:24:14 +08:00
|
|
|
.mx_DecoratedRoomAvatar,
|
|
|
|
.mx_ExtraTile {
|
2020-07-01 06:24:46 +08:00
|
|
|
position: relative;
|
2021-06-01 18:21:59 +08:00
|
|
|
contain: content;
|
2020-07-01 06:24:46 +08:00
|
|
|
|
2020-08-14 17:20:59 +08:00
|
|
|
&.mx_DecoratedRoomAvatar_cutout .mx_BaseAvatar {
|
2022-12-12 19:24:14 +08:00
|
|
|
mask-image: url("$(res)/img/element-icons/roomlist/decorated-avatar-mask.svg");
|
2020-08-14 17:20:59 +08:00
|
|
|
mask-position: center;
|
|
|
|
mask-size: contain;
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_DecoratedRoomAvatar_icon {
|
2020-07-01 06:24:46 +08:00
|
|
|
position: absolute;
|
2022-07-27 21:39:29 +08:00
|
|
|
/* the following percentage based sizings are to match the scalable svg mask for the cutout */
|
2022-02-02 17:22:27 +08:00
|
|
|
bottom: -6.25%;
|
|
|
|
right: -6.25%;
|
|
|
|
margin: 12.5%;
|
|
|
|
width: 25%;
|
|
|
|
height: 25%;
|
2020-08-14 17:20:59 +08:00
|
|
|
border-radius: 50%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_DecoratedRoomAvatar_icon::before {
|
2022-12-12 19:24:14 +08:00
|
|
|
content: "";
|
2022-02-02 17:22:27 +08:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2021-12-10 19:50:01 +08:00
|
|
|
right: 0;
|
2020-08-14 17:20:59 +08:00
|
|
|
position: absolute;
|
|
|
|
border-radius: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_DecoratedRoomAvatar_icon_globe::before {
|
|
|
|
mask-position: center;
|
|
|
|
mask-size: contain;
|
|
|
|
mask-repeat: no-repeat;
|
2021-08-12 17:30:35 +08:00
|
|
|
background: $secondary-content;
|
2022-12-12 19:24:14 +08:00
|
|
|
mask-image: url("$(res)/img/globe.svg");
|
2020-08-14 17:20:59 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_DecoratedRoomAvatar_icon_offline::before {
|
|
|
|
background-color: $presence-offline;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_DecoratedRoomAvatar_icon_online::before {
|
2021-11-11 21:37:29 +08:00
|
|
|
background-color: $accent;
|
2020-08-14 17:20:59 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_DecoratedRoomAvatar_icon_away::before {
|
|
|
|
background-color: $presence-away;
|
2020-07-01 06:24:46 +08:00
|
|
|
}
|
|
|
|
|
2022-03-14 18:22:12 +08:00
|
|
|
.mx_DecoratedRoomAvatar_icon_busy::before {
|
|
|
|
background-color: $presence-busy;
|
|
|
|
}
|
|
|
|
|
2022-12-12 19:24:14 +08:00
|
|
|
.mx_NotificationBadge,
|
|
|
|
.mx_RoomTile_badgeContainer {
|
2020-07-01 06:24:46 +08:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
height: 18px;
|
|
|
|
width: 18px;
|
|
|
|
}
|
|
|
|
}
|