Skip to content

Commit

Permalink
Speficy color and font for files which start with mx_M
Browse files Browse the repository at this point in the history
Signed-off-by: Suguru Hirahara <[email protected]>
  • Loading branch information
luixxiul committed Mar 4, 2024
1 parent 7f32c7c commit 1083d33
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@ limitations under the License.
@define-mixin consistency__TextEvent {
@mixin EventTile_line_color;
@mixin EventTile_line_font;
@mixin EventTile_line_M;
@mixin DecryptionFailureBody;
}
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,23 @@ limitations under the License.
}
}
}

/* Speficy color and font for files which start with mx_M */
@define-mixin EventTile_line_M {
.mx_EventTile_line {
[class^="mx_M"] {
/* Unset opacity of mx_MNoticeBody and mx_MjolnirBody */
opacity: unset;

/* For mx_MNoticeBody */
/* See #fdroid:f-droid.org/$jrVZxdvY2NqNYvXigQ_sTZNeOadpOuFGFsraHy8GR3Y for an example */
.mx_EventTile_body.markdown-body {
--font: var(--cpd-font-body-sm-regular); /* Replace with js when needed */

/* !important flag is required as it is used on the upstream */
color: $tertiary-content !important;
font: var(--font) !important;
}
}
}
}

0 comments on commit 1083d33

Please sign in to comment.