File tree Expand file tree Collapse file tree 3 files changed +956
-1099
lines changed Expand file tree Collapse file tree 3 files changed +956
-1099
lines changed Original file line number Diff line number Diff line change 54
54
"fs" : false
55
55
},
56
56
"dependencies" : {
57
- "diff" : " ^3.5.0 " ,
57
+ "diff" : " ^4.0.1 " ,
58
58
"hogan.js" : " ^3.0.2" ,
59
59
"lodash.merge" : " ^4.6.1" ,
60
60
"whatwg-fetch" : " ^3.0.0"
61
61
},
62
62
"devDependencies" : {
63
- "autoprefixer" : " ^9.3 .1" ,
63
+ "autoprefixer" : " ^9.5 .1" ,
64
64
"browserify" : " ^16.2.3" ,
65
- "clean-css-cli" : " ^4.2.1 " ,
66
- "codacy-coverage" : " ^3.2 .0" ,
67
- "eslint" : " ^5.9 .0" ,
68
- "eslint-plugin-promise" : " ^4.0 .1" ,
65
+ "clean-css-cli" : " ^4.3.0 " ,
66
+ "codacy-coverage" : " ^3.4 .0" ,
67
+ "eslint" : " ^5.16 .0" ,
68
+ "eslint-plugin-promise" : " ^4.1 .1" ,
69
69
"eslint-plugin-standard" : " ^4.0.0" ,
70
70
"fast-html-parser" : " ^1.0.1" ,
71
71
"istanbul" : " ^0.4.5" ,
72
72
"mkdirp" : " ^0.5.1" ,
73
- "mocha" : " ^ 5.2.0" ,
73
+ "mocha" : " 5.2.0" ,
74
74
"nopt" : " ^4.0.1" ,
75
- "postcss-cli" : " ^6.0.1 " ,
76
- "uglify-js" : " ^3.4 .9"
75
+ "postcss-cli" : " ^6.1.2 " ,
76
+ "uglify-js" : " ^3.5 .9"
77
77
},
78
78
"license" : " MIT" ,
79
79
"files" : [
Original file line number Diff line number Diff line change 74
74
font-size : 13px ;
75
75
}
76
76
77
- .d2h-diff-tbody > tr > td {
78
- height : 20px ;
79
- line-height : 1 ;
80
- }
81
-
82
77
.d2h-files-diff {
83
78
display : block;
84
79
width : 100% ;
85
80
height : 100% ;
86
81
}
87
82
88
83
.d2h-file-diff {
89
- overflow-x : scroll;
90
84
overflow-y : hidden;
91
85
}
92
86
102
96
.d2h-code-line {
103
97
display : inline-block;
104
98
white-space : nowrap;
105
- padding : 0 10px ;
99
+ /* Compensate for the absolute positioning of the line numbers */
100
+ padding : 0 8em ;
106
101
}
107
102
108
103
.d2h-code-side-line {
109
104
display : inline-block;
110
105
white-space : nowrap;
111
- padding : 0 10px ;
106
+ /* Compensate for the absolute positioning of the line numbers */
107
+ padding : 0 4.5em ;
112
108
}
113
109
114
110
.d2h-code-line del ,
149
145
.line-num1 {
150
146
box-sizing : border-box;
151
147
float : left;
152
- width : 40 px ;
148
+ width : 3.5 em ;
153
149
overflow : hidden;
154
150
text-overflow : ellipsis;
155
- padding-left : 3 px ;
151
+ padding : 0 0.5 em 0 0.5 em ;
156
152
}
157
153
158
154
.line-num2 {
159
155
box-sizing : border-box;
160
156
float : right;
161
- width : 40 px ;
157
+ width : 3.5 em ;
162
158
overflow : hidden;
163
159
text-overflow : ellipsis;
164
- padding-left : 3 px ;
160
+ padding : 0 0.5 em 0 0.5 em ;
165
161
}
166
162
167
163
.d2h-code-linenumber {
168
164
box-sizing : border-box;
169
- width : 86px ;
170
- padding-left : 2px ;
171
- padding-right : 2px ;
165
+ width : 7.5em ;
166
+ /* Keep the numbers fixed on line contents scroll */
167
+ position : absolute;
168
+ display : inline-block;
172
169
background-color : # fff ;
173
170
color : rgba (0 , 0 , 0 , 0.3 );
174
171
text-align : right;
177
174
cursor : pointer;
178
175
}
179
176
177
+ .d2h-code-linenumber : after {
178
+ content : '\200b' ;
179
+ }
180
+
180
181
.d2h-code-side-linenumber {
182
+ /* Keep the numbers fixed on line contents scroll */
183
+ position : absolute;
184
+ display : inline-block;
181
185
box-sizing : border-box;
182
- width : 56px ;
183
- padding-left : 5px ;
184
- padding-right : 5px ;
186
+ width : 4em ;
185
187
background-color : # fff ;
186
188
color : rgba (0 , 0 , 0 , 0.3 );
187
189
text-align : right;
192
194
text-overflow : ellipsis;
193
195
}
194
196
197
+ .d2h-code-side-linenumber : after {
198
+ content : '\200b' ;
199
+ }
200
+
195
201
.d2h-code-side-emptyplaceholder ,
196
202
.d2h-emptyplaceholder {
197
203
background-color : # f1f1f1 ;
You can’t perform that action at this time.
0 commit comments