mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-23 16:49:23 +08:00
09c5e06d12
* Move avatar to new compound implementation * Make space avatars square * Remove reference to the avatar initial CSS class * remove references to mx_BaseAvatar_image * Fixe test suites * Fix accessbility violations * Add ConfirmUserActionDialog test * Fix tests * Add FacePile test * Fix items clipping in members list * Fix user info avatar sizing * Fix tests
83 lines
2.2 KiB
Plaintext
83 lines
2.2 KiB
Plaintext
/*
|
|
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.
|
|
*/
|
|
|
|
.mx_DecoratedRoomAvatar,
|
|
.mx_ExtraTile {
|
|
position: relative;
|
|
contain: content;
|
|
line-height: 1;
|
|
|
|
&.mx_DecoratedRoomAvatar_cutout .mx_BaseAvatar {
|
|
mask-image: url("$(res)/img/element-icons/roomlist/decorated-avatar-mask.svg");
|
|
mask-position: center;
|
|
mask-size: contain;
|
|
mask-repeat: no-repeat;
|
|
}
|
|
|
|
.mx_DecoratedRoomAvatar_icon {
|
|
position: absolute;
|
|
/* the following percentage based sizings are to match the scalable svg mask for the cutout */
|
|
bottom: 0;
|
|
right: 0;
|
|
transform: translate(-25%, -70%);
|
|
width: 25%;
|
|
height: 25%;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.mx_DecoratedRoomAvatar_icon::before {
|
|
content: "";
|
|
width: 100%;
|
|
height: 100%;
|
|
right: 0;
|
|
position: absolute;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.mx_DecoratedRoomAvatar_icon_globe::before {
|
|
mask-position: center;
|
|
mask-size: contain;
|
|
mask-repeat: no-repeat;
|
|
background: $secondary-content;
|
|
mask-image: url("$(res)/img/globe.svg");
|
|
}
|
|
|
|
.mx_DecoratedRoomAvatar_icon_offline::before {
|
|
background-color: $presence-offline;
|
|
}
|
|
|
|
.mx_DecoratedRoomAvatar_icon_online::before {
|
|
background-color: $accent;
|
|
}
|
|
|
|
.mx_DecoratedRoomAvatar_icon_away::before {
|
|
background-color: $presence-away;
|
|
}
|
|
|
|
.mx_DecoratedRoomAvatar_icon_busy::before {
|
|
background-color: $presence-busy;
|
|
}
|
|
|
|
.mx_NotificationBadge,
|
|
.mx_RoomTile_badgeContainer {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
height: 18px;
|
|
width: 18px;
|
|
}
|
|
}
|