-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgit-tabular-diff.less
More file actions
135 lines (107 loc) · 2.49 KB
/
Copy pathgit-tabular-diff.less
File metadata and controls
135 lines (107 loc) · 2.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
// The ui-variables file is provided by base themes provided by Atom.
//
// See https://github.com/atom/atom-dark-ui/blob/master/styles/ui-variables.less
// for a full listing of what's available.
@import "ui-variables";
.git-tabular-diff {
@delete-background-color: fadeout(@background-color-error, 80%);
@delete-highlight-color: fadeout(@background-color-error, 70%);
@insert-background-color: fadeout(@background-color-success, 80%);
@insert-highlight-color: fadeout(@background-color-success, 70%);
overflow: auto;
.gtd-heading {
color: @text-color-highlight;
white-space: nowrap;
}
.gtd-body {
overflow-x: visible;
}
.d2h-files-diff,
.gtd-table {
width: 100%;
background-color: @input-background-color;
border-collapse: separate;
font-family: monospace;
white-space: nowrap;
}
.gtd-header-cell () {
position: sticky;
background-color: @base-background-color;
color: @text-color-info;
font-weight: normal;
}
.gtd-columnheader-cell {
.gtd-header-cell();
top: 0;
}
.gtd-rowheader-cell {
.gtd-header-cell();
left: 0;
}
.gtd-changed-cell {
color: @text-color-warning;
}
.add {
color: @text-color-success;
}
.gap {
color: @text-color-info;
}
.move {
color: @text-color-warning;
}
.remove {
color: @text-color-error;
}
.d2h-file-header {
display: none;
}
.d2h-file-side-diff {
display: inline-block;
width: 50%;
overflow-x: scroll;
}
.d2h-diff-table {
width: 100%;
}
.d2h-code-side-linenumber,
.d2h-code-side-linenumber.d2h-del,
.d2h-code-side-linenumber.d2h-ins {
padding-left: 0.2em;
background-color: @base-background-color;
color: @text-color-info;
text-align: right;
}
.d2h-info {
background-color: @base-background-color;
color: @text-color-info;
}
.d2h-ins {
background-color: @insert-background-color;
}
.d2h-del {
background-color: @delete-background-color;
}
.d2h-code-side-line {
display: inline-block;
white-space: nowrap;
}
.d2h-code-line-prefix {
display: inline-block;
padding-right: 0.3em;
padding-left: 0.3em;
background-color: @base-background-color;
color: @text-color-info;
}
.d2h-code-line-ctn {
white-space: pre;
}
.d2h-code-side-line del {
background-color: @delete-highlight-color;
text-decoration: none;
}
.d2h-code-side-line ins {
background-color: @insert-highlight-color;
text-decoration: none;
}
}