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

Commit

Permalink
Merge pull request #6355 from SimonBrandner/fix/diff-colors
Browse files Browse the repository at this point in the history
Make diff colors in codeblocks more pleasant
  • Loading branch information
turt2live authored Jul 22, 2021
2 parents c384575 + 4ddcb9a commit fd9241a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions res/css/views/rooms/_EventTile.scss
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,11 @@ $hover-select-border: 4px;
background-color: $header-panel-bg-color;
}

pre code > * {
display: inline-block;
width: 100%;
}

pre {
// have to use overlay rather than auto otherwise Linux and Windows
// Chrome gets very confused about vertical spacing:
Expand Down
8 changes: 8 additions & 0 deletions res/themes/dark/css/_dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -295,3 +295,11 @@ $eventbubble-reply-color: #C1C6CD;
.hljs-tag {
color: inherit; // Without this they'd be weirdly blue which doesn't match the theme
}

.hljs-addition {
background: #1a4b59;
}

.hljs-deletion {
background: #53232a;
}

0 comments on commit fd9241a

Please sign in to comment.