mirror of
https://projects.blender.org/infrastructure/gitea-custom.git
synced 2024-12-22 07:13:09 -05:00
UI: Small adjustments to diff syntax highlight colors
Highlight diff lines and line number on row hover.
This commit is contained in:
parent
d3707e9983
commit
5da551a2a4
1 changed files with 19 additions and 1 deletions
|
@ -169,6 +169,7 @@
|
|||
--color-markup-code-block: hsla(0, 0%, 100%, 0.1);
|
||||
|
||||
--color-code-bg: hsl(213, 16%, 14%);
|
||||
--color-code-line-bg-hover: hsl(213, 16%, 16%);
|
||||
--color-code-sidebar-bg: hsl(213, 14.8%, 21%);
|
||||
|
||||
--color-timeline: hsl(220, 10.6%, 33.3%);
|
||||
|
@ -446,16 +447,33 @@ footer a {
|
|||
.add-code .lines-num.lines-num-old,
|
||||
.add-code .lines-num.lines-num-new {
|
||||
background-color: var(--color-diff-added-row-linesnum-bg);
|
||||
color: var(--color-text-dark) !important;
|
||||
color: var(--color-text-dark-2) !important;
|
||||
}
|
||||
|
||||
.del-code .lines-num.lines-num-old,
|
||||
.diff-unified .del-code .lines-num.lines-num-old,
|
||||
.del-code .lines-num.lines-num-new {
|
||||
background-color: var(--color-diff-removed-row-linesnum-bg);
|
||||
color: var(--color-text-dark-2) !important;
|
||||
}
|
||||
|
||||
.repository .diff-file-box .file-body.file-code table tbody tr.add-code:hover .lines-num,
|
||||
.repository .diff-file-box .file-body.file-code table tbody tr.del-code:hover .lines-num,
|
||||
.repository .diff-file-box .file-body.file-code table tbody tr.same-code:hover .lines-num,
|
||||
.repository .diff-file-box .file-body.file-code table tbody .diff-unified tr:hover .del-code .lines-num {
|
||||
color: var(--color-text-dark) !important;
|
||||
}
|
||||
|
||||
.repository .diff-file-box .file-body.file-code table tbody tr.same-code:hover .lines-num {
|
||||
color: var(--color-text-dark-2) !important;
|
||||
}
|
||||
|
||||
.repository .diff-file-box .file-body.file-code table tbody tr.same-code:hover .lines-code,
|
||||
.repository .diff-file-box .file-body.file-code table tbody tr.same-code:hover .lines-num,
|
||||
.repository .diff-file-box .file-body.file-code table tbody tr.same-code:hover .lines-type-marker {
|
||||
background-color: var(--color-code-line-bg-hover) !important;
|
||||
}
|
||||
|
||||
/* From web_src/less/themes/chroma/dark.less */
|
||||
:root {
|
||||
--color-syntax-NameBuiltinPseudo: #fabd2f;
|
||||
|
|
Loading…
Reference in a new issue