Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit fd9241a

Browse files
authored
Merge pull request #6355 from SimonBrandner/fix/diff-colors
Make diff colors in codeblocks more pleasant
2 parents c384575 + 4ddcb9a commit fd9241a

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

res/css/views/rooms/_EventTile.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,11 @@ $hover-select-border: 4px;
471471
background-color: $header-panel-bg-color;
472472
}
473473

474+
pre code > * {
475+
display: inline-block;
476+
width: 100%;
477+
}
478+
474479
pre {
475480
// have to use overlay rather than auto otherwise Linux and Windows
476481
// Chrome gets very confused about vertical spacing:

res/themes/dark/css/_dark.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,3 +295,11 @@ $eventbubble-reply-color: #C1C6CD;
295295
.hljs-tag {
296296
color: inherit; // Without this they'd be weirdly blue which doesn't match the theme
297297
}
298+
299+
.hljs-addition {
300+
background: #1a4b59;
301+
}
302+
303+
.hljs-deletion {
304+
background: #53232a;
305+
}

0 commit comments

Comments
 (0)