Font size of the whole app would ideally be controlled by a single value. This value is currently hard coded using the :root CSS selector. It is the intention to make this value configurable within riot. In the interim all font-sizes have been converted to rem by the simple process of regex. Replacing px values with their equivalent rem values assuming a font size of 15px and then rounded to three decimal places, which was the base at the time of this transformation. I'm expecting another commit cleaning up rem values but I thought it best to leave that to review. This commit doesn't address any scaling issues. I thought it better to land this unwieldy, mechanical, invisible change before the others otherwise the pr would be impossible to review thoroughly.
113 lines
2.6 KiB
SCSS
113 lines
2.6 KiB
SCSS
// 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,
|
|
.mx_GroupPill,
|
|
.mx_AtRoomPill {
|
|
border-radius: 16px;
|
|
display: inline-block;
|
|
height: 20px;
|
|
line-height: 1.333rem;
|
|
padding-left: 5px;
|
|
}
|
|
|
|
a.mx_Pill {
|
|
word-break: break-all;
|
|
display: inline;
|
|
}
|
|
|
|
/* More specific to override `.markdown-body a` text-decoration */
|
|
.mx_EventTile_content .markdown-body a.mx_Pill {
|
|
text-decoration: none;
|
|
}
|
|
|
|
/* More specific to override `.markdown-body a` color */
|
|
.mx_EventTile_content .markdown-body a.mx_UserPill,
|
|
.mx_UserPill {
|
|
color: $primary-fg-color;
|
|
background-color: $other-user-pill-bg-color;
|
|
padding-right: 5px;
|
|
}
|
|
|
|
.mx_UserPill_selected {
|
|
background-color: $accent-color !important;
|
|
}
|
|
|
|
/* More specific to override `.markdown-body a` color */
|
|
.mx_EventTile_highlight .mx_EventTile_content .markdown-body a.mx_UserPill_me,
|
|
.mx_EventTile_content .markdown-body a.mx_AtRoomPill,
|
|
.mx_EventTile_content .mx_AtRoomPill,
|
|
.mx_MessageComposer_input .mx_AtRoomPill {
|
|
color: $accent-fg-color;
|
|
background-color: $mention-user-pill-bg-color;
|
|
padding-right: 5px;
|
|
}
|
|
|
|
/* More specific to override `.markdown-body a` color */
|
|
.mx_EventTile_content .markdown-body a.mx_RoomPill,
|
|
.mx_EventTile_content .markdown-body a.mx_GroupPill,
|
|
.mx_RoomPill,
|
|
.mx_GroupPill {
|
|
color: $accent-fg-color;
|
|
background-color: $rte-room-pill-color;
|
|
padding-right: 5px;
|
|
}
|
|
|
|
/* 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;
|
|
padding-right: 5px;
|
|
}
|
|
|
|
.mx_EventTile_body .mx_UserPill,
|
|
.mx_EventTile_body .mx_RoomPill,
|
|
.mx_EventTile_body .mx_GroupPill {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.mx_UserPill .mx_BaseAvatar,
|
|
.mx_RoomPill .mx_BaseAvatar,
|
|
.mx_GroupPill .mx_BaseAvatar,
|
|
.mx_AtRoomPill .mx_BaseAvatar {
|
|
position: relative;
|
|
left: -3px;
|
|
top: 2px;
|
|
}
|
|
|
|
.mx_Markdown_BOLD {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.mx_Markdown_ITALIC {
|
|
font-style: italic;
|
|
/*
|
|
// interestingly, *not* using the explicit italic font
|
|
// variant seems yield better results.
|
|
|
|
// compensate for Nunito italics being terrible
|
|
// https://github.com/google/fonts/issues/1726
|
|
transform: skewX(-14deg);
|
|
display: inline-block;
|
|
*/
|
|
}
|
|
|
|
.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;
|
|
}
|