##// END OF EJS Templates
style: update pygments template styling.
marcink -
r3243:d9cda742 default
parent child Browse files
Show More
@@ -1,1249 +1,1257 b''
1 // Default styles
1 // Default styles
2
2
3 .diff-collapse {
3 .diff-collapse {
4 margin: @padding 0;
4 margin: @padding 0;
5 text-align: right;
5 text-align: right;
6 }
6 }
7
7
8 .diff-container {
8 .diff-container {
9 margin-bottom: @space;
9 margin-bottom: @space;
10
10
11 .diffblock {
11 .diffblock {
12 margin-bottom: @space;
12 margin-bottom: @space;
13 }
13 }
14
14
15 &.hidden {
15 &.hidden {
16 display: none;
16 display: none;
17 overflow: hidden;
17 overflow: hidden;
18 }
18 }
19 }
19 }
20
20
21
21
22 div.diffblock .sidebyside {
22 div.diffblock .sidebyside {
23 background: #ffffff;
23 background: #ffffff;
24 }
24 }
25
25
26 div.diffblock {
26 div.diffblock {
27 overflow-x: auto;
27 overflow-x: auto;
28 overflow-y: hidden;
28 overflow-y: hidden;
29 clear: both;
29 clear: both;
30 padding: 0px;
30 padding: 0px;
31 background: @grey6;
31 background: @grey6;
32 border: @border-thickness solid @grey5;
32 border: @border-thickness solid @grey5;
33 -webkit-border-radius: @border-radius @border-radius 0px 0px;
33 -webkit-border-radius: @border-radius @border-radius 0px 0px;
34 border-radius: @border-radius @border-radius 0px 0px;
34 border-radius: @border-radius @border-radius 0px 0px;
35
35
36
36
37 .comments-number {
37 .comments-number {
38 float: right;
38 float: right;
39 }
39 }
40
40
41 // BEGIN CODE-HEADER STYLES
41 // BEGIN CODE-HEADER STYLES
42
42
43 .code-header {
43 .code-header {
44 background: @grey6;
44 background: @grey6;
45 padding: 10px 0 10px 0;
45 padding: 10px 0 10px 0;
46 height: auto;
46 height: auto;
47 width: 100%;
47 width: 100%;
48
48
49 .hash {
49 .hash {
50 float: left;
50 float: left;
51 padding: 2px 0 0 2px;
51 padding: 2px 0 0 2px;
52 }
52 }
53
53
54 .date {
54 .date {
55 float: left;
55 float: left;
56 text-transform: uppercase;
56 text-transform: uppercase;
57 padding: 4px 0px 0px 2px;
57 padding: 4px 0px 0px 2px;
58 }
58 }
59
59
60 div {
60 div {
61 margin-left: 4px;
61 margin-left: 4px;
62 }
62 }
63
63
64 div.compare_header {
64 div.compare_header {
65 min-height: 40px;
65 min-height: 40px;
66 margin: 0;
66 margin: 0;
67 padding: 0 @padding;
67 padding: 0 @padding;
68
68
69 .drop-menu {
69 .drop-menu {
70 float:left;
70 float:left;
71 display: block;
71 display: block;
72 margin:0 0 @padding 0;
72 margin:0 0 @padding 0;
73 }
73 }
74
74
75 .compare-label {
75 .compare-label {
76 float: left;
76 float: left;
77 clear: both;
77 clear: both;
78 display: inline-block;
78 display: inline-block;
79 min-width: 5em;
79 min-width: 5em;
80 margin: 0;
80 margin: 0;
81 padding: @button-padding @button-padding @button-padding 0;
81 padding: @button-padding @button-padding @button-padding 0;
82 font-weight: @text-semibold-weight;
82 font-weight: @text-semibold-weight;
83 font-family: @text-semibold;
83 font-family: @text-semibold;
84 }
84 }
85
85
86 .compare-buttons {
86 .compare-buttons {
87 float: left;
87 float: left;
88 margin: 0;
88 margin: 0;
89 padding: 0 0 @padding;
89 padding: 0 0 @padding;
90
90
91 .btn {
91 .btn {
92 margin: 0 @padding 0 0;
92 margin: 0 @padding 0 0;
93 }
93 }
94 }
94 }
95 }
95 }
96
96
97 }
97 }
98
98
99 .parents {
99 .parents {
100 float: left;
100 float: left;
101 width: 100px;
101 width: 100px;
102 font-weight: 400;
102 font-weight: 400;
103 vertical-align: middle;
103 vertical-align: middle;
104 padding: 0px 2px 0px 2px;
104 padding: 0px 2px 0px 2px;
105 background-color: @grey6;
105 background-color: @grey6;
106
106
107 #parent_link {
107 #parent_link {
108 margin: 00px 2px;
108 margin: 00px 2px;
109
109
110 &.double {
110 &.double {
111 margin: 0px 2px;
111 margin: 0px 2px;
112 }
112 }
113
113
114 &.disabled{
114 &.disabled{
115 margin-right: @padding;
115 margin-right: @padding;
116 }
116 }
117 }
117 }
118 }
118 }
119
119
120 .children {
120 .children {
121 float: right;
121 float: right;
122 width: 100px;
122 width: 100px;
123 font-weight: 400;
123 font-weight: 400;
124 vertical-align: middle;
124 vertical-align: middle;
125 text-align: right;
125 text-align: right;
126 padding: 0px 2px 0px 2px;
126 padding: 0px 2px 0px 2px;
127 background-color: @grey6;
127 background-color: @grey6;
128
128
129 #child_link {
129 #child_link {
130 margin: 0px 2px;
130 margin: 0px 2px;
131
131
132 &.double {
132 &.double {
133 margin: 0px 2px;
133 margin: 0px 2px;
134 }
134 }
135
135
136 &.disabled{
136 &.disabled{
137 margin-right: @padding;
137 margin-right: @padding;
138 }
138 }
139 }
139 }
140 }
140 }
141
141
142 .changeset_header {
142 .changeset_header {
143 height: 16px;
143 height: 16px;
144
144
145 & > div{
145 & > div{
146 margin-right: @padding;
146 margin-right: @padding;
147 }
147 }
148 }
148 }
149
149
150 .changeset_file {
150 .changeset_file {
151 text-align: left;
151 text-align: left;
152 float: left;
152 float: left;
153 padding: 0;
153 padding: 0;
154
154
155 a{
155 a{
156 display: inline-block;
156 display: inline-block;
157 margin-right: 0.5em;
157 margin-right: 0.5em;
158 }
158 }
159
159
160 #selected_mode{
160 #selected_mode{
161 margin-left: 0;
161 margin-left: 0;
162 }
162 }
163 }
163 }
164
164
165 .diff-menu-wrapper {
165 .diff-menu-wrapper {
166 float: left;
166 float: left;
167 }
167 }
168
168
169 .diff-menu {
169 .diff-menu {
170 position: absolute;
170 position: absolute;
171 background: none repeat scroll 0 0 #FFFFFF;
171 background: none repeat scroll 0 0 #FFFFFF;
172 border-color: #003367 @grey3 @grey3;
172 border-color: #003367 @grey3 @grey3;
173 border-right: 1px solid @grey3;
173 border-right: 1px solid @grey3;
174 border-style: solid solid solid;
174 border-style: solid solid solid;
175 border-width: @border-thickness;
175 border-width: @border-thickness;
176 box-shadow: 2px 8px 4px rgba(0, 0, 0, 0.2);
176 box-shadow: 2px 8px 4px rgba(0, 0, 0, 0.2);
177 margin-top: 5px;
177 margin-top: 5px;
178 margin-left: 1px;
178 margin-left: 1px;
179 }
179 }
180
180
181 .diff-actions, .editor-actions {
181 .diff-actions, .editor-actions {
182 float: left;
182 float: left;
183
183
184 input{
184 input{
185 margin: 0 0.5em 0 0;
185 margin: 0 0.5em 0 0;
186 }
186 }
187 }
187 }
188
188
189 // END CODE-HEADER STYLES
189 // END CODE-HEADER STYLES
190
190
191 // BEGIN CODE-BODY STYLES
191 // BEGIN CODE-BODY STYLES
192
192
193 .code-body {
193 .code-body {
194 padding: 0;
194 padding: 0;
195 background-color: #ffffff;
195 background-color: #ffffff;
196 position: relative;
196 position: relative;
197 max-width: none;
197 max-width: none;
198 box-sizing: border-box;
198 box-sizing: border-box;
199 // TODO: johbo: Parent has overflow: auto, this forces the child here
199 // TODO: johbo: Parent has overflow: auto, this forces the child here
200 // to have the intended size and to scroll. Should be simplified.
200 // to have the intended size and to scroll. Should be simplified.
201 width: 100%;
201 width: 100%;
202 overflow-x: auto;
202 overflow-x: auto;
203 }
203 }
204
204
205 pre.raw {
205 pre.raw {
206 background: white;
206 background: white;
207 color: @grey1;
207 color: @grey1;
208 }
208 }
209 // END CODE-BODY STYLES
209 // END CODE-BODY STYLES
210
210
211 }
211 }
212
212
213
213
214 table.code-difftable {
214 table.code-difftable {
215 border-collapse: collapse;
215 border-collapse: collapse;
216 width: 99%;
216 width: 99%;
217 border-radius: 0px !important;
217 border-radius: 0px !important;
218
218
219 td {
219 td {
220 padding: 0 !important;
220 padding: 0 !important;
221 background: none !important;
221 background: none !important;
222 border: 0 !important;
222 border: 0 !important;
223 }
223 }
224
224
225 .context {
225 .context {
226 background: none repeat scroll 0 0 #DDE7EF;
226 background: none repeat scroll 0 0 #DDE7EF;
227 }
227 }
228
228
229 .add {
229 .add {
230 background: none repeat scroll 0 0 #DDFFDD;
230 background: none repeat scroll 0 0 #DDFFDD;
231
231
232 ins {
232 ins {
233 background: none repeat scroll 0 0 #AAFFAA;
233 background: none repeat scroll 0 0 #AAFFAA;
234 text-decoration: none;
234 text-decoration: none;
235 }
235 }
236 }
236 }
237
237
238 .del {
238 .del {
239 background: none repeat scroll 0 0 #FFDDDD;
239 background: none repeat scroll 0 0 #FFDDDD;
240
240
241 del {
241 del {
242 background: none repeat scroll 0 0 #FFAAAA;
242 background: none repeat scroll 0 0 #FFAAAA;
243 text-decoration: none;
243 text-decoration: none;
244 }
244 }
245 }
245 }
246
246
247 /** LINE NUMBERS **/
247 /** LINE NUMBERS **/
248 .lineno {
248 .lineno {
249 padding-left: 2px !important;
249 padding-left: 2px !important;
250 padding-right: 2px;
250 padding-right: 2px;
251 text-align: right;
251 text-align: right;
252 width: 32px;
252 width: 32px;
253 -moz-user-select: none;
253 -moz-user-select: none;
254 -webkit-user-select: none;
254 -webkit-user-select: none;
255 border-right: @border-thickness solid @grey5 !important;
255 border-right: @border-thickness solid @grey5 !important;
256 border-left: 0px solid #CCC !important;
256 border-left: 0px solid #CCC !important;
257 border-top: 0px solid #CCC !important;
257 border-top: 0px solid #CCC !important;
258 border-bottom: none !important;
258 border-bottom: none !important;
259
259
260 a {
260 a {
261 &:extend(pre);
261 &:extend(pre);
262 text-align: right;
262 text-align: right;
263 padding-right: 2px;
263 padding-right: 2px;
264 cursor: pointer;
264 cursor: pointer;
265 display: block;
265 display: block;
266 width: 32px;
266 width: 32px;
267 }
267 }
268 }
268 }
269
269
270 .context {
270 .context {
271 cursor: auto;
271 cursor: auto;
272 &:extend(pre);
272 &:extend(pre);
273 }
273 }
274
274
275 .lineno-inline {
275 .lineno-inline {
276 background: none repeat scroll 0 0 #FFF !important;
276 background: none repeat scroll 0 0 #FFF !important;
277 padding-left: 2px;
277 padding-left: 2px;
278 padding-right: 2px;
278 padding-right: 2px;
279 text-align: right;
279 text-align: right;
280 width: 30px;
280 width: 30px;
281 -moz-user-select: none;
281 -moz-user-select: none;
282 -webkit-user-select: none;
282 -webkit-user-select: none;
283 }
283 }
284
284
285 /** CODE **/
285 /** CODE **/
286 .code {
286 .code {
287 display: block;
287 display: block;
288 width: 100%;
288 width: 100%;
289
289
290 td {
290 td {
291 margin: 0;
291 margin: 0;
292 padding: 0;
292 padding: 0;
293 }
293 }
294
294
295 pre {
295 pre {
296 margin: 0;
296 margin: 0;
297 padding: 0;
297 padding: 0;
298 margin-left: .5em;
298 margin-left: .5em;
299 }
299 }
300 }
300 }
301 }
301 }
302
302
303
303
304 // Comments
304 // Comments
305
305
306 div.comment:target {
306 div.comment:target {
307 border-left: 6px solid @comment-highlight-color !important;
307 border-left: 6px solid @comment-highlight-color !important;
308 padding-left: 3px;
308 padding-left: 3px;
309 margin-left: -9px;
309 margin-left: -9px;
310 }
310 }
311
311
312 //TODO: anderson: can't get an absolute number out of anything, so had to put the
312 //TODO: anderson: can't get an absolute number out of anything, so had to put the
313 //current values that might change. But to make it clear I put as a calculation
313 //current values that might change. But to make it clear I put as a calculation
314 @comment-max-width: 1065px;
314 @comment-max-width: 1065px;
315 @pr-extra-margin: 34px;
315 @pr-extra-margin: 34px;
316 @pr-border-spacing: 4px;
316 @pr-border-spacing: 4px;
317 @pr-comment-width: @comment-max-width - @pr-extra-margin - @pr-border-spacing;
317 @pr-comment-width: @comment-max-width - @pr-extra-margin - @pr-border-spacing;
318
318
319 // Pull Request
319 // Pull Request
320 .cs_files .code-difftable {
320 .cs_files .code-difftable {
321 border: @border-thickness solid @grey5; //borders only on PRs
321 border: @border-thickness solid @grey5; //borders only on PRs
322
322
323 .comment-inline-form,
323 .comment-inline-form,
324 div.comment {
324 div.comment {
325 width: @pr-comment-width;
325 width: @pr-comment-width;
326 }
326 }
327 }
327 }
328
328
329 // Changeset
329 // Changeset
330 .code-difftable {
330 .code-difftable {
331 .comment-inline-form,
331 .comment-inline-form,
332 div.comment {
332 div.comment {
333 width: @comment-max-width;
333 width: @comment-max-width;
334 }
334 }
335 }
335 }
336
336
337 //Style page
337 //Style page
338 @style-extra-margin: @sidebar-width + (@sidebarpadding * 3) + @padding;
338 @style-extra-margin: @sidebar-width + (@sidebarpadding * 3) + @padding;
339 #style-page .code-difftable{
339 #style-page .code-difftable{
340 .comment-inline-form,
340 .comment-inline-form,
341 div.comment {
341 div.comment {
342 width: @comment-max-width - @style-extra-margin;
342 width: @comment-max-width - @style-extra-margin;
343 }
343 }
344 }
344 }
345
345
346 #context-bar > h2 {
346 #context-bar > h2 {
347 font-size: 20px;
347 font-size: 20px;
348 }
348 }
349
349
350 #context-bar > h2> a {
350 #context-bar > h2> a {
351 font-size: 20px;
351 font-size: 20px;
352 }
352 }
353 // end of defaults
353 // end of defaults
354
354
355 .file_diff_buttons {
355 .file_diff_buttons {
356 padding: 0 0 @padding;
356 padding: 0 0 @padding;
357
357
358 .drop-menu {
358 .drop-menu {
359 float: left;
359 float: left;
360 margin: 0 @padding 0 0;
360 margin: 0 @padding 0 0;
361 }
361 }
362 .btn {
362 .btn {
363 margin: 0 @padding 0 0;
363 margin: 0 @padding 0 0;
364 }
364 }
365 }
365 }
366
366
367 .code-body.textarea.editor {
367 .code-body.textarea.editor {
368 max-width: none;
368 max-width: none;
369 padding: 15px;
369 padding: 15px;
370 }
370 }
371
371
372 td.injected_diff{
372 td.injected_diff{
373 max-width: 1178px;
373 max-width: 1178px;
374 overflow-x: auto;
374 overflow-x: auto;
375 overflow-y: hidden;
375 overflow-y: hidden;
376
376
377 div.diff-container,
377 div.diff-container,
378 div.diffblock{
378 div.diffblock{
379 max-width: 100%;
379 max-width: 100%;
380 }
380 }
381
381
382 div.code-body {
382 div.code-body {
383 max-width: 1124px;
383 max-width: 1124px;
384 overflow-x: auto;
384 overflow-x: auto;
385 overflow-y: hidden;
385 overflow-y: hidden;
386 padding: 0;
386 padding: 0;
387 }
387 }
388 div.diffblock {
388 div.diffblock {
389 border: none;
389 border: none;
390 }
390 }
391
391
392 &.inline-form {
392 &.inline-form {
393 width: 99%
393 width: 99%
394 }
394 }
395 }
395 }
396
396
397
397
398 table.code-difftable {
398 table.code-difftable {
399 width: 100%;
399 width: 100%;
400 }
400 }
401
401
402 /** PYGMENTS COLORING **/
402 /** PYGMENTS COLORING **/
403 div.codeblock {
403 div.codeblock {
404
404
405 // TODO: johbo: Added interim to get rid of the margin around
405 // TODO: johbo: Added interim to get rid of the margin around
406 // Select2 widgets. This needs further cleanup.
406 // Select2 widgets. This needs further cleanup.
407 margin-top: @padding;
407 margin-top: @padding;
408
408
409 overflow: auto;
409 overflow: auto;
410 padding: 0px;
410 padding: 0px;
411 border: @border-thickness solid @grey5;
411 border: @border-thickness solid @grey5;
412 background: @grey6;
412 background: @grey6;
413 .border-radius(@border-radius);
413 .border-radius(@border-radius);
414
414
415 #remove_gist {
415 #remove_gist {
416 float: right;
416 float: right;
417 }
417 }
418
418
419 .gist_url {
419 .gist_url {
420 padding: 0px 0px 10px 0px;
420 padding: 0px 0px 10px 0px;
421 }
421 }
422
422
423 .author {
423 .author {
424 clear: both;
424 clear: both;
425 vertical-align: middle;
425 vertical-align: middle;
426 font-weight: @text-bold-weight;
426 font-weight: @text-bold-weight;
427 font-family: @text-bold;
427 font-family: @text-bold;
428 }
428 }
429
429
430 .btn-mini {
430 .btn-mini {
431 float: left;
431 float: left;
432 margin: 0 5px 0 0;
432 margin: 0 5px 0 0;
433 }
433 }
434
434
435 .code-header {
435 .code-header {
436 padding: @padding;
436 padding: @padding;
437 border-bottom: @border-thickness solid @grey5;
437 border-bottom: @border-thickness solid @grey5;
438
438
439 .rc-user {
439 .rc-user {
440 min-width: 0;
440 min-width: 0;
441 margin-right: .5em;
441 margin-right: .5em;
442 }
442 }
443
443
444 .stats {
444 .stats {
445 clear: both;
445 clear: both;
446 margin: 0 0 @padding 0;
446 margin: 0 0 @padding 0;
447 padding: 0;
447 padding: 0;
448 .left {
448 .left {
449 float: left;
449 float: left;
450 clear: left;
450 clear: left;
451 max-width: 75%;
451 max-width: 75%;
452 margin: 0 0 @padding 0;
452 margin: 0 0 @padding 0;
453
453
454 &.item {
454 &.item {
455 margin-right: @padding;
455 margin-right: @padding;
456 &.last { border-right: none; }
456 &.last { border-right: none; }
457 }
457 }
458 }
458 }
459 .buttons { float: right; }
459 .buttons { float: right; }
460 .author {
460 .author {
461 height: 25px; margin-left: 15px; font-weight: bold;
461 height: 25px; margin-left: 15px; font-weight: bold;
462 }
462 }
463 }
463 }
464
464
465 .commit {
465 .commit {
466 margin: 5px 0 0 26px;
466 margin: 5px 0 0 26px;
467 font-weight: normal;
467 font-weight: normal;
468 white-space: pre-wrap;
468 white-space: pre-wrap;
469 }
469 }
470 }
470 }
471
471
472 .message {
472 .message {
473 position: relative;
473 position: relative;
474 margin: @padding;
474 margin: @padding;
475
475
476 .codeblock-label {
476 .codeblock-label {
477 margin: 0 0 1em 0;
477 margin: 0 0 1em 0;
478 }
478 }
479 }
479 }
480
480
481 .code-body {
481 .code-body {
482 padding: @padding;
482 padding: @padding;
483 background-color: #ffffff;
483 background-color: #ffffff;
484 min-width: 100%;
484 min-width: 100%;
485 box-sizing: border-box;
485 box-sizing: border-box;
486 // TODO: johbo: Parent has overflow: auto, this forces the child here
486 // TODO: johbo: Parent has overflow: auto, this forces the child here
487 // to have the intended size and to scroll. Should be simplified.
487 // to have the intended size and to scroll. Should be simplified.
488 width: 100%;
488 width: 100%;
489 overflow-x: auto;
489 overflow-x: auto;
490
490
491 img.rendered-binary {
491 img.rendered-binary {
492 height: auto;
492 height: auto;
493 width: 100%;
493 width: 100%;
494 }
494 }
495 }
495 }
496 }
496 }
497
497
498 .code-highlighttable,
498 .code-highlighttable,
499 div.codeblock {
499 div.codeblock {
500
500
501 &.readme {
501 &.readme {
502 background-color: white;
502 background-color: white;
503 }
503 }
504
504
505 .markdown-block table {
505 .markdown-block table {
506 border-collapse: collapse;
506 border-collapse: collapse;
507
507
508 th,
508 th,
509 td {
509 td {
510 padding: .5em;
510 padding: .5em;
511 border: @border-thickness solid @border-default-color;
511 border: @border-thickness solid @border-default-color;
512 }
512 }
513 }
513 }
514
514
515 table {
515 table {
516 border: 0px;
516 border: 0px;
517 margin: 0;
517 margin: 0;
518 letter-spacing: normal;
518 letter-spacing: normal;
519
519
520
520
521 td {
521 td {
522 border: 0px;
522 border: 0px;
523 vertical-align: top;
523 vertical-align: top;
524 }
524 }
525 }
525 }
526 }
526 }
527
527
528 div.codeblock .code-header .search-path { padding: 0 0 0 10px; }
528 div.codeblock .code-header .search-path { padding: 0 0 0 10px; }
529 div.search-code-body {
529 div.search-code-body {
530 background-color: #ffffff; padding: 5px 0 5px 10px;
530 background-color: #ffffff; padding: 5px 0 5px 10px;
531 pre {
531 pre {
532 .match { background-color: #faffa6;}
532 .match { background-color: #faffa6;}
533 .break { display: block; width: 100%; background-color: #DDE7EF; color: #747474; }
533 .break { display: block; width: 100%; background-color: #DDE7EF; color: #747474; }
534 }
534 }
535 .code-highlighttable {
535 .code-highlighttable {
536 border-collapse: collapse;
536 border-collapse: collapse;
537
537
538 tr:hover {
538 tr:hover {
539 background: #fafafa;
539 background: #fafafa;
540 }
540 }
541 td.code {
541 td.code {
542 padding-left: 10px;
542 padding-left: 10px;
543 }
543 }
544 td.line {
544 td.line {
545 border-right: 1px solid #ccc !important;
545 border-right: 1px solid #ccc !important;
546 padding-right: 10px;
546 padding-right: 10px;
547 text-align: right;
547 text-align: right;
548 font-family: @text-monospace;
548 font-family: @text-monospace;
549 span {
549 span {
550 white-space: pre-wrap;
550 white-space: pre-wrap;
551 color: #666666;
551 color: #666666;
552 }
552 }
553 }
553 }
554 }
554 }
555 }
555 }
556
556
557 div.annotatediv { margin-left: 2px; margin-right: 4px; }
557 div.annotatediv { margin-left: 2px; margin-right: 4px; }
558 .code-highlight {
558 .code-highlight {
559 margin: 0; padding: 0; border-left: @border-thickness solid @grey5;
559 margin: 0; padding: 0; border-left: @border-thickness solid @grey5;
560 pre, .linenodiv pre { padding: 0 5px; margin: 0; }
560 pre, .linenodiv pre { padding: 0 5px; margin: 0; }
561 pre div:target {background-color: @comment-highlight-color !important;}
561 pre div:target {background-color: @comment-highlight-color !important;}
562 }
562 }
563
563
564 .linenos a { text-decoration: none; }
564 .linenos a { text-decoration: none; }
565
565
566 .CodeMirror-selected { background: @rchighlightblue; }
566 .CodeMirror-selected { background: @rchighlightblue; }
567 .CodeMirror-focused .CodeMirror-selected { background: @rchighlightblue; }
567 .CodeMirror-focused .CodeMirror-selected { background: @rchighlightblue; }
568 .CodeMirror ::selection { background: @rchighlightblue; }
568 .CodeMirror ::selection { background: @rchighlightblue; }
569 .CodeMirror ::-moz-selection { background: @rchighlightblue; }
569 .CodeMirror ::-moz-selection { background: @rchighlightblue; }
570
570
571 .code { display: block; border:0px !important; }
571 .code { display: block; border:0px !important; }
572 .code-highlight, /* TODO: dan: merge codehilite into code-highlight */
572 .code-highlight, /* TODO: dan: merge codehilite into code-highlight */
573 /* This can be generated with `pygmentize -S default -f html` */
573 .codehilite {
574 .codehilite {
574 .hll { background-color: #ffffcc }
575 .hll { background-color: #ffffcc }
575 .c { color: #408080; font-style: italic } /* Comment */
576 .c { color: #408080; font-style: italic } /* Comment */
576 .err, .codehilite .err { border: none } /* Error */
577 .err, .codehilite .err { border: none } /* Error */
577 .k { color: #008000; font-weight: bold } /* Keyword */
578 .k { color: #008000; font-weight: bold } /* Keyword */
578 .o { color: #666666 } /* Operator */
579 .o { color: #666666 } /* Operator */
580 .ch { color: #408080; font-style: italic } /* Comment.Hashbang */
579 .cm { color: #408080; font-style: italic } /* Comment.Multiline */
581 .cm { color: #408080; font-style: italic } /* Comment.Multiline */
580 .cp { color: #BC7A00 } /* Comment.Preproc */
582 .cp { color: #BC7A00 } /* Comment.Preproc */
583 .cpf { color: #408080; font-style: italic } /* Comment.PreprocFile */
581 .c1 { color: #408080; font-style: italic } /* Comment.Single */
584 .c1 { color: #408080; font-style: italic } /* Comment.Single */
582 .cs { color: #408080; font-style: italic } /* Comment.Special */
585 .cs { color: #408080; font-style: italic } /* Comment.Special */
583 .gd { color: #A00000 } /* Generic.Deleted */
586 .gd { color: #A00000 } /* Generic.Deleted */
584 .ge { font-style: italic } /* Generic.Emph */
587 .ge { font-style: italic } /* Generic.Emph */
585 .gr { color: #FF0000 } /* Generic.Error */
588 .gr { color: #FF0000 } /* Generic.Error */
586 .gh { color: #000080; font-weight: bold } /* Generic.Heading */
589 .gh { color: #000080; font-weight: bold } /* Generic.Heading */
587 .gi { color: #00A000 } /* Generic.Inserted */
590 .gi { color: #00A000 } /* Generic.Inserted */
588 .go { color: #808080 } /* Generic.Output */
591 .go { color: #888888 } /* Generic.Output */
589 .gp { color: #000080; font-weight: bold } /* Generic.Prompt */
592 .gp { color: #000080; font-weight: bold } /* Generic.Prompt */
590 .gs { font-weight: bold } /* Generic.Strong */
593 .gs { font-weight: bold } /* Generic.Strong */
591 .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
594 .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
592 .gt { color: #0040D0 } /* Generic.Traceback */
595 .gt { color: #0044DD } /* Generic.Traceback */
593 .kc { color: #008000; font-weight: bold } /* Keyword.Constant */
596 .kc { color: #008000; font-weight: bold } /* Keyword.Constant */
594 .kd { color: #008000; font-weight: bold } /* Keyword.Declaration */
597 .kd { color: #008000; font-weight: bold } /* Keyword.Declaration */
595 .kn { color: #008000; font-weight: bold } /* Keyword.Namespace */
598 .kn { color: #008000; font-weight: bold } /* Keyword.Namespace */
596 .kp { color: #008000 } /* Keyword.Pseudo */
599 .kp { color: #008000 } /* Keyword.Pseudo */
597 .kr { color: #008000; font-weight: bold } /* Keyword.Reserved */
600 .kr { color: #008000; font-weight: bold } /* Keyword.Reserved */
598 .kt { color: #B00040 } /* Keyword.Type */
601 .kt { color: #B00040 } /* Keyword.Type */
599 .m { color: #666666 } /* Literal.Number */
602 .m { color: #666666 } /* Literal.Number */
600 .s { color: #BA2121 } /* Literal.String */
603 .s { color: #BA2121 } /* Literal.String */
601 .na { color: #7D9029 } /* Name.Attribute */
604 .na { color: #7D9029 } /* Name.Attribute */
602 .nb { color: #008000 } /* Name.Builtin */
605 .nb { color: #008000 } /* Name.Builtin */
603 .nc { color: #0000FF; font-weight: bold } /* Name.Class */
606 .nc { color: #0000FF; font-weight: bold } /* Name.Class */
604 .no { color: #880000 } /* Name.Constant */
607 .no { color: #880000 } /* Name.Constant */
605 .nd { color: #AA22FF } /* Name.Decorator */
608 .nd { color: #AA22FF } /* Name.Decorator */
606 .ni { color: #999999; font-weight: bold } /* Name.Entity */
609 .ni { color: #999999; font-weight: bold } /* Name.Entity */
607 .ne { color: #D2413A; font-weight: bold } /* Name.Exception */
610 .ne { color: #D2413A; font-weight: bold } /* Name.Exception */
608 .nf { color: #0000FF } /* Name.Function */
611 .nf { color: #0000FF } /* Name.Function */
609 .nl { color: #A0A000 } /* Name.Label */
612 .nl { color: #A0A000 } /* Name.Label */
610 .nn { color: #0000FF; font-weight: bold } /* Name.Namespace */
613 .nn { color: #0000FF; font-weight: bold } /* Name.Namespace */
611 .nt { color: #008000; font-weight: bold } /* Name.Tag */
614 .nt { color: #008000; font-weight: bold } /* Name.Tag */
612 .nv { color: #19177C } /* Name.Variable */
615 .nv { color: #19177C } /* Name.Variable */
613 .ow { color: #AA22FF; font-weight: bold } /* Operator.Word */
616 .ow { color: #AA22FF; font-weight: bold } /* Operator.Word */
614 .w { color: #bbbbbb } /* Text.Whitespace */
617 .w { color: #bbbbbb } /* Text.Whitespace */
618 .mb { color: #666666 } /* Literal.Number.Bin */
615 .mf { color: #666666 } /* Literal.Number.Float */
619 .mf { color: #666666 } /* Literal.Number.Float */
616 .mh { color: #666666 } /* Literal.Number.Hex */
620 .mh { color: #666666 } /* Literal.Number.Hex */
617 .mi { color: #666666 } /* Literal.Number.Integer */
621 .mi { color: #666666 } /* Literal.Number.Integer */
618 .mo { color: #666666 } /* Literal.Number.Oct */
622 .mo { color: #666666 } /* Literal.Number.Oct */
623 .sa { color: #BA2121 } /* Literal.String.Affix */
619 .sb { color: #BA2121 } /* Literal.String.Backtick */
624 .sb { color: #BA2121 } /* Literal.String.Backtick */
620 .sc { color: #BA2121 } /* Literal.String.Char */
625 .sc { color: #BA2121 } /* Literal.String.Char */
626 .dl { color: #BA2121 } /* Literal.String.Delimiter */
621 .sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */
627 .sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */
622 .s2 { color: #BA2121 } /* Literal.String.Double */
628 .s2 { color: #BA2121 } /* Literal.String.Double */
623 .se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */
629 .se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */
624 .sh { color: #BA2121 } /* Literal.String.Heredoc */
630 .sh { color: #BA2121 } /* Literal.String.Heredoc */
625 .si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */
631 .si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */
626 .sx { color: #008000 } /* Literal.String.Other */
632 .sx { color: #008000 } /* Literal.String.Other */
627 .sr { color: #BB6688 } /* Literal.String.Regex */
633 .sr { color: #BB6688 } /* Literal.String.Regex */
628 .s1 { color: #BA2121 } /* Literal.String.Single */
634 .s1 { color: #BA2121 } /* Literal.String.Single */
629 .ss { color: #19177C } /* Literal.String.Symbol */
635 .ss { color: #19177C } /* Literal.String.Symbol */
630 .bp { color: #008000 } /* Name.Builtin.Pseudo */
636 .bp { color: #008000 } /* Name.Builtin.Pseudo */
637 .fm { color: #0000FF } /* Name.Function.Magic */
631 .vc { color: #19177C } /* Name.Variable.Class */
638 .vc { color: #19177C } /* Name.Variable.Class */
632 .vg { color: #19177C } /* Name.Variable.Global */
639 .vg { color: #19177C } /* Name.Variable.Global */
633 .vi { color: #19177C } /* Name.Variable.Instance */
640 .vi { color: #19177C } /* Name.Variable.Instance */
641 .vm { color: #19177C } /* Name.Variable.Magic */
634 .il { color: #666666 } /* Literal.Number.Integer.Long */
642 .il { color: #666666 } /* Literal.Number.Integer.Long */
635 }
643 }
636
644
637 /* customized pre blocks for markdown/rst */
645 /* customized pre blocks for markdown/rst */
638 pre.literal-block, .codehilite pre{
646 pre.literal-block, .codehilite pre{
639 padding: @padding;
647 padding: @padding;
640 border: 1px solid @grey6;
648 border: 1px solid @grey6;
641 .border-radius(@border-radius);
649 .border-radius(@border-radius);
642 background-color: @grey7;
650 background-color: @grey7;
643 }
651 }
644
652
645
653
646 /* START NEW CODE BLOCK CSS */
654 /* START NEW CODE BLOCK CSS */
647
655
648 @cb-line-height: 18px;
656 @cb-line-height: 18px;
649 @cb-line-code-padding: 10px;
657 @cb-line-code-padding: 10px;
650 @cb-text-padding: 5px;
658 @cb-text-padding: 5px;
651
659
652 @pill-padding: 2px 7px;
660 @pill-padding: 2px 7px;
653 @pill-padding-small: 2px 2px 1px 2px;
661 @pill-padding-small: 2px 2px 1px 2px;
654
662
655 input.filediff-collapse-state {
663 input.filediff-collapse-state {
656 display: none;
664 display: none;
657
665
658 &:checked + .filediff { /* file diff is collapsed */
666 &:checked + .filediff { /* file diff is collapsed */
659 .cb {
667 .cb {
660 display: none
668 display: none
661 }
669 }
662 .filediff-collapse-indicator {
670 .filediff-collapse-indicator {
663 width: 0;
671 width: 0;
664 height: 0;
672 height: 0;
665 border-style: solid;
673 border-style: solid;
666 border-width: 4.5px 0 4.5px 9.3px;
674 border-width: 4.5px 0 4.5px 9.3px;
667 border-color: transparent transparent transparent #aaa;
675 border-color: transparent transparent transparent #aaa;
668 margin: 6px 0px;
676 margin: 6px 0px;
669 }
677 }
670 .filediff-menu {
678 .filediff-menu {
671 display: none;
679 display: none;
672 }
680 }
673
681
674 }
682 }
675
683
676 &+ .filediff { /* file diff is expanded */
684 &+ .filediff { /* file diff is expanded */
677 .filediff-collapse-indicator {
685 .filediff-collapse-indicator {
678 width: 0;
686 width: 0;
679 height: 0;
687 height: 0;
680 border-style: solid;
688 border-style: solid;
681 border-width: 9.3px 4.5px 0 4.5px;
689 border-width: 9.3px 4.5px 0 4.5px;
682 border-color: #aaa transparent transparent transparent;
690 border-color: #aaa transparent transparent transparent;
683 margin: 6px 0px;
691 margin: 6px 0px;
684
692
685 }
693 }
686 .filediff-menu {
694 .filediff-menu {
687 display: block;
695 display: block;
688 }
696 }
689 margin: 10px 0;
697 margin: 10px 0;
690 &:nth-child(2) {
698 &:nth-child(2) {
691 margin: 0;
699 margin: 0;
692 }
700 }
693 }
701 }
694 }
702 }
695
703
696 .filediffs .anchor {
704 .filediffs .anchor {
697 display: block;
705 display: block;
698 height: 40px;
706 height: 40px;
699 margin-top: -40px;
707 margin-top: -40px;
700 visibility: hidden;
708 visibility: hidden;
701 }
709 }
702
710
703 .filediffs .anchor:nth-of-type(1) {
711 .filediffs .anchor:nth-of-type(1) {
704 display: block;
712 display: block;
705 height: 80px;
713 height: 80px;
706 margin-top: -80px;
714 margin-top: -80px;
707 visibility: hidden;
715 visibility: hidden;
708 }
716 }
709
717
710 .cs_files {
718 .cs_files {
711 clear: both;
719 clear: both;
712 }
720 }
713
721
714 #diff-file-sticky{
722 #diff-file-sticky{
715 will-change: min-height;
723 will-change: min-height;
716 }
724 }
717
725
718 .sidebar__inner{
726 .sidebar__inner{
719 transform: translate(0, 0); /* For browsers don't support translate3d. */
727 transform: translate(0, 0); /* For browsers don't support translate3d. */
720 transform: translate3d(0, 0, 0);
728 transform: translate3d(0, 0, 0);
721 will-change: position, transform;
729 will-change: position, transform;
722 height: 70px;
730 height: 70px;
723 z-index: 30;
731 z-index: 30;
724 background-color: #fff;
732 background-color: #fff;
725 padding: 5px 0px;
733 padding: 5px 0px;
726 }
734 }
727
735
728 .sidebar__bar {
736 .sidebar__bar {
729 padding: 5px 0px 0px 0px
737 padding: 5px 0px 0px 0px
730 }
738 }
731
739
732 .fpath-placeholder {
740 .fpath-placeholder {
733 clear: both;
741 clear: both;
734 visibility: hidden
742 visibility: hidden
735 }
743 }
736
744
737 .is-affixed {
745 .is-affixed {
738 .sidebar_inner_shadow {
746 .sidebar_inner_shadow {
739 position: fixed;
747 position: fixed;
740 top: 75px;
748 top: 75px;
741 right: -100%;
749 right: -100%;
742 left: -100%;
750 left: -100%;
743 z-index: 28;
751 z-index: 28;
744 display: block;
752 display: block;
745 height: 5px;
753 height: 5px;
746 content: "";
754 content: "";
747 background: linear-gradient(rgba(0, 0, 0, 0.075), rgba(0, 0, 0, 0.001)) repeat-x 0 0;
755 background: linear-gradient(rgba(0, 0, 0, 0.075), rgba(0, 0, 0, 0.001)) repeat-x 0 0;
748 border-top: 1px solid rgba(0, 0, 0, 0.15);
756 border-top: 1px solid rgba(0, 0, 0, 0.15);
749 }
757 }
750 .fpath-placeholder {
758 .fpath-placeholder {
751 visibility: visible !important;
759 visibility: visible !important;
752 }
760 }
753 }
761 }
754
762
755 .diffset-menu {
763 .diffset-menu {
756 margin-bottom: 20px;
764 margin-bottom: 20px;
757 }
765 }
758 .diffset {
766 .diffset {
759 margin: 20px auto;
767 margin: 20px auto;
760 .diffset-heading {
768 .diffset-heading {
761 border: 1px solid @grey5;
769 border: 1px solid @grey5;
762 margin-bottom: -1px;
770 margin-bottom: -1px;
763 // margin-top: 20px;
771 // margin-top: 20px;
764 h2 {
772 h2 {
765 margin: 0;
773 margin: 0;
766 line-height: 38px;
774 line-height: 38px;
767 padding-left: 10px;
775 padding-left: 10px;
768 }
776 }
769 .btn {
777 .btn {
770 margin: 0;
778 margin: 0;
771 }
779 }
772 background: @grey6;
780 background: @grey6;
773 display: block;
781 display: block;
774 padding: 5px;
782 padding: 5px;
775 }
783 }
776 .diffset-heading-warning {
784 .diffset-heading-warning {
777 background: @alert3-inner;
785 background: @alert3-inner;
778 border: 1px solid @alert3;
786 border: 1px solid @alert3;
779 }
787 }
780 &.diffset-comments-disabled {
788 &.diffset-comments-disabled {
781 .cb-comment-box-opener, .comment-inline-form, .cb-comment-add-button {
789 .cb-comment-box-opener, .comment-inline-form, .cb-comment-add-button {
782 display: none !important;
790 display: none !important;
783 }
791 }
784 }
792 }
785 }
793 }
786
794
787 .filelist {
795 .filelist {
788 .pill {
796 .pill {
789 display: block;
797 display: block;
790 float: left;
798 float: left;
791 padding: @pill-padding-small;
799 padding: @pill-padding-small;
792 }
800 }
793 }
801 }
794
802
795 .pill {
803 .pill {
796 display: block;
804 display: block;
797 float: left;
805 float: left;
798 padding: @pill-padding;
806 padding: @pill-padding;
799 }
807 }
800
808
801 .pill-group {
809 .pill-group {
802 .pill {
810 .pill {
803 opacity: .8;
811 opacity: .8;
804 margin-right: 3px;
812 margin-right: 3px;
805 font-size: 12px;
813 font-size: 12px;
806 font-weight: normal;
814 font-weight: normal;
807
815
808 &:first-child {
816 &:first-child {
809 border-radius: @border-radius 0 0 @border-radius;
817 border-radius: @border-radius 0 0 @border-radius;
810 }
818 }
811 &:last-child {
819 &:last-child {
812 border-radius: 0 @border-radius @border-radius 0;
820 border-radius: 0 @border-radius @border-radius 0;
813 }
821 }
814 &:only-child {
822 &:only-child {
815 border-radius: @border-radius;
823 border-radius: @border-radius;
816 margin-right: 0;
824 margin-right: 0;
817 }
825 }
818 }
826 }
819 }
827 }
820
828
821 /* Main comments*/
829 /* Main comments*/
822 #comments {
830 #comments {
823 .comment-selected {
831 .comment-selected {
824 border-left: 6px solid @comment-highlight-color;
832 border-left: 6px solid @comment-highlight-color;
825 padding-left: 3px;
833 padding-left: 3px;
826 margin-left: -9px;
834 margin-left: -9px;
827 }
835 }
828 }
836 }
829
837
830 .filediff {
838 .filediff {
831 border: 1px solid @grey5;
839 border: 1px solid @grey5;
832
840
833 /* START OVERRIDES */
841 /* START OVERRIDES */
834 .code-highlight {
842 .code-highlight {
835 border: none; // TODO: remove this border from the global
843 border: none; // TODO: remove this border from the global
836 // .code-highlight, it doesn't belong there
844 // .code-highlight, it doesn't belong there
837 }
845 }
838 label {
846 label {
839 margin: 0; // TODO: remove this margin definition from global label
847 margin: 0; // TODO: remove this margin definition from global label
840 // it doesn't belong there - if margin on labels
848 // it doesn't belong there - if margin on labels
841 // are needed for a form they should be defined
849 // are needed for a form they should be defined
842 // in the form's class
850 // in the form's class
843 }
851 }
844 /* END OVERRIDES */
852 /* END OVERRIDES */
845
853
846 * {
854 * {
847 box-sizing: border-box;
855 box-sizing: border-box;
848 }
856 }
849 .filediff-anchor {
857 .filediff-anchor {
850 visibility: hidden;
858 visibility: hidden;
851 }
859 }
852 &:hover {
860 &:hover {
853 .filediff-anchor {
861 .filediff-anchor {
854 visibility: visible;
862 visibility: visible;
855 }
863 }
856 }
864 }
857
865
858 .filediff-collapse-indicator {
866 .filediff-collapse-indicator {
859 border-style: solid;
867 border-style: solid;
860 float: left;
868 float: left;
861 margin: 4px 0px 0 0;
869 margin: 4px 0px 0 0;
862 cursor: pointer;
870 cursor: pointer;
863 }
871 }
864
872
865 .filediff-heading {
873 .filediff-heading {
866 background: @grey7;
874 background: @grey7;
867 cursor: pointer;
875 cursor: pointer;
868 display: block;
876 display: block;
869 padding: 5px 10px;
877 padding: 5px 10px;
870 }
878 }
871 .filediff-heading:after {
879 .filediff-heading:after {
872 content: "";
880 content: "";
873 display: table;
881 display: table;
874 clear: both;
882 clear: both;
875 }
883 }
876 .filediff-heading:hover {
884 .filediff-heading:hover {
877 background: #e1e9f4 !important;
885 background: #e1e9f4 !important;
878 }
886 }
879
887
880 .filediff-menu {
888 .filediff-menu {
881 float: right;
889 float: right;
882 text-align: right;
890 text-align: right;
883 padding: 5px 5px 5px 0px;
891 padding: 5px 5px 5px 0px;
884
892
885 &> a,
893 &> a,
886 &> span {
894 &> span {
887 padding: 1px;
895 padding: 1px;
888 }
896 }
889 }
897 }
890
898
891 .filediff-collapse-button, .filediff-expand-button {
899 .filediff-collapse-button, .filediff-expand-button {
892 cursor: pointer;
900 cursor: pointer;
893 }
901 }
894 .filediff-collapse-button {
902 .filediff-collapse-button {
895 display: inline;
903 display: inline;
896 }
904 }
897 .filediff-expand-button {
905 .filediff-expand-button {
898 display: none;
906 display: none;
899 }
907 }
900 .filediff-collapsed .filediff-collapse-button {
908 .filediff-collapsed .filediff-collapse-button {
901 display: none;
909 display: none;
902 }
910 }
903 .filediff-collapsed .filediff-expand-button {
911 .filediff-collapsed .filediff-expand-button {
904 display: inline;
912 display: inline;
905 }
913 }
906
914
907 /**** COMMENTS ****/
915 /**** COMMENTS ****/
908
916
909 .filediff-menu {
917 .filediff-menu {
910 .show-comment-button {
918 .show-comment-button {
911 display: none;
919 display: none;
912 }
920 }
913 }
921 }
914 &.hide-comments {
922 &.hide-comments {
915 .inline-comments {
923 .inline-comments {
916 display: none;
924 display: none;
917 }
925 }
918 .filediff-menu {
926 .filediff-menu {
919 .show-comment-button {
927 .show-comment-button {
920 display: inline;
928 display: inline;
921 }
929 }
922 .hide-comment-button {
930 .hide-comment-button {
923 display: none;
931 display: none;
924 }
932 }
925 }
933 }
926 }
934 }
927
935
928 .hide-line-comments {
936 .hide-line-comments {
929 .inline-comments {
937 .inline-comments {
930 display: none;
938 display: none;
931 }
939 }
932 }
940 }
933
941
934 /**** END COMMENTS ****/
942 /**** END COMMENTS ****/
935
943
936 }
944 }
937
945
938
946
939
947
940 .filediff, .filelist {
948 .filediff, .filelist {
941 .pill {
949 .pill {
942 &[op="name"] {
950 &[op="name"] {
943 background: none;
951 background: none;
944 opacity: 1;
952 opacity: 1;
945 color: white;
953 color: white;
946 }
954 }
947 &[op="limited"] {
955 &[op="limited"] {
948 background: @grey2;
956 background: @grey2;
949 color: white;
957 color: white;
950 }
958 }
951 &[op="binary"] {
959 &[op="binary"] {
952 background: @color7;
960 background: @color7;
953 color: white;
961 color: white;
954 }
962 }
955 &[op="modified"] {
963 &[op="modified"] {
956 background: @alert1;
964 background: @alert1;
957 color: white;
965 color: white;
958 }
966 }
959 &[op="renamed"] {
967 &[op="renamed"] {
960 background: @color4;
968 background: @color4;
961 color: white;
969 color: white;
962 }
970 }
963 &[op="copied"] {
971 &[op="copied"] {
964 background: @color4;
972 background: @color4;
965 color: white;
973 color: white;
966 }
974 }
967 &[op="mode"] {
975 &[op="mode"] {
968 background: @grey3;
976 background: @grey3;
969 color: white;
977 color: white;
970 }
978 }
971 &[op="symlink"] {
979 &[op="symlink"] {
972 background: @color8;
980 background: @color8;
973 color: white;
981 color: white;
974 }
982 }
975
983
976 &[op="added"] { /* added lines */
984 &[op="added"] { /* added lines */
977 background: @alert1;
985 background: @alert1;
978 color: white;
986 color: white;
979 }
987 }
980 &[op="deleted"] { /* deleted lines */
988 &[op="deleted"] { /* deleted lines */
981 background: @alert2;
989 background: @alert2;
982 color: white;
990 color: white;
983 }
991 }
984
992
985 &[op="created"] { /* created file */
993 &[op="created"] { /* created file */
986 background: @alert1;
994 background: @alert1;
987 color: white;
995 color: white;
988 }
996 }
989 &[op="removed"] { /* deleted file */
997 &[op="removed"] { /* deleted file */
990 background: @color5;
998 background: @color5;
991 color: white;
999 color: white;
992 }
1000 }
993 }
1001 }
994 }
1002 }
995
1003
996
1004
997 .filediff-outdated {
1005 .filediff-outdated {
998 padding: 8px 0;
1006 padding: 8px 0;
999
1007
1000 .filediff-heading {
1008 .filediff-heading {
1001 opacity: .5;
1009 opacity: .5;
1002 }
1010 }
1003 }
1011 }
1004
1012
1005 table.cb {
1013 table.cb {
1006 width: 100%;
1014 width: 100%;
1007 border-collapse: collapse;
1015 border-collapse: collapse;
1008
1016
1009 .cb-text {
1017 .cb-text {
1010 padding: @cb-text-padding;
1018 padding: @cb-text-padding;
1011 }
1019 }
1012 .cb-hunk {
1020 .cb-hunk {
1013 padding: @cb-text-padding;
1021 padding: @cb-text-padding;
1014 }
1022 }
1015 .cb-expand {
1023 .cb-expand {
1016 display: none;
1024 display: none;
1017 }
1025 }
1018 .cb-collapse {
1026 .cb-collapse {
1019 display: inline;
1027 display: inline;
1020 }
1028 }
1021 &.cb-collapsed {
1029 &.cb-collapsed {
1022 .cb-line {
1030 .cb-line {
1023 display: none;
1031 display: none;
1024 }
1032 }
1025 .cb-expand {
1033 .cb-expand {
1026 display: inline;
1034 display: inline;
1027 }
1035 }
1028 .cb-collapse {
1036 .cb-collapse {
1029 display: none;
1037 display: none;
1030 }
1038 }
1031 .cb-hunk {
1039 .cb-hunk {
1032 display: none;
1040 display: none;
1033 }
1041 }
1034 }
1042 }
1035
1043
1036 /* intentionally general selector since .cb-line-selected must override it
1044 /* intentionally general selector since .cb-line-selected must override it
1037 and they both use !important since the td itself may have a random color
1045 and they both use !important since the td itself may have a random color
1038 generated by annotation blocks. TLDR: if you change it, make sure
1046 generated by annotation blocks. TLDR: if you change it, make sure
1039 annotated block selection and line selection in file view still work */
1047 annotated block selection and line selection in file view still work */
1040 .cb-line-fresh .cb-content {
1048 .cb-line-fresh .cb-content {
1041 background: white !important;
1049 background: white !important;
1042 }
1050 }
1043 .cb-warning {
1051 .cb-warning {
1044 background: #fff4dd;
1052 background: #fff4dd;
1045 }
1053 }
1046
1054
1047 &.cb-diff-sideside {
1055 &.cb-diff-sideside {
1048 td {
1056 td {
1049 &.cb-content {
1057 &.cb-content {
1050 width: 50%;
1058 width: 50%;
1051 }
1059 }
1052 }
1060 }
1053 }
1061 }
1054
1062
1055 tr {
1063 tr {
1056 &.cb-annotate {
1064 &.cb-annotate {
1057 border-top: 1px solid #eee;
1065 border-top: 1px solid #eee;
1058 }
1066 }
1059
1067
1060 &.cb-comment-info {
1068 &.cb-comment-info {
1061 border-top: 1px solid #eee;
1069 border-top: 1px solid #eee;
1062 color: rgba(0, 0, 0, 0.3);
1070 color: rgba(0, 0, 0, 0.3);
1063 background: #edf2f9;
1071 background: #edf2f9;
1064
1072
1065 td {
1073 td {
1066
1074
1067 }
1075 }
1068 }
1076 }
1069
1077
1070 &.cb-hunk {
1078 &.cb-hunk {
1071 font-family: @text-monospace;
1079 font-family: @text-monospace;
1072 color: rgba(0, 0, 0, 0.3);
1080 color: rgba(0, 0, 0, 0.3);
1073
1081
1074 td {
1082 td {
1075 &:first-child {
1083 &:first-child {
1076 background: #edf2f9;
1084 background: #edf2f9;
1077 }
1085 }
1078 &:last-child {
1086 &:last-child {
1079 background: #f4f7fb;
1087 background: #f4f7fb;
1080 }
1088 }
1081 }
1089 }
1082 }
1090 }
1083 }
1091 }
1084
1092
1085
1093
1086 td {
1094 td {
1087 vertical-align: top;
1095 vertical-align: top;
1088 padding: 0;
1096 padding: 0;
1089
1097
1090 &.cb-content {
1098 &.cb-content {
1091 font-size: 12.35px;
1099 font-size: 12.35px;
1092
1100
1093 &.cb-line-selected .cb-code {
1101 &.cb-line-selected .cb-code {
1094 background: @comment-highlight-color !important;
1102 background: @comment-highlight-color !important;
1095 }
1103 }
1096
1104
1097 span.cb-code {
1105 span.cb-code {
1098 line-height: @cb-line-height;
1106 line-height: @cb-line-height;
1099 padding-left: @cb-line-code-padding;
1107 padding-left: @cb-line-code-padding;
1100 padding-right: @cb-line-code-padding;
1108 padding-right: @cb-line-code-padding;
1101 display: block;
1109 display: block;
1102 white-space: pre-wrap;
1110 white-space: pre-wrap;
1103 font-family: @text-monospace;
1111 font-family: @text-monospace;
1104 word-break: break-all;
1112 word-break: break-all;
1105 .nonl {
1113 .nonl {
1106 color: @color5;
1114 color: @color5;
1107 }
1115 }
1108 .cb-action {
1116 .cb-action {
1109 &:before {
1117 &:before {
1110 content: " ";
1118 content: " ";
1111 }
1119 }
1112 &.cb-deletion:before {
1120 &.cb-deletion:before {
1113 content: "- ";
1121 content: "- ";
1114 }
1122 }
1115 &.cb-addition:before {
1123 &.cb-addition:before {
1116 content: "+ ";
1124 content: "+ ";
1117 }
1125 }
1118 }
1126 }
1119 }
1127 }
1120
1128
1121 &> button.cb-comment-box-opener {
1129 &> button.cb-comment-box-opener {
1122
1130
1123 padding: 2px 2px 1px 3px;
1131 padding: 2px 2px 1px 3px;
1124 margin-left: -6px;
1132 margin-left: -6px;
1125 margin-top: -1px;
1133 margin-top: -1px;
1126
1134
1127 border-radius: @border-radius;
1135 border-radius: @border-radius;
1128 position: absolute;
1136 position: absolute;
1129 display: none;
1137 display: none;
1130 }
1138 }
1131 .cb-comment {
1139 .cb-comment {
1132 margin-top: 10px;
1140 margin-top: 10px;
1133 white-space: normal;
1141 white-space: normal;
1134 }
1142 }
1135 }
1143 }
1136 &:hover {
1144 &:hover {
1137 button.cb-comment-box-opener {
1145 button.cb-comment-box-opener {
1138 display: block;
1146 display: block;
1139 }
1147 }
1140 &+ td button.cb-comment-box-opener {
1148 &+ td button.cb-comment-box-opener {
1141 display: block
1149 display: block
1142 }
1150 }
1143 }
1151 }
1144
1152
1145 &.cb-data {
1153 &.cb-data {
1146 text-align: right;
1154 text-align: right;
1147 width: 30px;
1155 width: 30px;
1148 font-family: @text-monospace;
1156 font-family: @text-monospace;
1149
1157
1150 .icon-comment {
1158 .icon-comment {
1151 cursor: pointer;
1159 cursor: pointer;
1152 }
1160 }
1153 &.cb-line-selected {
1161 &.cb-line-selected {
1154 background: @comment-highlight-color !important;
1162 background: @comment-highlight-color !important;
1155 }
1163 }
1156 &.cb-line-selected > div {
1164 &.cb-line-selected > div {
1157 display: block;
1165 display: block;
1158 background: @comment-highlight-color !important;
1166 background: @comment-highlight-color !important;
1159 line-height: @cb-line-height;
1167 line-height: @cb-line-height;
1160 color: rgba(0, 0, 0, 0.3);
1168 color: rgba(0, 0, 0, 0.3);
1161 }
1169 }
1162 }
1170 }
1163
1171
1164 &.cb-lineno {
1172 &.cb-lineno {
1165 padding: 0;
1173 padding: 0;
1166 width: 50px;
1174 width: 50px;
1167 color: rgba(0, 0, 0, 0.3);
1175 color: rgba(0, 0, 0, 0.3);
1168 text-align: right;
1176 text-align: right;
1169 border-right: 1px solid #eee;
1177 border-right: 1px solid #eee;
1170 font-family: @text-monospace;
1178 font-family: @text-monospace;
1171 -webkit-user-select: none;
1179 -webkit-user-select: none;
1172 -moz-user-select: none;
1180 -moz-user-select: none;
1173 user-select: none;
1181 user-select: none;
1174
1182
1175 a::before {
1183 a::before {
1176 content: attr(data-line-no);
1184 content: attr(data-line-no);
1177 }
1185 }
1178 &.cb-line-selected {
1186 &.cb-line-selected {
1179 background: @comment-highlight-color !important;
1187 background: @comment-highlight-color !important;
1180 }
1188 }
1181
1189
1182 a {
1190 a {
1183 display: block;
1191 display: block;
1184 padding-right: @cb-line-code-padding;
1192 padding-right: @cb-line-code-padding;
1185 padding-left: @cb-line-code-padding;
1193 padding-left: @cb-line-code-padding;
1186 line-height: @cb-line-height;
1194 line-height: @cb-line-height;
1187 color: rgba(0, 0, 0, 0.3);
1195 color: rgba(0, 0, 0, 0.3);
1188 }
1196 }
1189 }
1197 }
1190
1198
1191 &.cb-empty {
1199 &.cb-empty {
1192 background: @grey7;
1200 background: @grey7;
1193 }
1201 }
1194
1202
1195 ins {
1203 ins {
1196 color: black;
1204 color: black;
1197 background: #a6f3a6;
1205 background: #a6f3a6;
1198 text-decoration: none;
1206 text-decoration: none;
1199 }
1207 }
1200 del {
1208 del {
1201 color: black;
1209 color: black;
1202 background: #f8cbcb;
1210 background: #f8cbcb;
1203 text-decoration: none;
1211 text-decoration: none;
1204 }
1212 }
1205 &.cb-addition {
1213 &.cb-addition {
1206 background: #ecffec;
1214 background: #ecffec;
1207
1215
1208 &.blob-lineno {
1216 &.blob-lineno {
1209 background: #ddffdd;
1217 background: #ddffdd;
1210 }
1218 }
1211 }
1219 }
1212 &.cb-deletion {
1220 &.cb-deletion {
1213 background: #ffecec;
1221 background: #ffecec;
1214
1222
1215 &.blob-lineno {
1223 &.blob-lineno {
1216 background: #ffdddd;
1224 background: #ffdddd;
1217 }
1225 }
1218 }
1226 }
1219 &.cb-annotate-message-spacer {
1227 &.cb-annotate-message-spacer {
1220 width:8px;
1228 width:8px;
1221 padding: 1px 0px 0px 3px;
1229 padding: 1px 0px 0px 3px;
1222 }
1230 }
1223 &.cb-annotate-info {
1231 &.cb-annotate-info {
1224 width: 320px;
1232 width: 320px;
1225 min-width: 320px;
1233 min-width: 320px;
1226 max-width: 320px;
1234 max-width: 320px;
1227 padding: 5px 2px;
1235 padding: 5px 2px;
1228 font-size: 13px;
1236 font-size: 13px;
1229
1237
1230 .cb-annotate-message {
1238 .cb-annotate-message {
1231 padding: 2px 0px 0px 0px;
1239 padding: 2px 0px 0px 0px;
1232 white-space: pre-line;
1240 white-space: pre-line;
1233 overflow: hidden;
1241 overflow: hidden;
1234 }
1242 }
1235 .rc-user {
1243 .rc-user {
1236 float: none;
1244 float: none;
1237 padding: 0 6px 0 17px;
1245 padding: 0 6px 0 17px;
1238 min-width: unset;
1246 min-width: unset;
1239 min-height: unset;
1247 min-height: unset;
1240 }
1248 }
1241 }
1249 }
1242
1250
1243 &.cb-annotate-revision {
1251 &.cb-annotate-revision {
1244 cursor: pointer;
1252 cursor: pointer;
1245 text-align: right;
1253 text-align: right;
1246 padding: 1px 3px 0px 3px;
1254 padding: 1px 3px 0px 3px;
1247 }
1255 }
1248 }
1256 }
1249 }
1257 }
General Comments 0
You need to be logged in to leave comments. Login now