2018-04-11 23:23:35 +00:00
|
|
|
// XXX: bleurgh, what is this? These classes totally break the component
|
|
|
|
// naming scheme; it's completely unclear where or how they're being used
|
|
|
|
// --Matthew
|
|
|
|
|
|
|
|
.mx_UserPill,
|
|
|
|
.mx_RoomPill,
|
2018-06-19 10:53:17 +00:00
|
|
|
.mx_GroupPill,
|
2018-04-11 23:23:35 +00:00
|
|
|
.mx_AtRoomPill {
|
2020-04-03 16:53:49 +00:00
|
|
|
display: inline-flex;
|
|
|
|
align-items: center;
|
|
|
|
vertical-align: middle;
|
|
|
|
border-radius: $font-16px;
|
2020-04-14 16:32:24 +00:00
|
|
|
line-height: $font-15px;
|
2020-04-03 16:53:49 +00:00
|
|
|
padding-left: 0;
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
2020-02-29 01:56:02 +00:00
|
|
|
a.mx_Pill {
|
2020-04-17 10:04:52 +00:00
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
2021-09-26 14:24:46 +00:00
|
|
|
max-width: 100%;
|
2020-04-03 16:53:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Pill {
|
2020-04-14 16:32:24 +00:00
|
|
|
padding: $font-1px;
|
2020-04-27 10:09:03 +00:00
|
|
|
padding-right: 0.4em;
|
2020-04-29 09:57:35 +00:00
|
|
|
vertical-align: text-top;
|
|
|
|
line-height: $font-17px;
|
2020-02-29 01:56:02 +00:00
|
|
|
}
|
|
|
|
|
2020-04-14 16:07:59 +00:00
|
|
|
/* More specific to override `.markdown-body a` color */
|
|
|
|
.mx_EventTile_content .markdown-body a.mx_GroupPill,
|
|
|
|
.mx_GroupPill {
|
|
|
|
color: $accent-fg-color;
|
|
|
|
background-color: $rte-group-pill-color;
|
|
|
|
}
|
|
|
|
|
2019-01-07 15:13:01 +00:00
|
|
|
/* More specific to override `.markdown-body a` text-decoration */
|
|
|
|
.mx_EventTile_content .markdown-body a.mx_Pill {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
2018-04-11 23:23:35 +00:00
|
|
|
/* More specific to override `.markdown-body a` color */
|
|
|
|
.mx_EventTile_content .markdown-body a.mx_UserPill,
|
|
|
|
.mx_UserPill {
|
2021-08-12 09:27:12 +00:00
|
|
|
color: $primary-content;
|
2018-04-11 23:23:35 +00:00
|
|
|
background-color: $other-user-pill-bg-color;
|
2020-04-07 14:23:19 +00:00
|
|
|
}
|
2018-04-11 23:23:35 +00:00
|
|
|
|
2018-05-14 02:02:12 +00:00
|
|
|
.mx_UserPill_selected {
|
2021-11-11 13:37:29 +00:00
|
|
|
background-color: $accent !important;
|
2018-05-14 02:02:12 +00:00
|
|
|
}
|
|
|
|
|
2019-01-07 15:18:24 +00:00
|
|
|
/* More specific to override `.markdown-body a` color */
|
2018-04-11 23:23:35 +00:00
|
|
|
.mx_EventTile_highlight .mx_EventTile_content .markdown-body a.mx_UserPill_me,
|
2019-01-07 15:18:24 +00:00
|
|
|
.mx_EventTile_content .markdown-body a.mx_AtRoomPill,
|
2018-04-11 23:23:35 +00:00
|
|
|
.mx_EventTile_content .mx_AtRoomPill,
|
|
|
|
.mx_MessageComposer_input .mx_AtRoomPill {
|
|
|
|
color: $accent-fg-color;
|
2021-11-11 13:37:29 +00:00
|
|
|
background-color: $alert;
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* More specific to override `.markdown-body a` color */
|
|
|
|
.mx_EventTile_content .markdown-body a.mx_RoomPill,
|
2018-06-22 13:36:29 +00:00
|
|
|
.mx_EventTile_content .markdown-body a.mx_GroupPill,
|
|
|
|
.mx_RoomPill,
|
|
|
|
.mx_GroupPill {
|
2018-04-11 23:23:35 +00:00
|
|
|
color: $accent-fg-color;
|
|
|
|
background-color: $rte-room-pill-color;
|
2018-06-22 13:36:29 +00:00
|
|
|
}
|
|
|
|
|
2019-07-10 15:55:03 +00:00
|
|
|
.mx_EventTile_body .mx_UserPill,
|
|
|
|
.mx_EventTile_body .mx_RoomPill,
|
|
|
|
.mx_EventTile_body .mx_GroupPill {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
2018-04-11 23:23:35 +00:00
|
|
|
.mx_UserPill .mx_BaseAvatar,
|
|
|
|
.mx_RoomPill .mx_BaseAvatar,
|
2018-06-19 10:53:17 +00:00
|
|
|
.mx_GroupPill .mx_BaseAvatar,
|
2018-04-11 23:23:35 +00:00
|
|
|
.mx_AtRoomPill .mx_BaseAvatar {
|
|
|
|
position: relative;
|
2020-04-03 16:53:49 +00:00
|
|
|
display: inline-flex;
|
|
|
|
align-items: center;
|
|
|
|
border-radius: 10rem;
|
|
|
|
margin-right: 0.24rem;
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Markdown_BOLD {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Markdown_ITALIC {
|
|
|
|
font-style: italic;
|
2019-07-09 17:15:10 +00:00
|
|
|
/*
|
2019-01-31 10:51:26 +00:00
|
|
|
// interestingly, *not* using the explicit italic font
|
|
|
|
// variant seems yield better results.
|
2019-01-16 12:53:46 +00:00
|
|
|
|
|
|
|
// compensate for Nunito italics being terrible
|
|
|
|
// https://github.com/google/fonts/issues/1726
|
|
|
|
transform: skewX(-14deg);
|
|
|
|
display: inline-block;
|
2019-07-09 17:15:10 +00:00
|
|
|
*/
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Markdown_CODE {
|
|
|
|
padding: .2em 0;
|
|
|
|
margin: 0;
|
|
|
|
font-size: 85%;
|
|
|
|
background-color: $rte-code-bg-color;
|
|
|
|
border-radius: 3px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Markdown_HR {
|
|
|
|
display: block;
|
|
|
|
background: $rte-bg-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Markdown_STRIKETHROUGH {
|
|
|
|
text-decoration: line-through;
|
|
|
|
}
|