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