##// END OF EJS Templates
styling: fixes #4001 strikethrough on pr reviewer deletion
lisaq -
r158:309e14f5 default
parent child Browse files
Show More
@@ -1,2087 +1,2094 b''
1 1 //Primary CSS
2 2
3 3 //--- IMPORTS ------------------//
4 4
5 5 @import 'helpers';
6 6 @import 'mixins';
7 7 @import 'rcicons';
8 8 @import 'fonts';
9 9 @import 'variables';
10 10 @import 'bootstrap-variables';
11 11 @import 'form-bootstrap';
12 12 @import 'codemirror';
13 13 @import 'legacy_code_styles';
14 14 @import 'progress-bar';
15 15
16 16 @import 'type';
17 17 @import 'alerts';
18 18 @import 'buttons';
19 19 @import 'tags';
20 20 @import 'code-block';
21 21 @import 'examples';
22 22 @import 'login';
23 23 @import 'main-content';
24 24 @import 'select2';
25 25 @import 'comments';
26 26 @import 'panels-bootstrap';
27 27 @import 'panels';
28 28
29 29
30 30 //--- BASE ------------------//
31 31 .noscript-error {
32 32 top: 0;
33 33 left: 0;
34 34 width: 100%;
35 35 z-index: 101;
36 36 text-align: center;
37 37 font-family: @text-semibold;
38 38 font-size: 120%;
39 39 color: white;
40 40 background-color: @alert2;
41 41 padding: 5px 0 5px 0;
42 42 }
43 43
44 44 html {
45 45 display: table;
46 46 height: 100%;
47 47 width: 100%;
48 48 }
49 49
50 50 body {
51 51 display: table-cell;
52 52 width: 100%;
53 53 }
54 54
55 55 //--- LAYOUT ------------------//
56 56
57 57 .hidden{
58 58 display: none !important;
59 59 }
60 60
61 61 .box{
62 62 float: left;
63 63 width: 100%;
64 64 }
65 65
66 66 .browser-header {
67 67 clear: both;
68 68 }
69 69 .main {
70 70 clear: both;
71 71 padding:0 0 @pagepadding;
72 72 height: auto;
73 73
74 74 &:after { //clearfix
75 75 content:"";
76 76 clear:both;
77 77 width:100%;
78 78 display:block;
79 79 }
80 80 }
81 81
82 82 .action-link{
83 83 margin-left: @padding;
84 84 padding-left: @padding;
85 85 border-left: @border-thickness solid @border-default-color;
86 86 }
87 87
88 88 input + .action-link, .action-link.first{
89 89 border-left: none;
90 90 }
91 91
92 92 .action-link.last{
93 93 margin-right: @padding;
94 94 padding-right: @padding;
95 95 }
96 96
97 97 .action-link.active,
98 98 .action-link.active a{
99 99 color: @grey4;
100 100 }
101 101
102 102 ul.simple-list{
103 103 list-style: none;
104 104 margin: 0;
105 105 padding: 0;
106 106 }
107 107
108 108 .main-content {
109 109 padding-bottom: @pagepadding;
110 110 }
111 111
112 112 .wrapper {
113 113 position: relative;
114 114 max-width: @wrapper-maxwidth;
115 115 margin: 0 auto;
116 116 }
117 117
118 118 #content {
119 119 clear: both;
120 120 padding: 0 @contentpadding;
121 121 }
122 122
123 123 .advanced-settings-fields{
124 124 input{
125 125 margin-left: @textmargin;
126 126 margin-right: @padding/2;
127 127 }
128 128 }
129 129
130 130 .cs_files_title {
131 131 margin: @pagepadding 0 0;
132 132 }
133 133
134 134 input.inline[type="file"] {
135 135 display: inline;
136 136 }
137 137
138 138 .error_page {
139 139 margin: 10% auto;
140 140
141 141 h1 {
142 142 color: @grey2;
143 143 }
144 144
145 145 .error-branding {
146 146 font-family: @text-semibold;
147 147 color: @grey4;
148 148 }
149 149
150 150 .error_message {
151 151 font-family: @text-regular;
152 152 }
153 153
154 154 .sidebar {
155 155 min-height: 275px;
156 156 margin: 0;
157 157 padding: 0 0 @sidebarpadding @sidebarpadding;
158 158 border: none;
159 159 }
160 160
161 161 .main-content {
162 162 position: relative;
163 163 margin: 0 @sidebarpadding @sidebarpadding;
164 164 padding: 0 0 0 @sidebarpadding;
165 165 border-left: @border-thickness solid @grey5;
166 166
167 167 @media (max-width:767px) {
168 168 clear: both;
169 169 width: 100%;
170 170 margin: 0;
171 171 border: none;
172 172 }
173 173 }
174 174
175 175 .inner-column {
176 176 float: left;
177 177 width: 29.75%;
178 178 min-height: 150px;
179 179 margin: @sidebarpadding 2% 0 0;
180 180 padding: 0 2% 0 0;
181 181 border-right: @border-thickness solid @grey5;
182 182
183 183 @media (max-width:767px) {
184 184 clear: both;
185 185 width: 100%;
186 186 border: none;
187 187 }
188 188
189 189 ul {
190 190 padding-left: 1.25em;
191 191 }
192 192
193 193 &:last-child {
194 194 margin: @sidebarpadding 0 0;
195 195 border: none;
196 196 }
197 197
198 198 h4 {
199 199 margin: 0 0 @padding;
200 200 font-family: @text-semibold;
201 201 }
202 202 }
203 203 }
204 204 .error-page-logo {
205 205 width: 130px;
206 206 height: 160px;
207 207 }
208 208
209 209 // HEADER
210 210 .header {
211 211
212 212 // TODO: johbo: Fix login pages, so that they work without a min-height
213 213 // for the header and then remove the min-height. I chose a smaller value
214 214 // intentionally here to avoid rendering issues in the main navigation.
215 215 min-height: 49px;
216 216
217 217 position: relative;
218 218 vertical-align: bottom;
219 219 padding: 0 @header-padding;
220 220 background-color: @grey2;
221 221 color: @grey5;
222 222
223 223 .title {
224 224 overflow: visible;
225 225 }
226 226
227 227 &:before,
228 228 &:after {
229 229 content: "";
230 230 clear: both;
231 231 width: 100%;
232 232 }
233 233
234 234 // TODO: johbo: Avoids breaking "Repositories" chooser
235 235 .select2-container .select2-choice .select2-arrow {
236 236 display: none;
237 237 }
238 238 }
239 239
240 240 #header-inner {
241 241 &.title {
242 242 margin: 0;
243 243 }
244 244 &:before,
245 245 &:after {
246 246 content: "";
247 247 clear: both;
248 248 }
249 249 }
250 250
251 251 // Gists
252 252 #files_data {
253 253 clear: both; //for firefox
254 254 }
255 255 #gistid {
256 256 margin-right: @padding;
257 257 }
258 258
259 259 // Global Settings Editor
260 260 .textarea.editor {
261 261 float: left;
262 262 position: relative;
263 263 max-width: @texteditor-width;
264 264
265 265 select {
266 266 position: absolute;
267 267 top:10px;
268 268 right:0;
269 269 }
270 270
271 271 .CodeMirror {
272 272 margin: 0;
273 273 }
274 274
275 275 .help-block {
276 276 margin: 0 0 @padding;
277 277 padding:.5em;
278 278 background-color: @grey6;
279 279 }
280 280 }
281 281
282 282 ul.auth_plugins {
283 283 margin: @padding 0 @padding @legend-width;
284 284 padding: 0;
285 285
286 286 li {
287 287 margin-bottom: @padding;
288 288 line-height: 1em;
289 289 list-style-type: none;
290 290
291 291 .auth_buttons .btn {
292 292 margin-right: @padding;
293 293 }
294 294
295 295 &:before { content: none; }
296 296 }
297 297 }
298 298
299 299 // Pull Requests
300 300
301 301 .pullrequestlist {
302 302 max-width: @pullrequest-width;
303 303 margin-bottom: @space;
304 304
305 305 // Tweaks for "My Account" / "Pull requests"
306 306 .prwrapper {
307 307 clear: left;
308 308
309 309 .pr {
310 310 margin: 0;
311 311 padding: 0;
312 312 border-bottom: none;
313 313 }
314 314
315 315 // TODO: johbo: Replace with something that makes up an inline form or
316 316 // similar.
317 317 .repolist_actions {
318 318 display: inline-block;
319 319 }
320 320 }
321 321
322 322 }
323 323
324 324 .pullrequests_section_head {
325 325 display: block;
326 326 clear: both;
327 327 margin: @padding 0;
328 328 font-family: @text-bold;
329 329 }
330 330
331 331 .pr-origininfo, .pr-targetinfo {
332 332 position: relative;
333 333
334 334 .tag {
335 335 display: inline-block;
336 336 margin: 0 1em .5em 0;
337 337 }
338 338
339 339 .clone-url {
340 340 display: inline-block;
341 341 margin: 0 0 .5em 0;
342 342 padding: 0;
343 343 line-height: 1.2em;
344 344 }
345 345 }
346 346
347 347 .pr-pullinfo {
348 348 clear: both;
349 349 margin: .5em 0;
350 350 }
351 351
352 352 #pr-title-input {
353 353 width: 72%;
354 354 font-size: 1em;
355 355 font-family: @text-bold;
356 356 margin: 0;
357 357 padding: 0 0 0 @padding/4;
358 358 line-height: 1.7em;
359 359 color: @text-color;
360 360 letter-spacing: .02em;
361 361 }
362 362
363 363 #pullrequest_title {
364 364 width: 100%;
365 365 box-sizing: border-box;
366 366 }
367 367
368 368 #pr_open_message {
369 369 border: @border-thickness solid #fff;
370 370 border-radius: @border-radius;
371 371 padding: @padding-large-vertical @padding-large-vertical @padding-large-vertical 0;
372 372 text-align: right;
373 373 overflow: hidden;
374 374 }
375 375
376 376 .pr-submit-button {
377 377 float: right;
378 378 margin: 0 0 0 5px;
379 379 }
380 380
381 381 .pr-spacing-container {
382 382 padding: 20px;
383 383 clear: both
384 384 }
385 385
386 386 #pr-description-input {
387 387 margin-bottom: 0;
388 388 }
389 389
390 390 .pr-description-label {
391 391 vertical-align: top;
392 392 }
393 393
394 394 .perms_section_head {
395 395 min-width: 625px;
396 396
397 397 h2 {
398 398 margin-bottom: 0;
399 399 }
400 400
401 401 .label-checkbox {
402 402 float: left;
403 403 }
404 404
405 405 &.field {
406 406 margin: @space 0 @padding;
407 407 }
408 408
409 409 &:first-child.field {
410 410 margin-top: 0;
411 411
412 412 .label {
413 413 margin-top: 0;
414 414 padding-top: 0;
415 415 }
416 416
417 417 .radios {
418 418 padding-top: 0;
419 419 }
420 420 }
421 421
422 422 .radios {
423 423 float: right;
424 424 position: relative;
425 425 width: 405px;
426 426 }
427 427 }
428 428
429 429 //--- MODULES ------------------//
430 430
431 431
432 432 // Fixed Sidebar Column
433 433 .sidebar-col-wrapper {
434 434 padding-left: @sidebar-all-width;
435 435
436 436 .sidebar {
437 437 width: @sidebar-width;
438 438 margin-left: -@sidebar-all-width;
439 439 }
440 440 }
441 441
442 442 .sidebar-col-wrapper.scw-small {
443 443 padding-left: @sidebar-small-all-width;
444 444
445 445 .sidebar {
446 446 width: @sidebar-small-width;
447 447 margin-left: -@sidebar-small-all-width;
448 448 }
449 449 }
450 450
451 451
452 452 // FOOTER
453 453 #footer {
454 454 padding: 0;
455 455 text-align: center;
456 456 vertical-align: middle;
457 457 color: @grey2;
458 458 background-color: @grey6;
459 459
460 460 p {
461 461 margin: 0;
462 462 padding: 1em;
463 463 line-height: 1em;
464 464 }
465 465
466 466 .server-instance { //server instance
467 467 display: none;
468 468 }
469 469
470 470 .title {
471 471 float: none;
472 472 margin: 0 auto;
473 473 }
474 474 }
475 475
476 476 button.close {
477 477 padding: 0;
478 478 cursor: pointer;
479 479 background: transparent;
480 480 border: 0;
481 481 .box-shadow(none);
482 482 -webkit-appearance: none;
483 483 }
484 484
485 485 .close {
486 486 float: right;
487 487 font-size: 21px;
488 488 font-family: @text-bootstrap;
489 489 line-height: 1em;
490 490 font-weight: bold;
491 491 color: @grey2;
492 492
493 493 &:hover,
494 494 &:focus {
495 495 color: @grey1;
496 496 text-decoration: none;
497 497 cursor: pointer;
498 498 }
499 499 }
500 500
501 501 // GRID
502 502 .sorting,
503 503 .sorting_desc,
504 504 .sorting_asc {
505 505 cursor: pointer;
506 506 }
507 507 .sorting_desc:after {
508 508 content: "\00A0\25B2";
509 509 font-size: .75em;
510 510 }
511 511 .sorting_asc:after {
512 512 content: "\00A0\25BC";
513 513 font-size: .68em;
514 514 }
515 515
516 516
517 517 .user_auth_tokens {
518 518
519 519 &.truncate {
520 520 white-space: nowrap;
521 521 overflow: hidden;
522 522 text-overflow: ellipsis;
523 523 }
524 524
525 525 .fields .field .input {
526 526 margin: 0;
527 527 }
528 528
529 529 input#description {
530 530 width: 100px;
531 531 margin: 0;
532 532 }
533 533
534 534 .drop-menu {
535 535 // TODO: johbo: Remove this, should work out of the box when
536 536 // having multiple inputs inline
537 537 margin: 0 0 0 5px;
538 538 }
539 539 }
540 540 #user_list_table {
541 541 .closed {
542 542 background-color: @grey6;
543 543 }
544 544 }
545 545
546 546
547 547 input {
548 548 &.disabled {
549 549 opacity: .5;
550 550 }
551 551 }
552 552
553 553 // remove extra padding in firefox
554 554 input::-moz-focus-inner { border:0; padding:0 }
555 555
556 556 .adjacent input {
557 557 margin-bottom: @padding;
558 558 }
559 559
560 560 .permissions_boxes {
561 561 display: block;
562 562 }
563 563
564 564 //TODO: lisa: this should be in tables
565 565 .show_more_col {
566 566 width: 20px;
567 567 }
568 568
569 569 //FORMS
570 570
571 571 .medium-inline,
572 572 input#description.medium-inline {
573 573 display: inline;
574 574 width: @medium-inline-input-width;
575 575 min-width: 100px;
576 576 }
577 577
578 578 select {
579 579 //reset
580 580 -webkit-appearance: none;
581 581 -moz-appearance: none;
582 582
583 583 display: inline-block;
584 584 height: 28px;
585 585 width: auto;
586 586 margin: 0 @padding @padding 0;
587 587 padding: 0 18px 0 8px;
588 588 line-height:1em;
589 589 font-size: @basefontsize;
590 590 border: @border-thickness solid @rcblue;
591 591 background:white url("../images/dt-arrow-dn.png") no-repeat 100% 50%;
592 592 color: @rcblue;
593 593
594 594 &:after {
595 595 content: "\00A0\25BE";
596 596 }
597 597
598 598 &:focus {
599 599 outline: none;
600 600 }
601 601 }
602 602
603 603 option {
604 604 &:focus {
605 605 outline: none;
606 606 }
607 607 }
608 608
609 609 input,
610 610 textarea {
611 611 padding: @input-padding;
612 612 border: @input-border-thickness solid @border-highlight-color;
613 613 .border-radius (@border-radius);
614 614 font-family: @text-light;
615 615 font-size: @basefontsize;
616 616
617 617 &.input-sm {
618 618 padding: 5px;
619 619 }
620 620
621 621 &#description {
622 622 min-width: @input-description-minwidth;
623 623 min-height: 1em;
624 624 padding: 10px;
625 625 }
626 626 }
627 627
628 628 .field-sm {
629 629 input,
630 630 textarea {
631 631 padding: 5px;
632 632 }
633 633 }
634 634
635 635 textarea {
636 636 display: block;
637 637 clear: both;
638 638 width: 100%;
639 639 min-height: 100px;
640 640 margin-bottom: @padding;
641 641 .box-sizing(border-box);
642 642 overflow: auto;
643 643 }
644 644
645 645 label {
646 646 font-family: @text-light;
647 647 }
648 648
649 649 // GRAVATARS
650 650 // centers gravatar on username to the right
651 651
652 652 .gravatar {
653 653 display: inline;
654 654 min-width: 16px;
655 655 min-height: 16px;
656 656 margin: -5px 0;
657 657 padding: 0;
658 658 line-height: 1em;
659 659 border: 1px solid @grey4;
660 660
661 661 &.gravatar-large {
662 662 margin: -0.5em .25em -0.5em 0;
663 663 }
664 664
665 665 & + .user {
666 666 display: inline;
667 667 margin: 0;
668 668 padding: 0 0 0 .17em;
669 669 line-height: 1em;
670 670 }
671 671 }
672 672
673 673 .rc-user { // gravatar + user wrapper
674 674 float: left;
675 675 position: relative;
676 676 min-width: 100px;
677 677 max-width: 200px;
678 678 min-height: (@gravatar-size + @border-thickness * 2); // account for border
679 679 display: block;
680 680 padding: 0 0 0 (@gravatar-size + @basefontsize/2 + @border-thickness * 2);
681 681
682 682
683 683 .gravatar {
684 684 display: block;
685 685 position: absolute;
686 686 top: 0;
687 687 left: 0;
688 688 min-width: @gravatar-size;
689 689 min-height: @gravatar-size;
690 690 margin: 0;
691 691 }
692 692
693 693 .user {
694 694 display: block;
695 695 max-width: 175px;
696 696 padding-top: 2px;
697 697 overflow: hidden;
698 698 text-overflow: ellipsis;
699 699 }
700 700 }
701 701
702 702 .gist-gravatar,
703 703 .journal_container {
704 704 .gravatar-large {
705 705 margin: 0 .5em -10px 0;
706 706 }
707 707 }
708 708
709 709
710 710 // ADMIN SETTINGS
711 711
712 712 // Tag Patterns
713 713 .tag_patterns {
714 714 .tag_input {
715 715 margin-bottom: @padding;
716 716 }
717 717 }
718 718
719 719 .locked_input {
720 720 position: relative;
721 721
722 722 input {
723 723 display: inline;
724 724 margin-top: 3px;
725 725 }
726 726
727 727 br {
728 728 display: none;
729 729 }
730 730
731 731 .error-message {
732 732 float: left;
733 733 width: 100%;
734 734 }
735 735
736 736 .lock_input_button {
737 737 display: inline;
738 738 }
739 739
740 740 .help-block {
741 741 clear: both;
742 742 }
743 743 }
744 744
745 745 // Notifications
746 746
747 747 .notifications_buttons {
748 748 margin: 0 0 @space 0;
749 749 padding: 0;
750 750
751 751 .btn {
752 752 display: inline-block;
753 753 }
754 754 }
755 755
756 756 .notification-list {
757 757
758 758 div {
759 759 display: inline-block;
760 760 vertical-align: middle;
761 761 }
762 762
763 763 .container {
764 764 display: block;
765 765 margin: 0 0 @padding 0;
766 766 }
767 767
768 768 .delete-notifications {
769 769 margin-left: @padding;
770 770 text-align: right;
771 771 cursor: pointer;
772 772 }
773 773
774 774 .read-notifications {
775 775 margin-left: @padding/2;
776 776 text-align: right;
777 777 width: 35px;
778 778 cursor: pointer;
779 779 }
780 780
781 781 .icon-minus-sign {
782 782 color: @alert2;
783 783 }
784 784
785 785 .icon-ok-sign {
786 786 color: @alert1;
787 787 }
788 788 }
789 789
790 790 .user_settings {
791 791 float: left;
792 792 clear: both;
793 793 display: block;
794 794 width: 100%;
795 795
796 796 .gravatar_box {
797 797 margin-bottom: @padding;
798 798
799 799 &:after {
800 800 content: " ";
801 801 clear: both;
802 802 width: 100%;
803 803 }
804 804 }
805 805
806 806 .fields .field {
807 807 clear: both;
808 808 }
809 809 }
810 810
811 811 .advanced_settings {
812 812 margin-bottom: @space;
813 813
814 814 .help-block {
815 815 margin-left: 0;
816 816 }
817 817
818 818 button + .help-block {
819 819 margin-top: @padding;
820 820 }
821 821 }
822 822
823 823 // admin settings radio buttons and labels
824 824 .label-2 {
825 825 float: left;
826 826 width: @label2-width;
827 827
828 828 label {
829 829 color: @grey1;
830 830 }
831 831 }
832 832 .checkboxes {
833 833 float: left;
834 834 width: @checkboxes-width;
835 835 margin-bottom: @padding;
836 836
837 837 .checkbox {
838 838 width: 100%;
839 839
840 840 label {
841 841 margin: 0;
842 842 padding: 0;
843 843 }
844 844 }
845 845
846 846 .checkbox + .checkbox {
847 847 display: inline-block;
848 848 }
849 849
850 850 label {
851 851 margin-right: 1em;
852 852 }
853 853 }
854 854
855 855 // CHANGELOG
856 856 .container_header {
857 857 float: left;
858 858 display: block;
859 859 width: 100%;
860 860 margin: @padding 0 @padding;
861 861
862 862 #filter_changelog {
863 863 float: left;
864 864 margin-right: @padding;
865 865 }
866 866
867 867 .breadcrumbs_light {
868 868 display: inline-block;
869 869 }
870 870 }
871 871
872 872 .info_box {
873 873 float: right;
874 874 }
875 875
876 876
877 877 #graph_nodes {
878 878 padding-top: 43px;
879 879 }
880 880
881 881 #graph_content{
882 882
883 883 // adjust for table headers so that graph renders properly
884 884 // #graph_nodes padding - table cell padding
885 885 padding-top: (@space - (@basefontsize * 2.4));
886 886
887 887 &.graph_full_width {
888 888 width: 100%;
889 889 max-width: 100%;
890 890 }
891 891 }
892 892
893 893 #graph {
894 894 .flag_status {
895 895 margin: 0;
896 896 }
897 897
898 898 .pagination-left {
899 899 float: left;
900 900 clear: both;
901 901 }
902 902
903 903 .log-container {
904 904 max-width: 345px;
905 905
906 906 .message{
907 907 max-width: 340px;
908 908 }
909 909 }
910 910
911 911 .graph-col-wrapper {
912 912 padding-left: 110px;
913 913
914 914 #graph_nodes {
915 915 width: 100px;
916 916 margin-left: -110px;
917 917 float: left;
918 918 clear: left;
919 919 }
920 920 }
921 921 }
922 922
923 923 #filter_changelog {
924 924 float: left;
925 925 }
926 926
927 927
928 928 //--- THEME ------------------//
929 929
930 930 #logo {
931 931 float: left;
932 932 margin: 9px 0 0 0;
933 933
934 934 .header {
935 935 background-color: transparent;
936 936 }
937 937
938 938 a {
939 939 display: inline-block;
940 940 }
941 941
942 942 img {
943 943 height:30px;
944 944 }
945 945 }
946 946
947 947 .logo-wrapper {
948 948 float:left;
949 949 }
950 950
951 951 .branding{
952 952 float: left;
953 953 padding: 9px 2px;
954 954 line-height: 1em;
955 955 font-size: @navigation-fontsize;
956 956 }
957 957
958 958 img {
959 959 border: none;
960 960 outline: none;
961 961 }
962 962 user-profile-header
963 963 label {
964 964
965 965 input[type="checkbox"] {
966 966 margin-right: 1em;
967 967 }
968 968 input[type="radio"] {
969 969 margin-right: 1em;
970 970 }
971 971 }
972 972
973 973 .flag_status {
974 974 margin: 2px 8px 6px 2px;
975 975 &.under_review {
976 976 .circle(5px, @alert3);
977 977 }
978 978 &.approved {
979 979 .circle(5px, @alert1);
980 980 }
981 981 &.rejected,
982 982 &.forced_closed{
983 983 .circle(5px, @alert2);
984 984 }
985 985 &.not_reviewed {
986 986 .circle(5px, @grey5);
987 987 }
988 988 }
989 989
990 990 .flag_status_comment_box {
991 991 margin: 5px 6px 0px 2px;
992 992 }
993 993 .test_pattern_preview {
994 994 margin: @space 0;
995 995
996 996 p {
997 997 margin-bottom: 0;
998 998 border-bottom: @border-thickness solid @border-default-color;
999 999 color: @grey3;
1000 1000 }
1001 1001
1002 1002 .btn {
1003 1003 margin-bottom: @padding;
1004 1004 }
1005 1005 }
1006 1006 #test_pattern_result {
1007 1007 display: none;
1008 1008 &:extend(pre);
1009 1009 padding: .9em;
1010 1010 color: @grey3;
1011 1011 background-color: @grey7;
1012 1012 border-right: @border-thickness solid @border-default-color;
1013 1013 border-bottom: @border-thickness solid @border-default-color;
1014 1014 border-left: @border-thickness solid @border-default-color;
1015 1015 }
1016 1016
1017 1017 #repo_vcs_settings {
1018 1018 #inherit_overlay_vcs_default {
1019 1019 display: none;
1020 1020 }
1021 1021 #inherit_overlay_vcs_custom {
1022 1022 display: custom;
1023 1023 }
1024 1024 &.inherited {
1025 1025 #inherit_overlay_vcs_default {
1026 1026 display: block;
1027 1027 }
1028 1028 #inherit_overlay_vcs_custom {
1029 1029 display: none;
1030 1030 }
1031 1031 }
1032 1032 }
1033 1033
1034 1034 .issue-tracker-link {
1035 1035 color: @rcblue;
1036 1036 }
1037 1037
1038 1038 // Issue Tracker Table Show/Hide
1039 1039 #repo_issue_tracker {
1040 1040 #inherit_overlay {
1041 1041 display: none;
1042 1042 }
1043 1043 #custom_overlay {
1044 1044 display: custom;
1045 1045 }
1046 1046 &.inherited {
1047 1047 #inherit_overlay {
1048 1048 display: block;
1049 1049 }
1050 1050 #custom_overlay {
1051 1051 display: none;
1052 1052 }
1053 1053 }
1054 1054 }
1055 1055 table.issuetracker {
1056 1056 &.readonly {
1057 1057 tr, td {
1058 1058 color: @grey3;
1059 1059 }
1060 1060 }
1061 1061 .edit {
1062 1062 display: none;
1063 1063 }
1064 1064 .editopen {
1065 1065 .edit {
1066 1066 display: inline;
1067 1067 }
1068 1068 .entry {
1069 1069 display: none;
1070 1070 }
1071 1071 }
1072 1072 tr td.td-action {
1073 1073 min-width: 117px;
1074 1074 }
1075 1075 td input {
1076 1076 max-width: none;
1077 1077 min-width: 30px;
1078 1078 width: 80%;
1079 1079 }
1080 1080 .issuetracker_pref input {
1081 1081 width: 40%;
1082 1082 }
1083 1083 input.edit_issuetracker_update {
1084 1084 margin-right: 0;
1085 1085 width: auto;
1086 1086 }
1087 1087 }
1088 1088
1089 1089 //Permissions Settings
1090 1090 #add_perm {
1091 1091 margin: 0 0 @padding;
1092 1092 cursor: pointer;
1093 1093 }
1094 1094
1095 1095 .perm_ac {
1096 1096 input {
1097 1097 width: 95%;
1098 1098 }
1099 1099 }
1100 1100
1101 1101 .autocomplete-suggestions {
1102 1102 width: auto !important; // overrides autocomplete.js
1103 1103 margin: 0;
1104 1104 border: @border-thickness solid @rcblue;
1105 1105 border-radius: @border-radius;
1106 1106 color: @rcblue;
1107 1107 background-color: white;
1108 1108 }
1109 1109 .autocomplete-selected {
1110 1110 background: #F0F0F0;
1111 1111 }
1112 1112 .ac-container-wrap {
1113 1113 margin: 0;
1114 1114 padding: 8px;
1115 1115 border-bottom: @border-thickness solid @rclightblue;
1116 1116 list-style-type: none;
1117 1117 cursor: pointer;
1118 1118
1119 1119 &:hover {
1120 1120 background-color: @rclightblue;
1121 1121 }
1122 1122
1123 1123 img {
1124 1124 margin-right: 1em;
1125 1125 }
1126 1126
1127 1127 strong {
1128 1128 font-weight: normal;
1129 1129 }
1130 1130 }
1131 1131
1132 1132 // Settings Dropdown
1133 1133 .user-menu .container {
1134 1134 padding: 0 4px;
1135 1135 margin: 0;
1136 1136 }
1137 1137
1138 1138 .user-menu .gravatar {
1139 1139 cursor: pointer;
1140 1140 }
1141 1141
1142 1142 .codeblock {
1143 1143 margin-bottom: @padding;
1144 1144 clear: both;
1145 1145
1146 1146 .stats{
1147 1147 overflow: hidden;
1148 1148 }
1149 1149
1150 1150 .message{
1151 1151 textarea{
1152 1152 margin: 0;
1153 1153 }
1154 1154 }
1155 1155
1156 1156 .code-header {
1157 1157 .stats {
1158 1158 line-height: 2em;
1159 1159
1160 1160 .revision_id {
1161 1161 margin-left: 0;
1162 1162 }
1163 1163 .buttons {
1164 1164 padding-right: 0;
1165 1165 }
1166 1166 }
1167 1167
1168 1168 .item{
1169 1169 margin-right: 0.5em;
1170 1170 }
1171 1171 }
1172 1172
1173 1173 #editor_container{
1174 1174 position: relative;
1175 1175 margin: @padding;
1176 1176 }
1177 1177 }
1178 1178
1179 1179 #file_history_container {
1180 1180 display: none;
1181 1181 }
1182 1182
1183 1183 .file-history-inner {
1184 1184 margin-bottom: 10px;
1185 1185 }
1186 1186
1187 1187 // Pull Requests
1188 1188 .summary-details {
1189 1189 width: 72%;
1190 1190 }
1191 1191 .pr-summary {
1192 1192 border-bottom: @border-thickness solid @grey5;
1193 1193 margin-bottom: @space;
1194 1194 }
1195 1195 .reviewers-title {
1196 1196 width: 25%;
1197 1197 min-width: 200px;
1198 1198 }
1199 1199 .reviewers {
1200 1200 width: 25%;
1201 1201 min-width: 200px;
1202 1202 }
1203 1203 .reviewers ul li {
1204 1204 position: relative;
1205 1205 width: 100%;
1206 1206 margin-bottom: 8px;
1207 1207 }
1208 1208 .reviewers_member {
1209 1209 width: 100%;
1210 1210 overflow: auto;
1211 1211 }
1212 1212 .reviewer_status {
1213 1213 display: inline-block;
1214 1214 vertical-align: top;
1215 1215 width: 7%;
1216 1216 min-width: 20px;
1217 1217 height: 1.2em;
1218 1218 margin-top: 3px;
1219 1219 line-height: 1em;
1220 1220 }
1221 1221
1222 1222 .reviewer_name {
1223 1223 display: inline-block;
1224 1224 max-width: 83%;
1225 1225 padding-right: 20px;
1226 1226 vertical-align: middle;
1227 1227 line-height: 1;
1228 1228
1229 1229 .rc-user {
1230 1230 min-width: 0;
1231 1231 margin: -2px 1em 0 0;
1232 1232 }
1233 1233
1234 1234 .reviewer {
1235 1235 float: left;
1236 1236 }
1237
1238 &.to-delete {
1239 .user,
1240 .reviewer {
1241 text-decoration: line-through;
1242 }
1243 }
1237 1244 }
1238 1245
1239 1246 .reviewer_member_remove {
1240 1247 position: absolute;
1241 1248 right: 0;
1242 1249 top: 0;
1243 1250 width: 16px;
1244 1251 margin-bottom: 10px;
1245 1252 padding: 0;
1246 1253 color: black;
1247 1254 }
1248 1255 .reviewer_member_status {
1249 1256 margin-top: 5px;
1250 1257 }
1251 1258 .pr-summary #summary{
1252 1259 width: 100%;
1253 1260 }
1254 1261 .pr-summary .action_button:hover {
1255 1262 border: 0;
1256 1263 cursor: pointer;
1257 1264 }
1258 1265 .pr-details-title {
1259 1266 padding-bottom: 8px;
1260 1267 border-bottom: @border-thickness solid @grey5;
1261 1268 .action_button {
1262 1269 color: @rcblue;
1263 1270 }
1264 1271 }
1265 1272 .pr-details-content {
1266 1273 margin-top: @textmargin;
1267 1274 margin-bottom: @textmargin;
1268 1275 }
1269 1276 .pr-description {
1270 1277 white-space:pre-wrap;
1271 1278 }
1272 1279 .group_members {
1273 1280 margin-top: 0;
1274 1281 padding: 0;
1275 1282 list-style: outside none none;
1276 1283 }
1277 1284 .reviewer_ac .ac-input {
1278 1285 width: 92%;
1279 1286 margin-bottom: 1em;
1280 1287 }
1281 1288 #update_commits {
1282 1289 float: right;
1283 1290 }
1284 1291 .compare_view_commits tr{
1285 1292 height: 20px;
1286 1293 }
1287 1294 .compare_view_commits td {
1288 1295 vertical-align: top;
1289 1296 padding-top: 10px;
1290 1297 }
1291 1298 .compare_view_commits .author {
1292 1299 margin-left: 5px;
1293 1300 }
1294 1301
1295 1302 .compare_view_files {
1296 1303 width: 100%;
1297 1304
1298 1305 td {
1299 1306 vertical-align: middle;
1300 1307 }
1301 1308 }
1302 1309
1303 1310 .compare_view_filepath {
1304 1311 color: @grey1;
1305 1312 }
1306 1313
1307 1314 .show_more {
1308 1315 display: inline-block;
1309 1316 position: relative;
1310 1317 vertical-align: middle;
1311 1318 width: 4px;
1312 1319 height: @basefontsize;
1313 1320
1314 1321 &:after {
1315 1322 content: "\00A0\25BE";
1316 1323 display: inline-block;
1317 1324 width:10px;
1318 1325 line-height: 5px;
1319 1326 font-size: 12px;
1320 1327 cursor: pointer;
1321 1328 }
1322 1329 }
1323 1330
1324 1331 .journal_more .show_more {
1325 1332 display: inline;
1326 1333
1327 1334 &:after {
1328 1335 content: none;
1329 1336 }
1330 1337 }
1331 1338
1332 1339 .open .show_more:after,
1333 1340 .select2-dropdown-open .show_more:after {
1334 1341 .rotate(180deg);
1335 1342 margin-left: 4px;
1336 1343 }
1337 1344
1338 1345
1339 1346 .compare_view_commits .collapse_commit:after {
1340 1347 cursor: pointer;
1341 1348 content: "\00A0\25B4";
1342 1349 margin-left: -3px;
1343 1350 font-size: 17px;
1344 1351 color: @grey4;
1345 1352 }
1346 1353
1347 1354 .diff_links {
1348 1355 margin-left: 8px;
1349 1356 }
1350 1357
1351 1358 p.ancestor {
1352 1359 margin: @padding 0;
1353 1360 }
1354 1361
1355 1362 .cs_icon_td input[type="checkbox"] {
1356 1363 display: none;
1357 1364 }
1358 1365
1359 1366 .cs_icon_td .expand_file_icon:after {
1360 1367 cursor: pointer;
1361 1368 content: "\00A0\25B6";
1362 1369 font-size: 12px;
1363 1370 color: @grey4;
1364 1371 }
1365 1372
1366 1373 .cs_icon_td .collapse_file_icon:after {
1367 1374 cursor: pointer;
1368 1375 content: "\00A0\25BC";
1369 1376 font-size: 12px;
1370 1377 color: @grey4;
1371 1378 }
1372 1379
1373 1380 /*new binary
1374 1381 NEW_FILENODE = 1
1375 1382 DEL_FILENODE = 2
1376 1383 MOD_FILENODE = 3
1377 1384 RENAMED_FILENODE = 4
1378 1385 COPIED_FILENODE = 5
1379 1386 CHMOD_FILENODE = 6
1380 1387 BIN_FILENODE = 7
1381 1388 */
1382 1389 .cs_files_expand {
1383 1390 font-size: @basefontsize + 5px;
1384 1391 line-height: 1.8em;
1385 1392 float: right;
1386 1393 }
1387 1394
1388 1395 .cs_files_expand span{
1389 1396 color: @rcblue;
1390 1397 cursor: pointer;
1391 1398 }
1392 1399 .cs_files {
1393 1400 clear: both;
1394 1401 padding-bottom: @padding;
1395 1402
1396 1403 .cur_cs {
1397 1404 margin: 10px 2px;
1398 1405 font-weight: bold;
1399 1406 }
1400 1407
1401 1408 .node {
1402 1409 float: left;
1403 1410 }
1404 1411
1405 1412 .changes {
1406 1413 float: right;
1407 1414 color: white;
1408 1415 font-size: @basefontsize - 4px;
1409 1416 margin-top: 4px;
1410 1417 opacity: 0.6;
1411 1418 filter: Alpha(opacity=60); /* IE8 and earlier */
1412 1419
1413 1420 .added {
1414 1421 background-color: @alert1;
1415 1422 float: left;
1416 1423 text-align: center;
1417 1424 }
1418 1425
1419 1426 .deleted {
1420 1427 background-color: @alert2;
1421 1428 float: left;
1422 1429 text-align: center;
1423 1430 }
1424 1431
1425 1432 .bin {
1426 1433 background-color: @alert1;
1427 1434 text-align: center;
1428 1435 }
1429 1436
1430 1437 /*new binary*/
1431 1438 .bin.bin1 {
1432 1439 background-color: @alert1;
1433 1440 text-align: center;
1434 1441 }
1435 1442
1436 1443 /*deleted binary*/
1437 1444 .bin.bin2 {
1438 1445 background-color: @alert2;
1439 1446 text-align: center;
1440 1447 }
1441 1448
1442 1449 /*mod binary*/
1443 1450 .bin.bin3 {
1444 1451 background-color: @grey2;
1445 1452 text-align: center;
1446 1453 }
1447 1454
1448 1455 /*rename file*/
1449 1456 .bin.bin4 {
1450 1457 background-color: @alert4;
1451 1458 text-align: center;
1452 1459 }
1453 1460
1454 1461 /*copied file*/
1455 1462 .bin.bin5 {
1456 1463 background-color: @alert4;
1457 1464 text-align: center;
1458 1465 }
1459 1466
1460 1467 /*chmod file*/
1461 1468 .bin.bin6 {
1462 1469 background-color: @grey2;
1463 1470 text-align: center;
1464 1471 }
1465 1472 }
1466 1473 }
1467 1474
1468 1475 .cs_files .cs_added, .cs_files .cs_A,
1469 1476 .cs_files .cs_added, .cs_files .cs_M,
1470 1477 .cs_files .cs_added, .cs_files .cs_D {
1471 1478 height: 16px;
1472 1479 padding-right: 10px;
1473 1480 margin-top: 7px;
1474 1481 text-align: left;
1475 1482 }
1476 1483
1477 1484 .cs_icon_td {
1478 1485 min-width: 16px;
1479 1486 width: 16px;
1480 1487 }
1481 1488
1482 1489 .pull-request-merge {
1483 1490 padding: 10px 0;
1484 1491 margin-top: 10px;
1485 1492 margin-bottom: 20px;
1486 1493 }
1487 1494
1488 1495 .pull-request-merge .pull-request-wrap {
1489 1496 height: 25px;
1490 1497 padding: 5px 0;
1491 1498 }
1492 1499
1493 1500 .pull-request-merge span {
1494 1501 margin-right: 10px;
1495 1502 }
1496 1503 #close_pull_request {
1497 1504 margin-right: 0px;
1498 1505 }
1499 1506
1500 1507 .empty_data {
1501 1508 color: @grey4;
1502 1509 }
1503 1510
1504 1511 #changeset_compare_view_content {
1505 1512 margin-bottom: @space;
1506 1513 clear: both;
1507 1514 width: 100%;
1508 1515 box-sizing: border-box;
1509 1516 .border-radius(@border-radius);
1510 1517
1511 1518 .help-block {
1512 1519 margin: @padding 0;
1513 1520 color: @text-color;
1514 1521 }
1515 1522
1516 1523 .empty_data {
1517 1524 margin: @padding 0;
1518 1525 }
1519 1526
1520 1527 .alert {
1521 1528 margin-bottom: @space;
1522 1529 }
1523 1530 }
1524 1531
1525 1532 .table_disp {
1526 1533 .status {
1527 1534 width: auto;
1528 1535
1529 1536 .flag_status {
1530 1537 float: left;
1531 1538 }
1532 1539 }
1533 1540 }
1534 1541
1535 1542 .status_box_menu {
1536 1543 margin: 0;
1537 1544 }
1538 1545
1539 1546 .notification-table{
1540 1547 margin-bottom: @space;
1541 1548 display: table;
1542 1549 width: 100%;
1543 1550
1544 1551 .container{
1545 1552 display: table-row;
1546 1553
1547 1554 .notification-header{
1548 1555 border-bottom: @border-thickness solid @border-default-color;
1549 1556 }
1550 1557
1551 1558 .notification-subject{
1552 1559 display: table-cell;
1553 1560 }
1554 1561 }
1555 1562 }
1556 1563
1557 1564 // Notifications
1558 1565 .notification-header{
1559 1566 display: table;
1560 1567 width: 100%;
1561 1568 padding: floor(@basefontsize/2) 0;
1562 1569 line-height: 1em;
1563 1570
1564 1571 .desc, .delete-notifications, .read-notifications{
1565 1572 display: table-cell;
1566 1573 text-align: left;
1567 1574 }
1568 1575
1569 1576 .desc{
1570 1577 width: 1163px;
1571 1578 }
1572 1579
1573 1580 .delete-notifications, .read-notifications{
1574 1581 width: 35px;
1575 1582 min-width: 35px; //fixes when only one button is displayed
1576 1583 }
1577 1584 }
1578 1585
1579 1586 .notification-body {
1580 1587 .markdown-block,
1581 1588 .rst-block {
1582 1589 padding: @padding 0;
1583 1590 }
1584 1591
1585 1592 .notification-subject {
1586 1593 padding: @textmargin 0;
1587 1594 border-bottom: @border-thickness solid @border-default-color;
1588 1595 }
1589 1596 }
1590 1597
1591 1598
1592 1599 .notifications_buttons{
1593 1600 float: right;
1594 1601 }
1595 1602
1596 1603 // Repositories
1597 1604
1598 1605 #summary.fields{
1599 1606 display: table;
1600 1607
1601 1608 .field{
1602 1609 display: table-row;
1603 1610
1604 1611 .label-summary{
1605 1612 display: table-cell;
1606 1613 min-width: @label-summary-minwidth;
1607 1614 padding-top: @padding/2;
1608 1615 padding-bottom: @padding/2;
1609 1616 padding-right: @padding/2;
1610 1617 }
1611 1618
1612 1619 .input{
1613 1620 display: table-cell;
1614 1621 padding: @padding/2;
1615 1622
1616 1623 input{
1617 1624 min-width: 29em;
1618 1625 padding: @padding/4;
1619 1626 }
1620 1627 }
1621 1628 .statistics, .downloads{
1622 1629 .disabled{
1623 1630 color: @grey4;
1624 1631 }
1625 1632 }
1626 1633 }
1627 1634 }
1628 1635
1629 1636 #summary{
1630 1637 width: 70%;
1631 1638 }
1632 1639
1633 1640
1634 1641 // Journal
1635 1642 .journal.title {
1636 1643 h5 {
1637 1644 float: left;
1638 1645 margin: 0;
1639 1646 width: 70%;
1640 1647 }
1641 1648
1642 1649 ul {
1643 1650 float: right;
1644 1651 display: inline-block;
1645 1652 margin: 0;
1646 1653 width: 30%;
1647 1654 text-align: right;
1648 1655
1649 1656 li {
1650 1657 display: inline;
1651 1658 font-size: @journal-fontsize;
1652 1659 line-height: 1em;
1653 1660
1654 1661 &:before { content: none; }
1655 1662 }
1656 1663 }
1657 1664 }
1658 1665
1659 1666 .filterexample {
1660 1667 position: absolute;
1661 1668 top: 95px;
1662 1669 left: @contentpadding;
1663 1670 color: @rcblue;
1664 1671 font-size: 11px;
1665 1672 font-family: @text-regular;
1666 1673 cursor: help;
1667 1674
1668 1675 &:hover {
1669 1676 color: @rcdarkblue;
1670 1677 }
1671 1678
1672 1679 @media (max-width:768px) {
1673 1680 position: relative;
1674 1681 top: auto;
1675 1682 left: auto;
1676 1683 display: block;
1677 1684 }
1678 1685 }
1679 1686
1680 1687
1681 1688 #journal{
1682 1689 margin-bottom: @space;
1683 1690
1684 1691 .journal_day{
1685 1692 margin-bottom: @textmargin/2;
1686 1693 padding-bottom: @textmargin/2;
1687 1694 font-size: @journal-fontsize;
1688 1695 border-bottom: @border-thickness solid @border-default-color;
1689 1696 }
1690 1697
1691 1698 .journal_container{
1692 1699 margin-bottom: @space;
1693 1700
1694 1701 .journal_user{
1695 1702 display: inline-block;
1696 1703 }
1697 1704 .journal_action_container{
1698 1705 display: block;
1699 1706 margin-top: @textmargin;
1700 1707
1701 1708 div{
1702 1709 display: inline;
1703 1710 }
1704 1711
1705 1712 div.journal_action_params{
1706 1713 display: block;
1707 1714 }
1708 1715
1709 1716 div.journal_repo:after{
1710 1717 content: "\A";
1711 1718 white-space: pre;
1712 1719 }
1713 1720
1714 1721 div.date{
1715 1722 display: block;
1716 1723 margin-bottom: @textmargin;
1717 1724 }
1718 1725 }
1719 1726 }
1720 1727 }
1721 1728
1722 1729 // Files
1723 1730 .edit-file-title {
1724 1731 border-bottom: @border-thickness solid @border-default-color;
1725 1732
1726 1733 .breadcrumbs {
1727 1734 margin-bottom: 0;
1728 1735 }
1729 1736 }
1730 1737
1731 1738 .edit-file-fieldset {
1732 1739 margin-top: @sidebarpadding;
1733 1740
1734 1741 .fieldset {
1735 1742 .left-label {
1736 1743 width: 13%;
1737 1744 }
1738 1745 .right-content {
1739 1746 width: 87%;
1740 1747 max-width: 100%;
1741 1748 }
1742 1749 .filename-label {
1743 1750 margin-top: 13px;
1744 1751 }
1745 1752 .commit-message-label {
1746 1753 margin-top: 4px;
1747 1754 }
1748 1755 .file-upload-input {
1749 1756 input {
1750 1757 display: none;
1751 1758 }
1752 1759 }
1753 1760 p {
1754 1761 margin-top: 5px;
1755 1762 }
1756 1763
1757 1764 }
1758 1765 .custom-path-link {
1759 1766 margin-left: 5px;
1760 1767 }
1761 1768 #commit {
1762 1769 resize: vertical;
1763 1770 }
1764 1771 }
1765 1772
1766 1773 .delete-file-preview {
1767 1774 max-height: 250px;
1768 1775 }
1769 1776
1770 1777 .new-file,
1771 1778 #filter_activate,
1772 1779 #filter_deactivate {
1773 1780 float: left;
1774 1781 margin: 0 0 0 15px;
1775 1782 }
1776 1783
1777 1784 h3.files_location{
1778 1785 line-height: 2.4em;
1779 1786 }
1780 1787
1781 1788 .browser-nav {
1782 1789 display: table;
1783 1790 margin-bottom: @space;
1784 1791
1785 1792
1786 1793 .info_box {
1787 1794 display: inline-table;
1788 1795 height: 2.5em;
1789 1796
1790 1797 .browser-cur-rev, .info_box_elem {
1791 1798 display: table-cell;
1792 1799 vertical-align: middle;
1793 1800 }
1794 1801
1795 1802 .info_box_elem {
1796 1803 border-top: @border-thickness solid @rcblue;
1797 1804 border-bottom: @border-thickness solid @rcblue;
1798 1805
1799 1806 #at_rev, a {
1800 1807 padding: 0.6em 0.9em;
1801 1808 margin: 0;
1802 1809 .box-shadow(none);
1803 1810 border: 0;
1804 1811 height: 12px;
1805 1812 }
1806 1813
1807 1814 input#at_rev {
1808 1815 max-width: 50px;
1809 1816 text-align: right;
1810 1817 }
1811 1818
1812 1819 &.previous {
1813 1820 border: @border-thickness solid @rcblue;
1814 1821 .disabled {
1815 1822 color: @grey4;
1816 1823 cursor: not-allowed;
1817 1824 }
1818 1825 }
1819 1826
1820 1827 &.next {
1821 1828 border: @border-thickness solid @rcblue;
1822 1829 .disabled {
1823 1830 color: @grey4;
1824 1831 cursor: not-allowed;
1825 1832 }
1826 1833 }
1827 1834 }
1828 1835
1829 1836 .browser-cur-rev {
1830 1837
1831 1838 span{
1832 1839 margin: 0;
1833 1840 color: @rcblue;
1834 1841 height: 12px;
1835 1842 display: inline-block;
1836 1843 padding: 0.7em 1em ;
1837 1844 border: @border-thickness solid @rcblue;
1838 1845 margin-right: @padding;
1839 1846 }
1840 1847 }
1841 1848 }
1842 1849
1843 1850 .search_activate {
1844 1851 display: table-cell;
1845 1852 vertical-align: middle;
1846 1853
1847 1854 input, label{
1848 1855 margin: 0;
1849 1856 padding: 0;
1850 1857 }
1851 1858
1852 1859 input{
1853 1860 margin-left: @textmargin;
1854 1861 }
1855 1862
1856 1863 }
1857 1864 }
1858 1865
1859 1866 .file_author{
1860 1867 margin-bottom: @padding;
1861 1868
1862 1869 div{
1863 1870 display: inline-block;
1864 1871 margin-right: 0.5em;
1865 1872 }
1866 1873 }
1867 1874
1868 1875 .browser-cur-rev{
1869 1876 margin-bottom: @textmargin;
1870 1877 }
1871 1878
1872 1879 #node_filter_box_loading{
1873 1880 .info_text;
1874 1881 }
1875 1882
1876 1883 .browser-search {
1877 1884 margin: -25px 0px 5px 0px;
1878 1885 }
1879 1886
1880 1887 .node-filter {
1881 1888 font-size: @repo-title-fontsize;
1882 1889 padding: 4px 0px 0px 0px;
1883 1890
1884 1891 .node-filter-path {
1885 1892 float: left;
1886 1893 color: @grey4;
1887 1894 }
1888 1895 .node-filter-input {
1889 1896 float: left;
1890 1897 margin: -2px 0px 0px 2px;
1891 1898 input {
1892 1899 padding: 2px;
1893 1900 border: none;
1894 1901 font-size: @repo-title-fontsize;
1895 1902 }
1896 1903 }
1897 1904 }
1898 1905
1899 1906
1900 1907 .browser-result{
1901 1908 td a{
1902 1909 margin-left: 0.5em;
1903 1910 display: inline-block;
1904 1911
1905 1912 em{
1906 1913 font-family: @text-bold;
1907 1914 }
1908 1915 }
1909 1916 }
1910 1917
1911 1918 .browser-highlight{
1912 1919 background-color: @grey5-alpha;
1913 1920 }
1914 1921
1915 1922
1916 1923 // Search
1917 1924
1918 1925 .search-form{
1919 1926 #q {
1920 1927 width: @search-form-width;
1921 1928 }
1922 1929 .fields{
1923 1930 margin: 0 0 @space;
1924 1931 }
1925 1932
1926 1933 label{
1927 1934 display: inline-block;
1928 1935 margin-right: @textmargin;
1929 1936 padding-top: 0.25em;
1930 1937 }
1931 1938
1932 1939
1933 1940 .results{
1934 1941 clear: both;
1935 1942 margin: 0 0 @padding;
1936 1943 }
1937 1944 }
1938 1945
1939 1946 div.search-feedback-items {
1940 1947 display: inline-block;
1941 1948 padding:0px 0px 0px 96px;
1942 1949 }
1943 1950
1944 1951 div.search-code-body {
1945 1952 background-color: #ffffff; padding: 5px 0 5px 10px;
1946 1953 pre {
1947 1954 .match { background-color: #faffa6;}
1948 1955 .break { display: block; width: 100%; background-color: #DDE7EF; color: #747474; }
1949 1956 }
1950 1957 }
1951 1958
1952 1959 .expand_commit.search {
1953 1960 .show_more.open {
1954 1961 height: auto;
1955 1962 max-height: none;
1956 1963 }
1957 1964 }
1958 1965
1959 1966 .search-results {
1960 1967
1961 1968 h2 {
1962 1969 margin-bottom: 0;
1963 1970 }
1964 1971 .codeblock {
1965 1972 border: none;
1966 1973 background: transparent;
1967 1974 }
1968 1975
1969 1976 .codeblock-header {
1970 1977 border: none;
1971 1978 background: transparent;
1972 1979 }
1973 1980
1974 1981 .code-body {
1975 1982 border: @border-thickness solid @border-default-color;
1976 1983 .border-radius(@border-radius);
1977 1984 }
1978 1985
1979 1986 .td-commit {
1980 1987 &:extend(pre);
1981 1988 border-bottom: @border-thickness solid @border-default-color;
1982 1989 }
1983 1990
1984 1991 .message {
1985 1992 height: auto;
1986 1993 max-width: 350px;
1987 1994 white-space: normal;
1988 1995 text-overflow: initial;
1989 1996 overflow: visible;
1990 1997
1991 1998 .match { background-color: #faffa6;}
1992 1999 .break { background-color: #DDE7EF; width: 100%; color: #747474; display: block; }
1993 2000 }
1994 2001
1995 2002 }
1996 2003
1997 2004 table.rctable td.td-search-results div {
1998 2005 max-width: 100%;
1999 2006 }
2000 2007
2001 2008 #tip-box, .tip-box{
2002 2009 padding: @menupadding/2;
2003 2010 display: block;
2004 2011 border: @border-thickness solid @border-highlight-color;
2005 2012 .border-radius(@border-radius);
2006 2013 background-color: white;
2007 2014 z-index: 99;
2008 2015 white-space: pre-wrap;
2009 2016 }
2010 2017
2011 2018 #linktt {
2012 2019 width: 79px;
2013 2020 }
2014 2021
2015 2022 #help_kb .modal-content{
2016 2023 max-width: 750px;
2017 2024 margin: 10% auto;
2018 2025
2019 2026 table{
2020 2027 td,th{
2021 2028 border-bottom: none;
2022 2029 line-height: 2.5em;
2023 2030 }
2024 2031 th{
2025 2032 padding-bottom: @textmargin/2;
2026 2033 }
2027 2034 td.keys{
2028 2035 text-align: center;
2029 2036 }
2030 2037 }
2031 2038
2032 2039 .block-left{
2033 2040 width: 45%;
2034 2041 margin-right: 5%;
2035 2042 }
2036 2043 .modal-footer{
2037 2044 clear: both;
2038 2045 }
2039 2046 .key.tag{
2040 2047 padding: 0.5em;
2041 2048 background-color: @rcblue;
2042 2049 color: white;
2043 2050 border-color: @rcblue;
2044 2051 .box-shadow(none);
2045 2052 }
2046 2053 }
2047 2054
2048 2055
2049 2056
2050 2057 //--- IMPORTS FOR REFACTORED STYLES ------------------//
2051 2058
2052 2059 @import 'statistics-graph';
2053 2060 @import 'tables';
2054 2061 @import 'forms';
2055 2062 @import 'diff';
2056 2063 @import 'summary';
2057 2064 @import 'navigation';
2058 2065
2059 2066 //--- SHOW/HIDE SECTIONS --//
2060 2067
2061 2068 .btn-collapse {
2062 2069 float: right;
2063 2070 text-align: right;
2064 2071 font-family: @text-light;
2065 2072 font-size: @basefontsize;
2066 2073 cursor: pointer;
2067 2074 border: none;
2068 2075 color: @rcblue;
2069 2076 }
2070 2077
2071 2078 table.rctable,
2072 2079 table.dataTable {
2073 2080 .btn-collapse {
2074 2081 float: right;
2075 2082 text-align: right;
2076 2083 }
2077 2084 }
2078 2085
2079 2086
2080 2087 // TODO: johbo: Fix for IE10, this avoids that we see a border
2081 2088 // and padding around checkboxes and radio boxes. Move to the right place,
2082 2089 // or better: Remove this once we did the form refactoring.
2083 2090 input[type=checkbox],
2084 2091 input[type=radio] {
2085 2092 padding: 0;
2086 2093 border: none;
2087 2094 }
@@ -1,206 +1,205 b''
1 1 // # Copyright (C) 2010-2016 RhodeCode GmbH
2 2 // #
3 3 // # This program is free software: you can redistribute it and/or modify
4 4 // # it under the terms of the GNU Affero General Public License, version 3
5 5 // # (only), as published by the Free Software Foundation.
6 6 // #
7 7 // # This program is distributed in the hope that it will be useful,
8 8 // # but WITHOUT ANY WARRANTY; without even the implied warranty of
9 9 // # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 10 // # GNU General Public License for more details.
11 11 // #
12 12 // # You should have received a copy of the GNU Affero General Public License
13 13 // # along with this program. If not, see <http://www.gnu.org/licenses/>.
14 14 // #
15 15 // # This program is dual-licensed. If you wish to learn more about the
16 16 // # RhodeCode Enterprise Edition, including its added features, Support services,
17 17 // # and proprietary license terms, please see https://rhodecode.com/licenses/
18 18
19 19 /**
20 20 * Pull request reviewers
21 21 */
22 22 var removeReviewMember = function(reviewer_id, mark_delete){
23 23 var reviewer = $('#reviewer_{0}'.format(reviewer_id));
24 24
25 25 if(typeof(mark_delete) === undefined){
26 26 mark_delete = false;
27 27 }
28 28
29 29 if(mark_delete === true){
30 30 if (reviewer){
31 31 // mark as to-remove
32 32 var obj = $('#reviewer_{0}_name'.format(reviewer_id));
33 obj.css("text-decoration", "line-through");
34 33 obj.addClass('to-delete');
35 34 // now delete the input
36 35 $('#reviewer_{0}_input'.format(reviewer_id)).remove();
37 36 }
38 37 }
39 38 else{
40 39 $('#reviewer_{0}'.format(reviewer_id)).remove();
41 40 }
42 41 };
43 42
44 43 var addReviewMember = function(id,fname,lname,nname,gravatar_link){
45 44 var members = $('#review_members').get(0);
46 45 var tmpl = '<li id="reviewer_{2}">'+
47 46 '<div class="reviewer_status">'+
48 47 '<div class="flag_status not_reviewed pull-left reviewer_member_status"></div>'+
49 48 '</div>'+
50 49 '<img alt="gravatar" class="gravatar" src="{0}"/>'+
51 50 '<span class="reviewer_name user">{1}</span>'+
52 51 '<input type="hidden" value="{2}" name="review_members" />'+
53 52 '<div class="reviewer_member_remove action_button" onclick="removeReviewMember({2})">' +
54 53 '<i class="icon-remove-sign"></i>'+
55 54 '</div>'+
56 55 '</div>'+
57 56 '</li>' ;
58 57 var displayname = "{0} ({1} {2})".format(
59 58 nname, escapeHtml(fname), escapeHtml(lname));
60 59 var element = tmpl.format(gravatar_link,displayname,id);
61 60 // check if we don't have this ID already in
62 61 var ids = [];
63 62 var _els = $('#review_members li').toArray();
64 63 for (el in _els){
65 64 ids.push(_els[el].id)
66 65 }
67 66 if(ids.indexOf('reviewer_'+id) == -1){
68 67 // only add if it's not there
69 68 members.innerHTML += element;
70 69 }
71 70
72 71 };
73 72
74 73 var _updatePullRequest = function(repo_name, pull_request_id, postData) {
75 74 var url = pyroutes.url(
76 75 'pullrequest_update',
77 76 {"repo_name": repo_name, "pull_request_id": pull_request_id});
78 77 postData.csrf_token = CSRF_TOKEN;
79 78 var success = function(o) {
80 79 window.location.reload();
81 80 };
82 81 ajaxPOST(url, postData, success);
83 82 };
84 83
85 84 var updateReviewers = function(reviewers_ids, repo_name, pull_request_id){
86 85 if (reviewers_ids === undefined){
87 86 var reviewers_ids = [];
88 87 var ids = $('#review_members input').toArray();
89 88 for(var i=0; i<ids.length;i++){
90 89 var id = ids[i].value
91 90 reviewers_ids.push(id);
92 91 }
93 92 }
94 93 var postData = {
95 94 '_method':'put',
96 95 'reviewers_ids': reviewers_ids};
97 96 _updatePullRequest(repo_name, pull_request_id, postData);
98 97 };
99 98
100 99 /**
101 100 * PULL REQUEST reject & close
102 101 */
103 102 var closePullRequest = function(repo_name, pull_request_id) {
104 103 var postData = {
105 104 '_method': 'put',
106 105 'close_pull_request': true};
107 106 _updatePullRequest(repo_name, pull_request_id, postData);
108 107 };
109 108
110 109 /**
111 110 * PULL REQUEST update commits
112 111 */
113 112 var updateCommits = function(repo_name, pull_request_id) {
114 113 var postData = {
115 114 '_method': 'put',
116 115 'update_commits': true};
117 116 _updatePullRequest(repo_name, pull_request_id, postData);
118 117 };
119 118
120 119
121 120 /**
122 121 * PULL REQUEST edit info
123 122 */
124 123 var editPullRequest = function(repo_name, pull_request_id, title, description) {
125 124 var url = pyroutes.url(
126 125 'pullrequest_update',
127 126 {"repo_name": repo_name, "pull_request_id": pull_request_id});
128 127
129 128 var postData = {
130 129 '_method': 'put',
131 130 'title': title,
132 131 'description': description,
133 132 'edit_pull_request': true,
134 133 'csrf_token': CSRF_TOKEN
135 134 };
136 135 var success = function(o) {
137 136 window.location.reload();
138 137 };
139 138 ajaxPOST(url, postData, success);
140 139 };
141 140
142 141 var initPullRequestsCodeMirror = function (textAreaId) {
143 142 var ta = $(textAreaId).get(0);
144 143 var initialHeight = '100px';
145 144
146 145 // default options
147 146 var codeMirrorOptions = {
148 147 mode: "text",
149 148 lineNumbers: false,
150 149 indentUnit: 4,
151 150 theme: 'rc-input'
152 151 };
153 152
154 153 var codeMirrorInstance = CodeMirror.fromTextArea(ta, codeMirrorOptions);
155 154 // marker for manually set description
156 155 codeMirrorInstance._userDefinedDesc = false;
157 156 codeMirrorInstance.setSize(null, initialHeight);
158 157 codeMirrorInstance.on("change", function(instance, changeObj) {
159 158 var height = initialHeight;
160 159 var lines = instance.lineCount();
161 160 if (lines > 6 && lines < 20) {
162 161 height = "auto"
163 162 }
164 163 else if (lines >= 20) {
165 164 height = 20 * 15;
166 165 }
167 166 instance.setSize(null, height);
168 167
169 168 // detect if the change was trigger by auto desc, or user input
170 169 changeOrigin = changeObj.origin;
171 170
172 171 if (changeOrigin === "setValue") {
173 172 cmLog.debug('Change triggered by setValue');
174 173 }
175 174 else {
176 175 cmLog.debug('user triggered change !');
177 176 // set special marker to indicate user has created an input.
178 177 instance._userDefinedDesc = true;
179 178 }
180 179
181 180 });
182 181
183 182 return codeMirrorInstance
184 183 };
185 184
186 185 /**
187 186 * Reviewer autocomplete
188 187 */
189 188 var ReviewerAutoComplete = function(input_id) {
190 189 $('#'+input_id).autocomplete({
191 190 serviceUrl: pyroutes.url('user_autocomplete_data'),
192 191 minChars:2,
193 192 maxHeight:400,
194 193 deferRequestBy: 300, //miliseconds
195 194 showNoSuggestionNotice: true,
196 195 tabDisabled: true,
197 196 autoSelectFirst: true,
198 197 formatResult: autocompleteFormatResult,
199 198 lookupFilter: autocompleteFilterResult,
200 199 onSelect: function(suggestion, data){
201 200 addReviewMember(data.id, data.first_name, data.last_name,
202 201 data.username, data.icon_link);
203 202 $('#'+input_id).val('');
204 203 }
205 204 });
206 205 };
General Comments 0
You need to be logged in to leave comments. Login now