Skip to content

Commit f91f5cb

Browse files
committed
fix RTE dark theme
1 parent 5951e8f commit f91f5cb

3 files changed

Lines changed: 12 additions & 2 deletions

File tree

‎src/skins/vector/css/matrix-react-sdk/views/elements/_RichText.scss‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// XXX: bleurgh, what is this? These classes totally break the component
2+
// naming scheme; it's completely unclear where or how they're being used
3+
// --Matthew
4+
15
.mx_UserPill {
26
color: white;
37
background-color: $accent-color;
@@ -25,13 +29,13 @@
2529
padding: .2em 0;
2630
margin: 0;
2731
font-size: 85%;
28-
background-color: rgba(0,0,0,.04);
32+
background-color: $rte-code-bg-color;
2933
border-radius: 3px;
3034
}
3135

3236
.mx_Markdown_HR {
3337
display: block;
34-
background: #e7e7e7;
38+
background: $rte-bg-color;
3539
}
3640

3741
.mx_Markdown_STRIKETHROUGH {

‎src/skins/vector/css/themes/_base.scss‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ $settings-grey-fg-color: #a2a2a2;
7474
$voip-decline-color: #f48080;
7575
$voip-accept-color: #80f480;
7676

77+
$rte-bg-color: #e9e9e9;
78+
$rte-code-bg-color: rgba(0, 0, 0, 0.04);
79+
7780
// ********************
7881

7982
$roomtile-name-color: rgba(69, 69, 69, 0.8);

‎src/skins/vector/css/themes/_dark.scss‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ $settings-grey-fg-color: #a2a2a2;
7474
$voip-decline-color: #f48080;
7575
$voip-accept-color: #80f480;
7676

77+
$rte-bg-color: #353535;
78+
$rte-code-bg-color: #000;
79+
7780
// ********************
7881

7982
$roomtile-name-color: rgba(186, 186, 186, 0.8);

0 commit comments

Comments
 (0)