issuable.scss 14 KB
Newer Older
1 2 3 4 5 6 7
// Limit MR description for side-by-side diff view
.fixed-width-container {
  max-width: $limited-layout-width - ($gl-padding * 2);
  margin-left: auto;
  margin-right: auto;
}

8 9
.is-confidential {
  color: $orange-600;
10
  background-color: $orange-100;
Regis's avatar
Regis committed
11
  border-radius: $border-radius-default;
12 13 14 15 16
  padding: 5px;
  margin: 0 3px 0 -4px;
}

.is-not-confidential {
Regis's avatar
Regis committed
17
  border-radius: $border-radius-default;
18 19 20 21 22 23 24 25 26 27 28 29 30 31
  padding: 5px;
  margin: 0 3px 0 -4px;
}

.confidentiality {
  .is-not-confidential {
    margin: auto;
  }

  .is-confidential {
    margin: auto;
  }
}

32
.limit-container-width {
33 34 35 36 37
  .detail-page-header,
  .page-content-header,
  .commit-box,
  .info-well,
  .commit-ci-menu,
38
  .files-changed-inner,
39 40
  .limited-header-width,
  .limited-width-notes {
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
    @extend .fixed-width-container;
  }

  .issuable-details {
    .detail-page-description,
    .mr-source-target,
    .mr-state-widget,
    .merge-manually {
      @extend .fixed-width-container;
    }
  }

  .merge-request-details {
    .emoji-list-container {
      @extend .fixed-width-container;
    }
  }

  .diffs {
60
    .mr-version-controls {
61 62 63 64 65
      @extend .fixed-width-container;
    }
  }
}

66
.issuable-details {
67
  section {
68
    .issuable-discussion {
69 70 71
      margin-right: 1px;
    }
  }
72

73 74
  .title {
    padding: 0;
75
    margin-bottom: 16px;
76 77 78
    border-bottom: none;
  }

79
  // Border around images in issue and MR descriptions.
80
  .description img:not(.emoji) {
81
    border: 1px solid $white-normal;
82
    padding: 5px;
83
    max-height: calc(100vh - 100px);
84
    max-width: 100%;
85
  }
86 87

  .emoji-block {
88
    padding: 10px 0;
89
  }
90
}
91 92 93 94 95 96 97 98

.issuable-filter-count {
  span {
    display: block;
    margin-bottom: -16px;
    padding: 13px 0;
  }
}
99

Douwe Maan's avatar
Douwe Maan committed
100 101 102 103 104
.issuable-show-labels {
  a {
    margin-right: 5px;
    margin-bottom: 5px;
    display: inline-block;
105

Douwe Maan's avatar
Douwe Maan committed
106 107
    .color-label {
      padding: 6px 10px;
108
      border-radius: $label-border-radius;
Douwe Maan's avatar
Douwe Maan committed
109 110
    }
  }
Phil Hughes's avatar
Phil Hughes committed
111 112 113 114

  &.has-labels {
    margin-bottom: -5px;
  }
Douwe Maan's avatar
Douwe Maan committed
115 116
}

Phil Hughes's avatar
Phil Hughes committed
117
.right-sidebar {
118 119
  a,
  .btn-link {
120 121 122
    color: inherit;
  }

123 124 125 126
  .btn-link {
    outline: none;
  }

127 128 129 130
  .issuable-header-text {
    margin-top: 7px;
  }

131 132
  .block {
    @include clearfix;
133
    padding: $gl-padding 0;
134
    border-bottom: 1px solid $border-gray-normal;
135
    // This prevents the mess when resizing the sidebar
136
    // of elements repositioning themselves..
Jacob Schatz's avatar
Jacob Schatz committed
137
    width: $gutter_inner_width;
138
    // --
139

Phil Hughes's avatar
Phil Hughes committed
140 141 142
    &.issuable-sidebar-header {
      padding-top: 0;
      padding-bottom: 10px;
143 144
    }

145 146 147
    &:last-child {
      border: none;
    }
148

Jacob Schatz's avatar
Jacob Schatz committed
149
    span {
150 151 152
      display: inline-block;
    }

Jacob Schatz's avatar
Jacob Schatz committed
153 154 155 156
    .select2-container span {
      margin-top: 0;
    }

157
    .gutter-toggle {
Jacob Schatz's avatar
Jacob Schatz committed
158
      margin-left: 20px;
159
      padding-left: 10px;
160 161 162 163

      &:hover {
        color: $gray-darkest;
      }
164
    }
165
  }
166

Phil Hughes's avatar
Phil Hughes committed
167 168 169 170
  .block-first {
    padding-top: 0;
  }

171 172
  .title {
    color: $gl-text-color;
Phil Hughes's avatar
Phil Hughes committed
173 174
    margin-bottom: 10px;
    line-height: 1;
Valery Sizov's avatar
Valery Sizov committed
175

176 177
    .avatar {
      margin-left: 0;
Valery Sizov's avatar
Valery Sizov committed
178 179
    }

180
    .edit-link {
181
      color: $gl-text-color;
Phil Hughes's avatar
Phil Hughes committed
182

183 184
      &:not([href]):hover {
        color: rgba($avatar-border, .2);
Phil Hughes's avatar
Phil Hughes committed
185
      }
186
    }
Valery Sizov's avatar
Valery Sizov committed
187 188
  }

189
  .cross-project-reference {
190
    color: inherit;
191

192 193
    span {
      white-space: nowrap;
Jacob Schatz's avatar
Jacob Schatz committed
194
      width: 85%;
195 196 197 198 199
      overflow: hidden;
      position: relative;
      display: inline-block;
      text-overflow: ellipsis;
    }
Valery Sizov's avatar
Valery Sizov committed
200

201 202 203 204
    cite {
      font-style: normal;
    }

205 206
    button {
      float: right;
207 208
      padding: 1px 5px;
      background-color: $gray-light;
Valery Sizov's avatar
Valery Sizov committed
209
    }
210
  }
211

212
  .selectbox {
213
    display: none;
214
  }
215

216
  .btn-clipboard:hover {
217
    color: $gl-text-color;
Valery Sizov's avatar
Valery Sizov committed
218
  }
219
}
220 221

.right-sidebar {
222
  position: absolute;
223
  top: $new-navbar-height;
224
  bottom: 0;
225
  right: 0;
226
  transition: width .3s;
227
  background: $gray-light;
228
  z-index: 200;
229 230 231 232
  overflow: hidden;

  .issuable-sidebar {
    width: calc(100% + 100px);
233
    height: calc(100% - #{$new-navbar-height});
234 235 236 237
    overflow-y: scroll;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }
238

239 240 241 242
  &.affix-top .issuable-sidebar {
    height: 100%;
  }

243 244
  &.right-sidebar-expanded {
    width: $gutter_width;
245

Phil Hughes's avatar
Phil Hughes committed
246 247
    .value {
      line-height: 1;
248 249 250 251 252

      .assign-yourself {
        margin-top: 10px;
        display: block;
      }
Phil Hughes's avatar
Phil Hughes committed
253 254
    }

255 256 257 258
    .issuable-sidebar {
      padding: 0 20px;
    }

259 260 261 262
    .issuable-sidebar-header {
      padding-top: 10px;
    }

263
    &:not(.issue-boards-sidebar):not([data-signed-in]):not([data-always-show-toggle]) {
Clement Ho's avatar
Clement Ho committed
264 265 266 267 268
      .issuable-sidebar-header {
        display: none;
      }
    }

269 270 271 272
    .assign-yourself .btn-link {
      padding-left: 0;
    }

273
    .light {
274
      font-weight: $gl-font-weight-normal;
275 276
    }

277
    .no-value {
278
      color: $gl-text-color-secondary;
279 280
    }

281 282 283 284 285
    .sidebar-collapsed-icon {
      display: none;
    }

    .gutter-toggle {
Phil Hughes's avatar
Phil Hughes committed
286
      margin-top: 7px;
287
      border-left: 1px solid $border-gray-normal;
288
    }
Phil Hughes's avatar
Phil Hughes committed
289

Clement Ho's avatar
Clement Ho committed
290 291 292 293
    .title .gutter-toggle {
      margin-top: 0;
    }

294
    .assignee .avatar {
Phil Hughes's avatar
Phil Hughes committed
295 296 297 298 299 300
      float: left;
      margin-right: 10px;
      margin-bottom: 0;
      margin-left: 0;
    }

301 302 303 304
    .assignee .user-list .avatar {
      margin: 0;
    }

Phil Hughes's avatar
Phil Hughes committed
305 306 307 308
    .username {
      display: block;
      margin-top: 4px;
      font-size: 13px;
309
      font-weight: $gl-font-weight-normal;
Phil Hughes's avatar
Phil Hughes committed
310
    }
Phil Hughes's avatar
Phil Hughes committed
311 312 313 314

    .hide-expanded {
      display: none;
    }
315 316 317
  }

  &.right-sidebar-collapsed {
318 319 320
    /* Extra small devices (phones, less than 768px) */
    display: none;
    /* Small devices (tablets, 768px and up) */
321
    @media (min-width: $screen-sm-min) {
322
      display: block;
323 324
    }

325
    width: $gutter_collapsed_width;
326
    padding: 0;
327 328

    .block {
329
      width: $gutter_collapsed_width - 2px;
330
      padding: 15px 0 0;
331 332
      border-bottom: none;
      overflow: hidden;
333
    }
334

Phil Hughes's avatar
Phil Hughes committed
335
    .participants {
336
      border-bottom: 1px solid $border-gray-normal;
Phil Hughes's avatar
Phil Hughes committed
337 338
    }

339
    .hide-collapsed {
Jacob Schatz's avatar
Jacob Schatz committed
340 341 342
      display: none;
    }

343
    .gutter-toggle {
Phil Hughes's avatar
Phil Hughes committed
344 345 346
      width: 100%;
      margin-left: 0;
      padding-left: 25px;
347 348 349 350
    }

    .sidebar-collapsed-icon {
      display: block;
351
      width: 100%;
352
      text-align: center;
Phil Hughes's avatar
Phil Hughes committed
353
      margin-bottom: 10px;
354
      color: $issuable-sidebar-color;
355

356 357 358 359
      svg {
        fill: $issuable-sidebar-color;
      }

dimitrieh's avatar
dimitrieh committed
360 361
      &:hover,
      &:hover .todo-undone {
362
        color: $gl-text-color;
363 364 365 366

        svg {
          fill: $gl-text-color;
        }
367 368
      }

369 370 371 372
      span {
        display: block;
        margin-top: 0;
      }
373

374 375 376 377
      .sidebar-avatar-counter {
        padding-top: 2px;
      }

378 379 380 381
      .todo-undone {
        color: $gl-link-color;
      }

382 383 384 385
      .author {
        display: none;
      }

386 387
      .avatar-counter:hover {
        color: $issuable-sidebar-color;
388
        border-color: $issuable-sidebar-color;
389 390
      }

391 392
      .btn-clipboard {
        border: none;
393
        color: $issuable-sidebar-color;
394 395 396

        &:hover {
          background: transparent;
397
          color: $gl-text-color;
398 399
        }
      }
400 401 402 403 404 405 406 407 408 409 410

      &.multiple-users {
        display: flex;
        justify-content: center;
      }
    }

    .sidebar-avatar-counter {
      width: 24px;
      height: 24px;
      border-radius: 12px;
411
    }
Phil Hughes's avatar
Phil Hughes committed
412 413 414 415 416

    .sidebar-collapsed-user {
      padding-bottom: 0;
      margin-bottom: 10px;
    }
417 418 419 420

    .issuable-header-btn {
      display: none;
    }
421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451

    .multiple-users {
      height: 24px;
      margin-bottom: 17px;
      margin-top: 4px;
      padding-bottom: 4px;

      .btn-link {
        padding: 0;
        border: 0;

        .avatar {
          margin: 0;
        }
      }

      .btn-link:first-child {
        position: absolute;
        left: 10px;
        z-index: 1;
      }

      .btn-link:last-child {
        position: absolute;
        right: 10px;

        &:hover {
          text-decoration: none;
        }
      }
    }
452 453 454 455 456 457

    .milestone-title span {
      @include str-truncated(100%);
      display: block;
      margin: 0 4px;
    }
Jacob Schatz's avatar
Jacob Schatz committed
458 459
  }

460
  a {
Phil Hughes's avatar
Phil Hughes committed
461 462 463
    &:hover {
      color: $md-link-color;
      text-decoration: none;
464 465

      .avatar {
466
        border-color: rgba($avatar-border, .2);
467
      }
Phil Hughes's avatar
Phil Hughes committed
468 469
    }
  }
470

471 472 473 474 475 476
  .dropdown-content {
    a:hover {
      color: inherit;
    }
  }

477 478
  .dropdown-menu-toggle {
    width: 100%;
479
    padding-top: 6px;
480 481
  }

482
  .dropdown-menu {
483 484
    width: 100%;
  }
485
}
486

487
.with-performance-bar .right-sidebar {
488
  top: $new-navbar-height + $performance-bar-height;
489 490

  .issuable-sidebar {
491
    height: calc(100% - #{$new-navbar-height} - #{$performance-bar-height});
492 493 494
  }
}

495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512
.sidebar-move-issue-dropdown {
  @include new-style-dropdown;
}

.sidebar-move-issue-confirmation-button {
  width: 100%;

  &.is-loading {
    .sidebar-move-issue-confirmation-loading-icon {
      display: inline-block;
    }
  }
}

.sidebar-move-issue-confirmation-loading-icon {
  display: none;
}

513
.detail-page-description {
514
  padding: 16px 0;
515

516 517 518
  small {
    color: $gray-darkest;
  }
519
}
520 521 522

.edited-text {
  color: $gray-darkest;
523
  display: block;
524
  margin: 16px 0 0;
525
  font-size: 85%;
526 527 528 529 530

  .author_link {
    color: $gray-darkest;
  }
}
Phil Hughes's avatar
Phil Hughes committed
531 532

.participants-list {
533
  margin: -5px;
Phil Hughes's avatar
Phil Hughes committed
534 535
}

536

537 538 539 540 541
.user-list {
  display: flex;
  flex-wrap: wrap;
}

Phil Hughes's avatar
Phil Hughes committed
542
.participants-author {
543
  display: inline-block;
544
  padding: 5px;
Phil Hughes's avatar
Phil Hughes committed
545

546 547 548 549
  &:nth-of-type(7n) {
    padding-right: 0;
  }

Phil Hughes's avatar
Phil Hughes committed
550 551 552 553 554 555 556 557 558
  .author_link {
    display: block;
  }

  .avatar.avatar-inline {
    margin: 0;
  }
}

559 560 561 562 563 564 565 566 567 568 569 570
.user-item {
  display: inline-block;
  padding: 5px;
  flex-basis: 20%;

  .user-link {
    display: inline-block;
  }
}

.participants-more,
.user-list-more {
Phil Hughes's avatar
Phil Hughes committed
571 572 573
  margin-top: 5px;
  margin-left: 5px;

574 575
  a,
  .btn-link {
576
    color: $gl-text-color-secondary;
Phil Hughes's avatar
Phil Hughes committed
577
  }
578 579 580 581 582 583 584 585 586 587 588 589 590 591

  .btn-link {
    outline: none;
    padding: 0;
  }

  .btn-link:hover {
    @extend a:hover;
    text-decoration: none;
  }

  .btn-link:focus {
    text-decoration: none;
  }
Phil Hughes's avatar
Phil Hughes committed
592
}
593 594 595 596 597 598

.issuable-form-padding-top {
  @media (min-width: $screen-sm-min) {
    padding-top: 7px;
  }
}
599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625

.issuable-status-box {
  float: none;
  display: inline-block;
  margin-top: 0;

  @media (max-width: $screen-xs-max) {
    position: absolute;
    top: 0;
    left: 0;
  }
}

.issuable-header {
  position: relative;
  padding-left: 45px;
  padding-right: 45px;
  line-height: 35px;

  @media (min-width: $screen-sm-min) {
    float: left;
    padding-left: 0;
    padding-right: 0;
  }
}

.issuable-actions {
626 627
  @include new-style-dropdown;

628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646
  padding-top: 10px;

  @media (min-width: $screen-sm-min) {
    float: right;
    padding-top: 0;
  }
}

.issuable-gutter-toggle {
  @media (max-width: $screen-sm-max) {
    position: absolute;
    top: 0;
    right: 0;
  }
}

.issuable-meta {
  display: inline-block;
  line-height: 18px;
647
  font-size: 14px;
648
}
649 650 651 652 653

.js-issuable-selector-wrap {
  .js-issuable-selector {
    width: 100%;
  }
654

655 656 657 658
  @media (max-width: $screen-sm-max) {
    margin-bottom: $gl-padding;
  }
}
659 660 661

.issuable-list {
  li {
Nur Rony's avatar
Nur Rony committed
662

663 664 665 666 667 668 669 670
    .issue-box {
      display: -webkit-flex;
      display: flex;
    }

    .issue-info-container {
      -webkit-flex: 1;
      flex: 1;
Taurie Davis's avatar
Taurie Davis committed
671
      display: flex;
672
      padding-right: $gl-padding;
Taurie Davis's avatar
Taurie Davis committed
673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702

      .issue-main-info {
        flex: 1 auto;
        margin-right: 10px;
      }

      .issuable-meta {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        flex: 1 0 auto;

        .controls {
          margin-bottom: 2px;
          line-height: 20px;
          padding: 0;
        }

        .issue-updated-at {
          line-height: 20px;
        }
      }

      @media(max-width: $screen-xs-max) {
        .issuable-meta {
          .controls li {
            margin-right: 0;
          }
        }
      }
Nur Rony's avatar
Nur Rony committed
703 704
    }

705
    .issue-check {
706
      padding-right: $gl-padding;
707 708 709 710 711 712 713
      margin-bottom: 10px;
      min-width: 15px;

      .selected_issue {
        vertical-align: text-top;
      }
    }
Taurie Davis's avatar
Taurie Davis committed
714 715 716 717 718

    .issuable-milestone,
    .issuable-info,
    .task-status,
    .issuable-updated-at {
719
      font-weight: $gl-font-weight-normal;
Taurie Davis's avatar
Taurie Davis committed
720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737
      color: $gl-text-color-secondary;

      a {
        color: $gl-text-color;

        .fa {
          color: $gl-text-color-secondary;
        }
      }
    }

    @media(max-width: $screen-md-max) {
      .task-status,
      .issuable-due-date,
      .project-ref-path {
        display: none;
      }
    }
738 739
  }
}
740

741 742 743 744 745 746 747 748 749 750 751 752 753
.issuable-list li,
.issue-info-container .controls {
  .avatar-counter {
    display: inline-block;
    vertical-align: middle;
    min-width: 16px;
    line-height: 14px;
    height: 16px;
    padding-left: 2px;
    padding-right: 2px;
  }
}

754 755 756 757 758 759 760 761 762 763 764 765 766 767
.time_tracker {
  padding-bottom: 0;
  border-bottom: 0;


  .sidebar-collapsed-icon {

    > .stopwatch-svg {
      display: inline-block;
    }

    svg {
      width: 16px;
      height: 16px;
768
      fill: $issuable-sidebar-color;
769 770 771
    }

    &:hover svg {
Bryce Johnson's avatar
Bryce Johnson committed
772
      fill: $gl-text-color;
773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789
    }
  }

  .help-button,
  .close-help-button {
    cursor: pointer;
  }

  .compare-meter {
    &.within_estimate {
      .meter-fill {
        background: $gl-primary;
      }
    }

    &.over_estimate {
      .meter-fill {
790
        background: $red-500;
791 792 793 794
      }

      .time-remaining,
      .compare-value.spent {
795
        color: $red-500;
796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818
      }
    }
  }

  .meter-container {
    background: $border-gray-light;
    border-radius: 3px;

    .meter-fill {
      max-width: 100%;
      height: 5px;
      border-radius: 3px;
      background: $gl-primary;
    }
  }

  .compare-display-container {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;

    .compare-display {
      font-size: 13px;
Bryce Johnson's avatar
Bryce Johnson committed
819
      color: $compare-display-color;
820 821

      .compare-value {
Bryce Johnson's avatar
Bryce Johnson committed
822
        color: $gl-text-color;
823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851
      }
    }
  }

  .time-tracking-help-state {
    background: $white-light;
    margin: 16px -20px 0;
    padding: 16px 20px;
    border-top: 1px solid $border-gray-light;
    border-bottom: 1px solid $border-gray-light;

    a:hover {
      color: $btn-white-active;
    }
  }

  .help-state-toggle-enter-active {
    transition: all .8s ease;
  }

  .help-state-toggle-leave-active {
    transition: all .5s ease;
  }

  .help-state-toggle-enter,
  .help-state-toggle-leave-active {
    opacity: 0;
  }
}
Phil Hughes's avatar
Phil Hughes committed
852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869

.issuable-todo-btn {
  .fa-spinner {
    display: none;
  }

  &.is-loading {
    .fa-spinner {
      display: inline-block;
    }

    &.sidebar-collapsed-icon {
      .issuable-todo-inner {
        display: none;
      }
    }
  }
}
870 871 872 873 874 875

.issuable-close-button,
.issuable-close-toggle {
  @include transition(border-color, color);
}

876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891
.issuable-close-dropdown {
  .dropdown-menu {
    min-width: 270px;
    left: auto;
    right: 0;
  }

  .description {
    .text {
      margin: 0;
    }
  }

  .dropdown-toggle > .icon {
    margin: 0 3px;
  }
892
}