Skip to content

Commit 1083d33

Browse files
committed
Speficy color and font for files which start with mx_M
Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
1 parent 7f32c7c commit 1083d33

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

res/css/_sc/feature-improvement/consistency__TextEvent/index.pcss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,6 @@ limitations under the License.
2323
@define-mixin consistency__TextEvent {
2424
@mixin EventTile_line_color;
2525
@mixin EventTile_line_font;
26+
@mixin EventTile_line_M;
2627
@mixin DecryptionFailureBody;
2728
}

res/css/_sc/feature-improvement/consistency__TextEvent/views/rooms/_EventTile.pcss

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,23 @@ limitations under the License.
5757
}
5858
}
5959
}
60+
61+
/* Speficy color and font for files which start with mx_M */
62+
@define-mixin EventTile_line_M {
63+
.mx_EventTile_line {
64+
[class^="mx_M"] {
65+
/* Unset opacity of mx_MNoticeBody and mx_MjolnirBody */
66+
opacity: unset;
67+
68+
/* For mx_MNoticeBody */
69+
/* See #fdroid:f-droid.org/$jrVZxdvY2NqNYvXigQ_sTZNeOadpOuFGFsraHy8GR3Y for an example */
70+
.mx_EventTile_body.markdown-body {
71+
--font: var(--cpd-font-body-sm-regular); /* Replace with js when needed */
72+
73+
/* !important flag is required as it is used on the upstream */
74+
color: $tertiary-content !important;
75+
font: var(--font) !important;
76+
}
77+
}
78+
}
79+
}

0 commit comments

Comments
 (0)