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