issuable.scss 14.0 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;
R
Regis 已提交
11
  border-radius: $border-radius-default;
12 13 14 15 16
  padding: 5px;
  margin: 0 3px 0 -4px;
}

.is-not-confidential {
R
Regis 已提交
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) {
A
Annabel Dunstone Gray 已提交
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

D
Douwe Maan 已提交
100 101 102 103 104
.issuable-show-labels {
  a {
    margin-right: 5px;
    margin-bottom: 5px;
    display: inline-block;
105

D
Douwe Maan 已提交
106 107
    .color-label {
      padding: 6px 10px;
108
      border-radius: $label-border-radius;
D
Douwe Maan 已提交
109 110
    }
  }
P
Phil Hughes 已提交
111 112 113 114

  &.has-labels {
    margin-bottom: -5px;
  }
D
Douwe Maan 已提交
115 116
}

P
Phil Hughes 已提交
117
.right-sidebar {
118 119
  a,
  .btn-link {
P
Phil Hughes 已提交
120 121 122
    color: inherit;
  }

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

P
Phil Hughes 已提交
127 128 129 130
  .issuable-header-text {
    margin-top: 7px;
  }

131 132
  .block {
    @include clearfix;
133
    padding: $gl-padding 0;
A
Annabel Dunstone Gray 已提交
134
    border-bottom: 1px solid $border-gray-normal;
135
    // This prevents the mess when resizing the sidebar
136
    // of elements repositioning themselves..
J
Jacob Schatz 已提交
137
    width: $gutter_inner_width;
138
    // --
139

P
Phil Hughes 已提交
140 141 142
    &.issuable-sidebar-header {
      padding-top: 0;
      padding-bottom: 10px;
143 144
    }

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

J
Jacob Schatz 已提交
149
    span {
150 151 152
      display: inline-block;
    }

J
Jacob Schatz 已提交
153 154 155 156
    .select2-container span {
      margin-top: 0;
    }

157
    .gutter-toggle {
J
Jacob Schatz 已提交
158
      margin-left: 20px;
159
      padding-left: 10px;
160 161 162 163

      &:hover {
        color: $gray-darkest;
      }
164
    }
165
  }
D
Dmitriy Zaporozhets 已提交
166

P
Phil Hughes 已提交
167 168 169 170
  .block-first {
    padding-top: 0;
  }

171 172
  .title {
    color: $gl-text-color;
P
Phil Hughes 已提交
173 174
    margin-bottom: 10px;
    line-height: 1;
V
Valery Sizov 已提交
175

176 177
    .avatar {
      margin-left: 0;
V
Valery Sizov 已提交
178 179
    }

180
    .edit-link {
T
tauriedavis 已提交
181
      color: $gl-text-color;
P
Phil Hughes 已提交
182

183 184
      &:not([href]):hover {
        color: rgba($avatar-border, .2);
P
Phil Hughes 已提交
185
      }
D
Dmitriy Zaporozhets 已提交
186
    }
V
Valery Sizov 已提交
187 188
  }

189
  .cross-project-reference {
P
Phil Hughes 已提交
190
    color: inherit;
191

192 193
    span {
      white-space: nowrap;
J
Jacob Schatz 已提交
194
      width: 85%;
195 196 197 198 199
      overflow: hidden;
      position: relative;
      display: inline-block;
      text-overflow: ellipsis;
    }
V
Valery Sizov 已提交
200

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

205 206
    button {
      float: right;
207 208
      padding: 1px 5px;
      background-color: $gray-light;
V
Valery Sizov 已提交
209
    }
210
  }
D
Dmitriy Zaporozhets 已提交
211

212
  .selectbox {
213
    display: none;
214
  }
D
Dmitriy Zaporozhets 已提交
215

216
  .btn-clipboard:hover {
T
tauriedavis 已提交
217
    color: $gl-text-color;
V
Valery Sizov 已提交
218
  }
219
}
J
Jacob Schatz 已提交
220 221

.right-sidebar {
222
  position: absolute;
A
Annabel Dunstone Gray 已提交
223
  top: $new-navbar-height;
224
  bottom: 0;
J
Jacob Schatz 已提交
225
  right: 0;
226
  transition: width .3s;
J
Jacob Schatz 已提交
227
  background: $gray-light;
L
Luke "Jared" Bennett 已提交
228
  z-index: 200;
229 230 231 232
  overflow: hidden;

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

W
winh 已提交
239 240 241 242
  &.affix-top .issuable-sidebar {
    height: 100%;
  }

243 244
  &.right-sidebar-expanded {
    width: $gutter_width;
J
Jacob Schatz 已提交
245

P
Phil Hughes 已提交
246 247
    .value {
      line-height: 1;
248 249 250 251 252

      .assign-yourself {
        margin-top: 10px;
        display: block;
      }
P
Phil Hughes 已提交
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]) {
C
Clement Ho 已提交
264 265 266 267 268
      .issuable-sidebar-header {
        display: none;
      }
    }

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

P
Phil Hughes 已提交
273
    .light {
274
      font-weight: $gl-font-weight-normal;
P
Phil Hughes 已提交
275 276
    }

277
    .no-value {
T
tauriedavis 已提交
278
      color: $gl-text-color-secondary;
279 280
    }

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

    .gutter-toggle {
P
Phil Hughes 已提交
286
      margin-top: 7px;
A
Annabel Dunstone Gray 已提交
287
      border-left: 1px solid $border-gray-normal;
288
    }
P
Phil Hughes 已提交
289

C
Clement Ho 已提交
290 291 292 293
    .title .gutter-toggle {
      margin-top: 0;
    }

294
    .assignee .avatar {
P
Phil Hughes 已提交
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;
    }

P
Phil Hughes 已提交
305 306 307 308
    .username {
      display: block;
      margin-top: 4px;
      font-size: 13px;
309
      font-weight: $gl-font-weight-normal;
P
Phil Hughes 已提交
310
    }
P
Phil Hughes 已提交
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;
J
Jacob Schatz 已提交
327 328

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

P
Phil Hughes 已提交
335
    .participants {
A
Annabel Dunstone Gray 已提交
336
      border-bottom: 1px solid $border-gray-normal;
P
Phil Hughes 已提交
337 338
    }

339
    .hide-collapsed {
J
Jacob Schatz 已提交
340 341 342
      display: none;
    }

343
    .gutter-toggle {
P
Phil Hughes 已提交
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;
P
Phil Hughes 已提交
353
      margin-bottom: 10px;
S
Sam Rose 已提交
354
      color: $issuable-sidebar-color;
J
Jacob Schatz 已提交
355

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

D
dimitrieh 已提交
360 361
      &:hover,
      &:hover .todo-undone {
T
tauriedavis 已提交
362
        color: $gl-text-color;
363 364 365 366

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

J
Jacob Schatz 已提交
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;
T
tauriedavis 已提交
393
        color: $issuable-sidebar-color;
394 395 396

        &:hover {
          background: transparent;
T
tauriedavis 已提交
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
    }
P
Phil Hughes 已提交
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;
    }
J
Jacob Schatz 已提交
458 459
  }

460
  a {
P
Phil Hughes 已提交
461 462 463
    &:hover {
      color: $md-link-color;
      text-decoration: none;
464 465

      .avatar {
466
        border-color: rgba($avatar-border, .2);
467
      }
P
Phil Hughes 已提交
468 469
    }
  }
P
Phil Hughes 已提交
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
}
J
Jacob Schatz 已提交
486

487
.with-performance-bar .right-sidebar {
A
Annabel Dunstone Gray 已提交
488
  top: $new-navbar-height + $performance-bar-height;
489 490

  .issuable-sidebar {
A
Annabel Dunstone Gray 已提交
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;
}

J
Jacob Schatz 已提交
513
.detail-page-description {
514
  padding: 16px 0;
515

J
Jacob Schatz 已提交
516 517 518
  small {
    color: $gray-darkest;
  }
519
}
P
Phil Hughes 已提交
520 521 522

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

  .author_link {
    color: $gray-darkest;
  }
}
P
Phil Hughes 已提交
531 532

.participants-list {
533
  margin: -5px;
P
Phil Hughes 已提交
534 535
}

C
Clement Ho 已提交
536

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

P
Phil Hughes 已提交
542
.participants-author {
C
Clement Ho 已提交
543
  display: inline-block;
544
  padding: 5px;
P
Phil Hughes 已提交
545

C
Clement Ho 已提交
546 547 548 549
  &:nth-of-type(7n) {
    padding-right: 0;
  }

P
Phil Hughes 已提交
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 {
P
Phil Hughes 已提交
571 572 573
  margin-top: 5px;
  margin-left: 5px;

574 575
  a,
  .btn-link {
T
tauriedavis 已提交
576
    color: $gl-text-color-secondary;
P
Phil Hughes 已提交
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;
  }
P
Phil Hughes 已提交
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 {
N
Nur Rony 已提交
662

N
Nur Rony 已提交
663 664 665 666 667 668 669 670
    .issue-box {
      display: -webkit-flex;
      display: flex;
    }

    .issue-info-container {
      -webkit-flex: 1;
      flex: 1;
T
Taurie Davis 已提交
671
      display: flex;
N
Nur Rony 已提交
672
      padding-right: $gl-padding;
T
Taurie Davis 已提交
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;
          }
        }
      }
N
Nur Rony 已提交
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;
      }
    }
T
Taurie Davis 已提交
714 715 716 717 718

    .issuable-milestone,
    .issuable-info,
    .task-status,
    .issuable-updated-at {
719
      font-weight: $gl-font-weight-normal;
T
Taurie Davis 已提交
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 {
B
Bryce Johnson 已提交
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;
B
Bryce Johnson 已提交
819
      color: $compare-display-color;
820 821

      .compare-value {
B
Bryce Johnson 已提交
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;
  }
}
P
Phil Hughes 已提交
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
}