Skip to content

Commit cd84d86

Browse files
committed
CSS for room notification pills
1 parent 56c6a15 commit cd84d86

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

‎src/skins/vector/css/matrix-react-sdk/views/elements/_RichText.scss‎

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
// --Matthew
44

55
.mx_UserPill,
6-
.mx_RoomPill {
6+
.mx_RoomPill,
7+
.mx_AtRoomPill {
78
border-radius: 16px;
89
display: inline-block;
910
height: 20px;
@@ -24,9 +25,10 @@
2425
padding-right: 5px;
2526
}
2627

27-
.mx_EventTile_highlight .mx_EventTile_content .markdown-body a.mx_UserPill_me {
28-
color: $accent-fg-color;
29-
background-color: $mention-user-pill-bg-color;
28+
.mx_EventTile_highlight .mx_EventTile_content .markdown-body a.mx_UserPill_me, .mx_AtRoomPill {
29+
/* !important because otherwise @room pills in links get their colours clobbered by links styles :( */
30+
color: $accent-fg-color !important;
31+
background-color: $mention-user-pill-bg-color !important;
3032
padding-right: 5px;
3133
}
3234

@@ -39,7 +41,8 @@
3941
}
4042

4143
.mx_UserPill .mx_BaseAvatar,
42-
.mx_RoomPill .mx_BaseAvatar {
44+
.mx_RoomPill .mx_BaseAvatar,
45+
.mx_AtRoomPill .mx_BaseAvatar {
4346
position: relative;
4447
left: -3px;
4548
top: 2px;

0 commit comments

Comments
 (0)