Move mx_EventTile_highlight out of mx_EventTile:not([data-layout=bubble]) (#8940)

* Move mx_EventTile_highlight etc. out of mx_EventTile:not([data-layout=bubble])

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Set highlight text color globally

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
pull/28788/head^2
Suguru Hirahara 2022-06-30 04:47:35 +00:00 committed by GitHub
parent 2a4992c56a
commit d439871ea1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 11 deletions

View File

@ -81,8 +81,6 @@ limitations under the License.
&::before {
background-color: $event-highlight-bg-color;
}
color: $alert;
}
/* For replies */

View File

@ -23,6 +23,11 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss
flex-shrink: 0;
&.mx_EventTile_highlight,
&.mx_EventTile_highlight .markdown-body {
color: $alert;
}
.mx_EventTile_avatar {
cursor: pointer;
user-select: none;
@ -89,6 +94,13 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss
&[data-layout=irc],
&[data-layout=group] {
&.mx_EventTile_highlight,
&.mx_EventTile_highlight .markdown-body {
.mx_EventTile_line {
background-color: $event-highlight-bg-color;
}
}
.mx_EventTile_e2eIcon {
position: absolute;
}
@ -227,15 +239,6 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss
background-color: $event-selected-color;
}
&.mx_EventTile_highlight,
&.mx_EventTile_highlight .markdown-body {
color: $alert;
.mx_EventTile_line {
background-color: $event-highlight-bg-color;
}
}
&.mx_EventTile_selected.mx_EventTile_info .mx_EventTile_line {
padding-left: calc($left-gutter + 18px);
}