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