projects.scss 19 KB
Newer Older
Andrey's avatar
Andrey committed
1 2
.alert_holder {
  margin: -16px;
3

Andrey's avatar
Andrey committed
4
  .alert-link {
5
    font-weight: $gl-font-weight-normal;
Andrey's avatar
Andrey committed
6 7
  }
}
8

9
.new_project,
10 11
.edit-project,
.import-project {
12
  .form-text.text-muted {
13 14
    margin-bottom: 10px;
  }
15

16 17
  .project-path .form-control {
    border-radius: $border-radius-base;
18
  }
19

20 21
  .input-group {
    display: flex;
22

23 24 25 26 27 28 29 30 31 32 33
    .select2-container {
      display: unset;
      max-width: unset;
      width: unset !important;
      flex-grow: 1;
    }

    > div {
      &:last-child {
        padding-right: 0;
      }
34 35
    }
  }
36

Clement Ho's avatar
Clement Ho committed
37
  @include media-breakpoint-down(xs) {
38 39 40 41 42
    .input-group > div {
      &:last-child {
        margin-bottom: 0;
      }
    }
43

44 45 46 47 48
    fieldset > .form-group:first-child {
      padding-right: 0;
    }
  }

49 50
  .input-group-prepend,
  .input-group-append {
51 52 53 54 55 56
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: unset;
    width: unset;
    max-width: 50%;
    text-align: left;
57

58 59 60
    &.static-namespace {
      height: 35px;
      border-radius: 3px;
61
      border: 1px solid $border-color;
62 63
      max-width: 100%;
      flex-grow: 1;
64
    }
65

66
    + .select2 a,
67
    + .btn-default {
68
      border-radius: 0 $border-radius-base $border-radius-base 0;
69
    }
70
  }
71
}
randx's avatar
randx committed
72

73 74 75 76 77 78 79 80 81 82 83 84 85
.toggle-wrapper {
  margin-top: 5px;
}

.project-feature-row > .toggle-wrapper {
  margin: 10px 0;
}

.project-visibility-setting,
.project-feature-settings {
  border: 1px solid $border-color;
  padding: 10px 32px;

Clement Ho's avatar
Clement Ho committed
86
  @include media-breakpoint-down(xs) {
87 88 89 90 91 92 93 94 95 96
    padding: 10px 20px;
  }
}

.project-visibility-setting .request-access {
  line-height: 2;
}

.project-feature-settings {
  background: $gray-lighter;
97
  border-top: 0;
98 99 100 101 102 103 104
  margin-bottom: 16px;
}

.project-repo-select {
  transition: background 2s ease-out;

  &:disabled {
105 106
    opacity: 0.5;
    pointer-events: none;
107 108 109 110 111 112 113 114 115 116 117
  }

  .highlight-changes & {
    background: $highlight-changes-color;
    transition: none;
  }
}

.project-feature-controls {
  display: flex;
  align-items: center;
118
  margin: $gl-padding-8 0;
119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137
  max-width: 432px;

  .toggle-wrapper {
    flex: 0;
    margin-right: 10px;
  }

  .select-wrapper {
    flex: 1;
  }
}

.project-feature-setting-group {
  padding-left: 32px;

  .project-feature-controls {
    max-width: 400px;
  }

Clement Ho's avatar
Clement Ho committed
138
  @include media-breakpoint-down(xs) {
139 140 141 142
    padding-left: 20px;
  }
}

143 144
.project-home-panel,
.group-home-panel {
Phil Hughes's avatar
Phil Hughes committed
145 146
  padding-top: 24px;
  padding-bottom: 24px;
147
  border-bottom: 1px solid $border-color;
Phil Hughes's avatar
Phil Hughes committed
148

149
  .group-avatar {
Phil Hughes's avatar
Phil Hughes committed
150
    float: none;
151
    margin: 0 auto;
152 153 154 155

    &.identicon {
      border-radius: 50%;
    }
156 157
  }

158 159
  .project-title,
  .group-title {
Phil Hughes's avatar
Phil Hughes committed
160 161 162
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 24px;
163
    font-weight: $gl-font-weight-normal;
Phil Hughes's avatar
Phil Hughes committed
164
    line-height: 1;
165
    word-wrap: break-word;
166

Phil Hughes's avatar
Phil Hughes committed
167 168 169 170
    .fa {
      margin-left: 2px;
      font-size: 12px;
      vertical-align: middle;
171
    }
172
  }
173

174
  .group-home-desc {
Phil Hughes's avatar
Phil Hughes committed
175 176
    margin-left: auto;
    margin-right: auto;
177
    margin-bottom: 0;
178
    max-width: 700px;
179

Phil Hughes's avatar
Phil Hughes committed
180 181
    > p {
      margin-bottom: 0;
182
    }
183
  }
184

185
  .notifications-btn {
186 187
    .fa-bell,
    .fa-spinner {
188 189 190 191 192 193
      margin-right: 6px;
    }

    .fa-angle-down {
      margin-left: 6px;
    }
194
  }
Phil Hughes's avatar
Phil Hughes committed
195
}
196

197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252
.project-home-panel {
  padding-top: $gl-padding-8;
  padding-bottom: $gl-padding-24;

  .project-title-row {
    margin-right: $gl-padding-8;
  }

  .project-avatar {
    width: $project-title-row-height;
    height: $project-title-row-height;
    flex-shrink: 0;
    flex-basis: $project-title-row-height;
    margin: 0 $gl-padding-8 0 0;
  }

  .project-title {
    font-size: 20px;
    line-height: $project-title-row-height;
    font-weight: bold;
  }

  .project-metadata {
    font-weight: normal;
    font-size: 14px;
    line-height: $gl-btn-line-height;
    color: $gl-text-color-secondary;

    .icon {
      margin-right: $gl-padding-4;
      font-size: 16px;
    }

    .project-visibility,
    .project-license,
    .project-tag-list {
      margin-right: $gl-padding-8;
    }

    .project-license {
      .btn {
        line-height: 0;
        border-width: 0;
      }
    }

    .project-tag-list,
    .project-license {
      .icon {
        position: relative;
        top: 2px;
      }
    }
  }
}

Filipa Lacerda's avatar
Filipa Lacerda committed
253 254
.nav > .project-repo-buttons {
  margin-top: 0;
255
}
Jacob Schatz's avatar
Jacob Schatz committed
256

257 258
.project-repo-buttons,
.group-buttons {
Phil Hughes's avatar
Phil Hughes committed
259
  .btn {
260 261 262 263
    &:last-child {
      margin-left: 0;
    }

Phil Hughes's avatar
Phil Hughes committed
264 265
    .fa {
      color: $layout-link-gray;
266 267
    }

268
    svg {
269
      fill: $layout-link-gray;
270 271
    }

Phil Hughes's avatar
Phil Hughes committed
272 273
    .fa-caret-down {
      margin-left: 3px;
274 275 276 277

      &.dropdown-btn-icon {
        margin-left: 0;
      }
278
    }
Phil Hughes's avatar
Phil Hughes committed
279
  }
280

281
  .project-action-button {
282
    margin: $gl-padding $gl-padding-8 0 0;
283
    vertical-align: top;
Phil Hughes's avatar
Phil Hughes committed
284
  }
285

286
  .notification-dropdown .dropdown-menu {
Clement Ho's avatar
Clement Ho committed
287
    @extend .dropdown-menu-right;
288 289
  }

290
  .download-button {
Clement Ho's avatar
Clement Ho committed
291
    @include media-breakpoint-down(md) {
292 293 294 295
      margin-left: 0;
    }
  }

Phil Hughes's avatar
Phil Hughes committed
296 297 298
  .count-buttons {
    display: inline-block;
    vertical-align: top;
299
    margin-top: $gl-padding;
300

301 302
    .count-badge {
      height: $input-height;
Phil Hughes's avatar
Phil Hughes committed
303

304 305 306
      .icon {
        top: -1px;
      }
Jacob Schatz's avatar
Jacob Schatz committed
307
    }
308

309 310 311 312 313
    .count-badge-count,
    .count-badge-button {
      border: 1px solid $border-color;
      line-height: 1;
    }
Phil Hughes's avatar
Phil Hughes committed
314

315 316 317 318
    .count,
    .count-badge-button {
      color: $gl-text-color;
    }
319

320 321 322 323 324
    .count-badge-count {
      padding: 0 12px;
      border-right: 0;
      border-radius: $border-radius-base 0 0 $border-radius-base;
      background: $gray-light;
325
    }
326

327 328 329 330
    .count-badge-button {
      border-radius: 0 $border-radius-base $border-radius-base 0;
    }
  }
Phil Hughes's avatar
Phil Hughes committed
331

332 333 334
  .project-clone-holder {
    display: inline-block;
    margin: $gl-padding $gl-padding-8 0 0;
335

336 337
    input {
      height: $input-height;
338 339
    }
  }
340 341 342 343

  .clone-dropdown-btn {
    background-color: $white-light;
  }
344 345 346

  .clone-options-dropdown {
    min-width: 240px;
347 348 349 350

    .dropdown-menu-inner-content {
      min-width: 320px;
    }
351
  }
352 353 354 355 356 357 358 359

  .mobile-git-clone {
    margin-top: $gl-padding-8;

    .dropdown-menu-inner-content {
      @extend .monospace;
    }
  }
360 361
}

362 363
.split-one {
  display: inline-table;
Andrey's avatar
Andrey committed
364
  margin-right: 12px;
365

366
  > a {
367
    margin: -1px;
368 369 370
  }
}

371
.save-project-loader {
372 373
  margin-top: 50px;
  margin-bottom: 50px;
374
  color: $gl-gray-700;
375
}
376

377
.transfer-project .select2-container {
378 379
  min-width: 200px;
}
380

381 382 383 384 385 386 387 388 389 390 391
.deploy-key {
  // Ensure that the fingerprint does not overflow on small screens
  .fingerprint {
    word-break: break-all;
    white-space: normal;
  }

  .deploy-project-label,
  .key-created-at {
    svg {
      vertical-align: text-top;
392 393 394
    }
  }

395 396 397 398 399 400
  .btn svg {
    vertical-align: top;
  }

  .key-created-at {
    line-height: unset;
401 402 403
  }
}

404 405
.deploy-project-list {
  margin-bottom: -$gl-padding-4;
406

407 408 409 410 411 412 413 414
  a.deploy-project-label {
    margin-right: $gl-padding-4;
    margin-bottom: $gl-padding-4;
    color: $gl-text-color-secondary;
    background-color: $theme-gray-100;
    line-height: $gl-btn-line-height;

    &:hover {
415
      color: $blue-600;
416
    }
417
  }
418
}
419 420

.vs-public {
421
  color: $blue-500;
422 423 424
}

.vs-internal {
425
  color: $orange-500;
426 427 428
}

.vs-private {
429
  color: $green-500;
430
}
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
431

432
.lfs-enabled {
433
  color: $green-500;
434 435 436
}

.lfs-disabled {
437
  color: $orange-500;
438 439
}

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
440
.breadcrumb.repo-breadcrumb {
441
  flex: 1;
442
  padding: 0;
443
  background: transparent;
444
  border: 0;
Annabel Dunstone Gray's avatar
Annabel Dunstone Gray committed
445
  line-height: 34px;
446
  margin: 0;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
447

448
  > li + li::before {
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
449
    padding: 0 3px;
450
    color: $gl-gray-400;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
451
  }
452 453

  a {
454
    color: $gl-text-color;
455
  }
456 457 458 459

  .dropdown-menu {
    width: 240px;
  }
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
460
}
461

Phil Hughes's avatar
Phil Hughes committed
462 463 464
.fork-thumbnail {
  height: 200px;
  width: calc((100% / 2) - #{$gl-padding * 2});
465

Clement Ho's avatar
Clement Ho committed
466
  @include media-breakpoint-up(md) {
Phil Hughes's avatar
Phil Hughes committed
467 468
    width: calc((100% / 4) - #{$gl-padding * 2});
  }
469

Clement Ho's avatar
Clement Ho committed
470
  @include media-breakpoint-up(lg) {
Phil Hughes's avatar
Phil Hughes committed
471 472
    width: calc((100% / 5) - #{$gl-padding * 2});
  }
473

Phil Hughes's avatar
Phil Hughes committed
474 475
  &:hover:not(.disabled),
  &.forked {
476 477
    background-color: $blue-50;
    border-color: $blue-200;
Phil Hughes's avatar
Phil Hughes committed
478
  }
479

Phil Hughes's avatar
Phil Hughes committed
480 481 482 483 484 485 486 487 488 489 490 491 492 493 494
  .avatar-container,
  .identicon {
    float: none;
    margin-left: auto;
    margin-right: auto;
  }

  a {
    display: block;
    width: 100%;
    height: 100%;
    padding-top: $gl-padding;
    text-decoration: none;

    &.disabled {
495
      opacity: 0.3;
Phil Hughes's avatar
Phil Hughes committed
496
      cursor: not-allowed;
497 498 499
    }
  }
}
500

Phil Hughes's avatar
Phil Hughes committed
501 502 503 504 505 506 507 508 509 510 511
.fork-thumbnail-container {
  display: flex;
  flex-wrap: wrap;
  margin-left: -$gl-padding;
  margin-right: -$gl-padding;

  > h5 {
    width: 100%;
  }
}

512
.project-template {
513

514 515 516 517
  > .form-group {
    margin-bottom: 0;
  }

518 519 520 521 522
  .tab-pane {
    padding-top: 0;
    padding-bottom: 0;
  }

523
  .template-option {
524 525 526 527 528 529 530
    .logo {
      .btn-template-icon {
        width: 40px !important;
      }
    }

    padding: 16px 0;
531 532 533 534

    &:not(:first-child) {
      border-top: 1px solid $border-color;
    }
Clement Ho's avatar
Clement Ho committed
535

536 537
    .controls {
      margin-left: auto;
Clement Ho's avatar
Clement Ho committed
538
    }
539 540
  }

541
  .choose-template {
542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557
    input {
      position: absolute;
      clip: rect(0, 0, 0, 0);
    }
  }

  .project-fields-form {
    display: none;

    &.selected {
      display: block;
      padding: $gl-padding;
    }
  }

  .template-input-group {
Clement Ho's avatar
Clement Ho committed
558
    .input-group-prepend {
559 560 561
      flex: 1;
    }

Clement Ho's avatar
Clement Ho committed
562 563 564
    .input-group-text {
      width: 100%;
      background-color: $white-light;
565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583
    }

    .selected-icon {
      svg {
        display: none;
        top: 7px;
        height: 20px;
        width: 20px;
      }
    }
  }
}

.gitlab-tab-content {
  .import-project-pane {
    padding-bottom: 6px;
  }
}

584
.project-import {
585
  .import-btn-container {
586
    margin-bottom: 0;
587
  }
588

589 590 591 592
  .toggle-import-form {
    padding-bottom: 10px;
  }

593 594 595 596 597 598
  .import-buttons {
    padding-left: 0;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
599

600
    .btn {
601
      padding: $gl-padding-8;
602
      margin-right: 10px;
603
    }
604

605
    .btn-template-icon {
606
      height: 24px;
607 608
      width: inherit;
      display: block;
Filipa Lacerda's avatar
Filipa Lacerda committed
609
      margin: 0 auto 4px;
610
      font-size: 24px;
611

Clement Ho's avatar
Clement Ho committed
612
      @media (min-width: map-get($grid-breakpoints, sm)-1) {
613 614
        top: 0;
      }
615 616
    }

Clement Ho's avatar
Clement Ho committed
617
    @include media-breakpoint-down(xs) {
618
      .btn-template-icon {
619
        display: inline-block;
620
        height: 14px;
621 622 623 624
        font-size: 14px;
        margin: 0;
      }
    }
625 626 627 628 629

    > div {
      margin-bottom: 10px;
      padding-left: 0;
    }
630
  }
631 632
}

633 634 635
.create-project-options {
  display: flex;

Clement Ho's avatar
Clement Ho committed
636
  @include media-breakpoint-down(xs) {
637 638 639 640
    display: block;
  }

  .first-column {
Clement Ho's avatar
Clement Ho committed
641
    @include media-breakpoint-up(xs) {
642
      max-width: 50%;
643
      padding-right: 30px;
644 645
    }

Clement Ho's avatar
Clement Ho committed
646
    @include media-breakpoint-down(xs) {
647 648
      max-width: 100%;
      width: 100%;
649 650 651
    }
  }

652
  .second-column {
Clement Ho's avatar
Clement Ho committed
653
    @include media-breakpoint-up(xs) {
654 655 656 657 658 659
      width: 50%;
      flex: 1;
      padding-left: 30px;
      position: relative;
    }

Clement Ho's avatar
Clement Ho committed
660
    @include media-breakpoint-down(xs) {
661 662 663 664 665 666 667
      max-width: 100%;
      width: 100%;
      padding-left: 0;
      position: relative;
    }

    // Mobile
Clement Ho's avatar
Clement Ho committed
668
    @include media-breakpoint-down(xs) {
669 670 671 672
      padding-top: 30px;
    }

    &::before {
673
      content: 'OR';
674
      position: absolute;
675 676
      left: -10px;
      top: 50%;
677
      z-index: 10;
678
      padding: $gl-padding-8 0;
679 680 681
      text-align: center;
      background-color: $white-light;
      color: $gl-text-color-tertiary;
682
      transform: translateY(-50%);
683
      font-size: 12px;
684
      font-weight: $gl-font-weight-bold;
685 686 687
      line-height: 20px;

      // Mobile
Clement Ho's avatar
Clement Ho committed
688
      @include media-breakpoint-down(xs) {
689
        left: 50%;
Filipa Lacerda's avatar
Filipa Lacerda committed
690
        top: 0;
691
        transform: translateX(-50%);
692
        padding: 0 $gl-padding-8;
693 694
      }
    }
695

696
    &::after {
697
      content: '';
698 699
      position: absolute;
      background-color: $border-color;
700
      bottom: 0;
701
      left: 0;
702 703 704
      right: auto;
      height: 100%;
      width: 1px;
705 706 707
      top: 0;

      // Mobile
Clement Ho's avatar
Clement Ho committed
708
      @include media-breakpoint-down(xs) {
709 710 711 712 713 714
        top: 10px;
        left: 10px;
        right: 10px;
        height: 1px;
        width: auto;
      }
715 716
    }
  }
717 718
}

719 720 721
.project-empty-note-panel {
  border-bottom: 1px solid $border-color;
}
722

723
.project-stats {
724
  font-size: 0;
725
  text-align: center;
726
  border-bottom: 1px solid $border-color;
727

728 729 730 731 732 733 734
  .scrolling-tabs-container {
    .scrolling-tabs {
      margin-top: $gl-padding-8;
      margin-bottom: $gl-padding-8;
      flex-wrap: wrap;
      border-bottom: 0;
    }
735

736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768
    .fade-left,
    .fade-right {
      top: 0;
      height: 100%;

      .fa {
        top: 50%;
        margin-top: -$gl-padding-8;
      }
    }

    .nav {
      flex-basis: 100%;

      + .nav {
        margin: $gl-padding-8 0;
      }
    }

    @include media-breakpoint-down(md) {
      flex-direction: column;

      .nav {
        flex-wrap: nowrap;
      }

      .nav:first-child {
        margin-right: $gl-padding-8;
      }
    }
  }

  .nav {
769 770
    > li {
      display: inline-block;
Phil Hughes's avatar
Phil Hughes committed
771

772 773 774
      &:not(:last-child) {
        margin-right: $gl-padding;
      }
Phil Hughes's avatar
Phil Hughes committed
775

776 777 778
      &.right {
        vertical-align: top;
        margin-top: 0;
779

Clement Ho's avatar
Clement Ho committed
780
        @include media-breakpoint-up(lg) {
781 782
          float: right;
        }
Phil Hughes's avatar
Phil Hughes committed
783
      }
784
    }
785

786 787 788 789 790 791
    .stat-text,
    .stat-link {
      padding: $gl-btn-vert-padding 0;
      background-color: transparent;
      font-size: $gl-font-size;
      line-height: $gl-btn-line-height;
792
      color: $gl-text-color-secondary;
793
      white-space: nowrap;
794
    }
795

796
    .stat-link {
797 798
      border-bottom: 0;

799 800 801 802
      &:hover,
      &:focus {
        color: $gl-text-color;
        text-decoration: underline;
803
        border-bottom: 0;
804
      }
Phil Hughes's avatar
Phil Hughes committed
805
    }
806

807 808 809
    .btn {
      padding: $gl-btn-vert-padding $gl-btn-horz-padding;
      line-height: $gl-btn-line-height;
810
    }
811

812 813
    .btn-missing {
      @extend .btn-missing;
814 815
    }
  }
816 817
}

818
.repository-languages-bar {
819 820 821 822 823 824 825 826 827 828 829 830 831
  height: 8px;
  margin-bottom: $gl-padding-8;
  background-color: $white-light;
  border-radius: $border-radius-default;

  .progress-bar {
    margin-right: 2px;
    padding: 0 $gl-padding-4;

    &:last-child {
      margin-right: 0;
    }
  }
832 833
}

834 835 836 837 838 839 840 841
.repository-language-bar-tooltip-language {
  font-weight: $gl-font-weight-bold;
}

.repository-language-bar-tooltip-share {
  color: $theme-gray-400;
}

842
pre.light-well {
843
  border-color: $well-light-border;
844
}
845

846
.git-empty {
847
  margin-bottom: 7px;
848

849
  h5 {
850
    color: $gl-text-color;
851
  }
852

853
  .light-well {
Clement Ho's avatar
Clement Ho committed
854
    border-radius: 2px;
855

856
    color: $well-light-text-color;
857 858
    font-size: 13px;
    line-height: 1.6em;
859 860 861
  }
}

862
.project-footer {
Andrey's avatar
Andrey committed
863
  margin-top: 20px;
864

865
  .btn-remove {
Andrey's avatar
Andrey committed
866
    @include btn-middle;
867
    @include btn-red;
868

869 870 871 872
    float: left !important;
  }
}

873 874 875 876 877
/*
 * Projects list rendered on dashboard and user page
 */
.projects-list {
  @include basic-list;
878 879
  display: flex;
  flex-direction: column;
880

881 882 883
  // Disable Flexbox for admin page
  &.admin-projects {
    display: block;
884

885 886
    .project-row {
      display: block;
887
    }
888
  }
889

890
  .project-row {
891
    @include basic-list-stats;
892 893 894
    display: flex;
    align-items: center;
  }
895

896 897 898
  h3 {
    font-size: $gl-font-size;
  }
899

900 901 902 903
  .avatar-container,
  .controls {
    flex: 0 0 auto;
  }
904

905 906 907
  .avatar-container {
    align-self: flex-start;
  }
908

909 910
  .project-details {
    min-width: 0;
911

912 913
    p,
    .commit-row-message {
914 915
      @include str-truncated(100%);
      margin-bottom: 0;
916
    }
917
  }
918

919 920
  .controls {
    margin-left: auto;
921
    text-align: right;
922
  }
923

924 925 926 927 928 929 930 931
  .ci-status-link {
    display: inline-block;
    line-height: 17px;
    vertical-align: middle;

    &:hover {
      text-decoration: none;
    }
932
  }
933 934
}

Clement Ho's avatar
Clement Ho committed
935
.card .projects-list li {
936
  padding: 10px 15px;
937
  margin: 0;
938
}
939

940
.git-clone-holder {
941
  width: 320px;
942 943 944 945 946 947 948

  .btn-clipboard {
    border: 1px solid $border-color;
  }

  .clone-options {
    display: table-cell;
949

950 951 952 953 954 955 956
    a.btn {
      width: 100%;
    }
  }

  .form-control {
    @extend .monospace;
957 958
    background-color: $white-light;
    border-color: $border-color;
959 960 961 962 963
    font-size: 14px;
    margin-left: -1px;
    cursor: auto;
  }
}
964

965
.cannot-be-merged,
966
.cannot-be-merged:hover {
967
  color: $red-500;
968
  margin-top: 2px;
969
}
970 971

.private-forks-notice .private-fork-icon {
Rubén Dávila's avatar
Rubén Dávila committed
972
  i:nth-child(1) {
973
    color: $green-600;
974
  }
Rubén Dávila's avatar
Rubén Dávila committed
975 976

  i:nth-child(2) {
977
    color: $white-light;
978 979
  }
}
Phil Hughes's avatar
Phil Hughes committed
980

981
.new-protected-branch,
982
.new-protected-tag {
983
  label {
984
    margin-top: 6px;
985
    font-weight: $gl-font-weight-normal;
986 987 988
  }
}

989
.project-tip-command {
990 991
  > .input-group-prepend:first-child,
  > .input-group-append:first-child {
992 993 994 995
    width: auto;
  }
}

996 997
.protected-branches-list,
.protected-tags-list {
998
  margin-bottom: 30px;
999

1000 1001 1002 1003
  .settings-message {
    margin: 0;
    border-radius: 0 0 1px 1px;
    padding: 20px 0;
1004
    border: 0;
1005 1006 1007
  }

  .table-bordered {
1008 1009
    border-radius: 1px;

1010 1011
    th:not(:last-child),
    td:not(:last-child) {
1012 1013 1014
      border-right: solid 1px transparent;
    }
  }
1015

1016 1017 1018
  .flash-container {
    padding: 0;
  }
1019 1020
}

1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033
.custom-notifications-form {
  .is-loading {
    .custom-notification-event-loading {
      display: inline-block;
    }
  }
}

.custom-notification-event-loading {
  display: none;
  margin-left: 5px;

  &.is-done {
1034
    color: $green-600;
1035 1036
  }
}
1037

1038
.project-refs-form .dropdown-menu,
1039
.dropdown-menu-projects {
1040 1041
  width: 300px;

Clement Ho's avatar
Clement Ho committed
1042
  @include media-breakpoint-up(sm) {
1043 1044 1045 1046 1047
    width: 500px;
  }

  a {
    white-space: normal;
1048 1049
  }
}
Phil Hughes's avatar
Phil Hughes committed
1050

1051
.compare-form-group {
1052 1053
  .dropdown-menu,
  .inline-input-group {
Nur Rony's avatar
Nur Rony committed
1054 1055
    width: 100%;

Clement Ho's avatar
Clement Ho committed
1056
    @include media-breakpoint-up(sm) {
Nur Rony's avatar
Nur Rony committed
1057 1058 1059 1060 1061 1062 1063 1064 1065 1066
      width: 300px;
    }
  }

  + .compare-ellipsis {
    width: 100%;
    vertical-align: middle;
    text-align: center;
    margin-top: -20px;

Clement Ho's avatar
Clement Ho committed
1067
    @include media-breakpoint-up(sm) {
Annabel Dunstone Gray's avatar
Annabel Dunstone Gray committed
1068
      margin: 0 $gl-padding-8;
Nur Rony's avatar
Nur Rony committed
1069 1070 1071
      width: auto;
    }
  }
Phil Hughes's avatar
Phil Hughes committed
1072
}
1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084

.clearable-input {
  position: relative;

  .clear-icon {
    @extend .fa-times;
    display: none;
    position: absolute;
    right: 7px;
    top: 7px;
    color: $location-icon-color;

1085
    &::before {
1086
      font-family: FontAwesome;
1087
      font-weight: $gl-font-weight-normal;
1088 1089 1090 1091 1092 1093 1094 1095 1096 1097
      font-style: normal;
    }
  }

  &.has-value {
    .clear-icon {
      cursor: pointer;
      display: block;
    }
  }
1098 1099 1100
}

.project-path {
James Lopez's avatar
James Lopez committed
1101
  .form-control {
1102 1103
    min-width: 100px;
  }
1104

1105
  &.form-group {
Clement Ho's avatar
Clement Ho committed
1106
    @include media-breakpoint-up(sm) {
1107 1108 1109 1110
      margin-bottom: 0;
    }
  }

1111 1112 1113 1114
  .select2-choice {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }
1115
}
1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130

.project-home-empty {
  border-top: 0;

  .container-fluid {
    background: none;
  }

  p {
    margin-left: auto;
    margin-right: auto;
    max-width: 650px;
  }
}

1131
.project-feature {
Luke "Jared" Bennett's avatar
Luke "Jared" Bennett committed
1132 1133
  padding-top: 10px;

Clement Ho's avatar
Clement Ho committed
1134
  @include media-breakpoint-up(sm) {
1135 1136
    padding-left: 45px;
  }
1137 1138

  &.nested {
Clement Ho's avatar
Clement Ho committed
1139
    @include media-breakpoint-up(sm) {
1140 1141 1142
      padding-left: 90px;
    }
  }
1143 1144
}

1145
.variables-table {
Bryce Johnson's avatar
Bryce Johnson committed
1146 1147
  table-layout: fixed;

1148
  &.table-responsive {
1149
    border: 0;
1150
  }
1151 1152

  .variable-key {
Bryce Johnson's avatar
Bryce Johnson committed
1153
    max-width: 120px;
1154 1155
    overflow: hidden;
    word-wrap: break-word;
Bryce Johnson's avatar
Bryce Johnson committed
1156 1157
    white-space: nowrap;
    text-overflow: ellipsis;
1158
  }
1159 1160

  .variable-value {
1161 1162 1163
    max-width: 150px;
    overflow: hidden;
    word-wrap: break-word;
Bryce Johnson's avatar
Bryce Johnson committed
1164 1165
    white-space: nowrap;
    text-overflow: ellipsis;
1166
  }
1167 1168 1169 1170

  .variable-menu {
    text-align: right;
  }
1171
}
1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191

.services-installation-info .row {
  margin-bottom: 10px;
}

.service-installation {
  padding: 32px;
  margin: 32px;
  border-radius: 3px;
  background-color: $white-light;

  h3 {
    margin-top: 0;
  }

  hr {
    margin: 32px 0;
    border-color: $border-color;
  }
}
1192 1193 1194 1195 1196

.issuable-footer {
  padding-top: $gl-padding;
  padding-bottom: 37px;
}
Mayra Cabrera's avatar
Mayra Cabrera committed
1197 1198 1199 1200

.project-ci-body {
  .incorrect-syntax {
    font-size: 18px;
1201
    color: $red-500;
Mayra Cabrera's avatar
Mayra Cabrera committed
1202 1203 1204 1205
  }

  .correct-syntax {
    font-size: 18px;
1206
    color: $green-500;
Mayra Cabrera's avatar
Mayra Cabrera committed
1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218
  }
}

.project-ci-linter {
  .ci-editor {
    height: 400px;
  }

  .ci-template pre {
    white-space: pre-wrap;
  }
}
1219 1220 1221 1222 1223 1224 1225 1226

.project-badge {
  opacity: 0.9;

  &:hover {
    opacity: 1;
  }
}
Nick Thomas's avatar
Nick Thomas committed
1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250

.project-mirror-settings {
  .btn-show-advanced {
    min-width: 135px;

    .label-show {
      display: none;
    }

    .label-hide {
      display: inline;
    }

    &.show-advanced {
      .label-show {
        display: inline;
      }

      .label-hide {
        display: none;
      }
    }
  }
}