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