issuable.scss 13.4 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 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
.is-confidential {
  color: $orange-600;
  background-color: $orange-50;
  border-radius: 3px;
  padding: 5px;
  margin: 0 3px 0 -4px;
}

.is-not-confidential {
  border-radius: 3px;
  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
  }
85 86

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      .assign-yourself {
        margin-top: 10px;
        display: block;
      }
P
Phil Hughes 已提交
252 253
    }

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

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

C
Clement Ho 已提交
262 263 264 265 266 267
    &:not(.issue-boards-sidebar):not([data-signed-in]) {
      .issuable-sidebar-header {
        display: none;
      }
    }

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

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

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

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

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

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

293
    .assignee .avatar {
P
Phil Hughes 已提交
294 295 296 297 298 299
      float: left;
      margin-right: 10px;
      margin-bottom: 0;
      margin-left: 0;
    }

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

P
Phil Hughes 已提交
304 305 306 307 308 309
    .username {
      display: block;
      margin-top: 4px;
      font-size: 13px;
      font-weight: normal;
    }
P
Phil Hughes 已提交
310 311 312 313

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

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

324
    width: $gutter_collapsed_width;
325
    padding: 0;
J
Jacob Schatz 已提交
326 327

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

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

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

342
    .gutter-toggle {
P
Phil Hughes 已提交
343 344 345
      width: 100%;
      margin-left: 0;
      padding-left: 25px;
346 347 348 349
    }

    .sidebar-collapsed-icon {
      display: block;
350
      width: 100%;
351
      text-align: center;
P
Phil Hughes 已提交
352
      margin-bottom: 10px;
S
Sam Rose 已提交
353
      color: $issuable-sidebar-color;
J
Jacob Schatz 已提交
354

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

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

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

J
Jacob Schatz 已提交
368 369 370 371
      span {
        display: block;
        margin-top: 0;
      }
372

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

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

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

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

390 391
      .btn-clipboard {
        border: none;
T
tauriedavis 已提交
392
        color: $issuable-sidebar-color;
393 394 395

        &:hover {
          background: transparent;
T
tauriedavis 已提交
396
          color: $gl-text-color;
397 398
        }
      }
399 400 401 402 403 404 405 406 407 408 409

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

    .sidebar-avatar-counter {
      width: 24px;
      height: 24px;
      border-radius: 12px;
410
    }
P
Phil Hughes 已提交
411 412 413 414 415

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

    .issuable-header-btn {
      display: none;
    }
420 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

    .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;
        }
      }
    }
J
Jacob Schatz 已提交
451 452
  }

453
  a {
P
Phil Hughes 已提交
454 455 456
    &:hover {
      color: $md-link-color;
      text-decoration: none;
457 458

      .avatar {
459
        border-color: rgba($avatar-border, .2);
460
      }
P
Phil Hughes 已提交
461 462
    }
  }
P
Phil Hughes 已提交
463

464 465 466 467 468 469
  .dropdown-content {
    a:hover {
      color: inherit;
    }
  }

470 471
  .dropdown-menu-toggle {
    width: 100%;
472
    padding-top: 6px;
473 474 475 476 477
  }

  .open .dropdown-menu {
    width: 100%;
  }
478
}
J
Jacob Schatz 已提交
479

480 481 482 483 484 485 486 487
.with-performance-bar .right-sidebar {
  top: $header-height + $performance-bar-height;

  .issuable-sidebar {
    height: calc(100% - #{$header-height} - #{$performance-bar-height});
  }
}

J
Jacob Schatz 已提交
488
.detail-page-description {
489
  padding: 16px 0;
490

J
Jacob Schatz 已提交
491 492 493
  small {
    color: $gray-darkest;
  }
494
}
P
Phil Hughes 已提交
495 496 497

.edited-text {
  color: $gray-darkest;
498
  display: block;
499
  margin: 16px 0 0;
P
Phil Hughes 已提交
500 501 502 503 504

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

.participants-list {
507
  margin: -5px;
P
Phil Hughes 已提交
508 509
}

C
Clement Ho 已提交
510

511 512 513 514 515
.user-list {
  display: flex;
  flex-wrap: wrap;
}

P
Phil Hughes 已提交
516
.participants-author {
C
Clement Ho 已提交
517
  display: inline-block;
518
  padding: 5px;
P
Phil Hughes 已提交
519

C
Clement Ho 已提交
520 521 522 523
  &:nth-of-type(7n) {
    padding-right: 0;
  }

P
Phil Hughes 已提交
524 525 526 527 528 529 530 531 532
  .author_link {
    display: block;
  }

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

533 534 535 536 537 538 539 540 541 542 543 544
.user-item {
  display: inline-block;
  padding: 5px;
  flex-basis: 20%;

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

.participants-more,
.user-list-more {
P
Phil Hughes 已提交
545 546 547
  margin-top: 5px;
  margin-left: 5px;

548 549
  a,
  .btn-link {
T
tauriedavis 已提交
550
    color: $gl-text-color-secondary;
P
Phil Hughes 已提交
551
  }
552 553 554 555 556 557 558 559 560 561 562 563 564 565

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

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

  .btn-link:focus {
    text-decoration: none;
  }
P
Phil Hughes 已提交
566
}
567 568 569 570 571 572

.issuable-form-padding-top {
  @media (min-width: $screen-sm-min) {
    padding-top: 7px;
  }
}
573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618

.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 {
  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;
619
  font-size: 14px;
620
}
621 622 623 624 625

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

627 628 629 630
  @media (max-width: $screen-sm-max) {
    margin-bottom: $gl-padding;
  }
}
631 632 633

.issuable-list {
  li {
N
Nur Rony 已提交
634

N
Nur Rony 已提交
635 636 637 638 639 640 641 642
    .issue-box {
      display: -webkit-flex;
      display: flex;
    }

    .issue-info-container {
      -webkit-flex: 1;
      flex: 1;
T
Taurie Davis 已提交
643
      display: flex;
N
Nur Rony 已提交
644
      padding-right: $gl-padding;
T
Taurie Davis 已提交
645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674

      .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 已提交
675 676
    }

677
    .issue-check {
678
      padding-right: $gl-padding;
679 680 681 682 683 684 685
      margin-bottom: 10px;
      min-width: 15px;

      .selected_issue {
        vertical-align: text-top;
      }
    }
T
Taurie Davis 已提交
686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709

    .issuable-milestone,
    .issuable-info,
    .task-status,
    .issuable-updated-at {
      font-weight: normal;
      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;
      }
    }
710 711
  }
}
712

713 714 715 716 717 718 719 720 721 722 723 724 725
.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;
  }
}

726 727 728 729 730 731 732 733 734 735 736 737 738 739
.time_tracker {
  padding-bottom: 0;
  border-bottom: 0;


  .sidebar-collapsed-icon {

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

    svg {
      width: 16px;
      height: 16px;
740
      fill: $issuable-sidebar-color;
741 742 743
    }

    &:hover svg {
B
Bryce Johnson 已提交
744
      fill: $gl-text-color;
745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761
    }
  }

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

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

    &.over_estimate {
      .meter-fill {
762
        background: $red-500;
763 764 765 766
      }

      .time-remaining,
      .compare-value.spent {
767
        color: $red-500;
768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790
      }
    }
  }

  .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 已提交
791
      color: $compare-display-color;
792 793

      .compare-value {
B
Bryce Johnson 已提交
794
        color: $gl-text-color;
795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823
      }
    }
  }

  .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 已提交
824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841

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

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

    &.sidebar-collapsed-icon {
      .issuable-todo-inner {
        display: none;
      }
    }
  }
}
842 843 844 845 846 847

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

848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863
.issuable-close-dropdown {
  .dropdown-menu {
    min-width: 270px;
    left: auto;
    right: 0;
  }

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

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