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

Make diff colors in codeblocks more pleasant #6355

Merged
merged 2 commits into from
Jul 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions res/css/views/rooms/_EventTile.scss
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,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 @@ -288,3 +288,11 @@ $composer-shadow-color: rgba(0, 0, 0, 0.28);
.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;
}