issuable.scss 14.5 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;
}

L
Luke "Jared" Bennett 已提交
8
.issuable-warning-icon {
9
  background-color: $orange-100;
R
Regis 已提交
10
  border-radius: $border-radius-default;
L
Luke "Jared" Bennett 已提交
11 12 13 14
  margin: 0 $btn-side-margin 0 0;
  width: $issuable-warning-size;
  height: $issuable-warning-size;
  text-align: center;
L
Luke "Jared" Bennett 已提交
15

16 17 18
  .icon {
    fill: $orange-600;
    vertical-align: text-bottom;
L
Luke "Jared" Bennett 已提交
19
  }
20

21 22
  &:first-of-type {
    margin-right: $issuable-warning-icon-margin;
23 24 25
  }
}

26
.limit-container-width {
27 28 29 30 31
  .detail-page-header,
  .page-content-header,
  .commit-box,
  .info-well,
  .commit-ci-menu,
32
  .files-changed-inner,
33 34
  .limited-header-width,
  .limited-width-notes {
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
    @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 {
54
    .mr-version-controls {
55 56 57 58 59
      @extend .fixed-width-container;
    }
  }
}

60
.issuable-details {
61
  section {
62
    .issuable-discussion {
63 64 65
      margin-right: 1px;
    }
  }
66

67 68 69 70
  .title-container {
    display: flex;
  }

71 72
  .title {
    padding: 0;
C
Clement Ho 已提交
73
    margin-bottom: $gl-padding;
74
    border-bottom: 0;
75 76
  }

77 78
  .btn-edit {
    margin-left: auto;
C
Clement Ho 已提交
79
    height: $gl-padding * 2;
80 81
  }

82
  // Border around images in issue and MR descriptions.
83
  .description img:not(.emoji) {
A
Annabel Dunstone Gray 已提交
84
    border: 1px solid $white-normal;
85
    padding: 5px;
86
    max-height: calc(100vh - 100px);
87
    max-width: 100%;
88
  }
89 90

  .emoji-block {
91
    padding: 10px 0;
92
  }
93
}
94 95 96 97 98 99 100 101

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

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

D
Douwe Maan 已提交
108
    .color-label {
109
      padding: 4px $grid-size;
110
      border-radius: $label-border-radius;
D
Douwe Maan 已提交
111
    }
112 113 114 115

    &:hover .color-label {
      text-decoration: underline;
    }
D
Douwe Maan 已提交
116
  }
P
Phil Hughes 已提交
117 118 119 120

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

P
Phil Hughes 已提交
123
.right-sidebar {
124
  position: fixed;
125 126 127
  top: $header-height;
  bottom: 0;
  right: 0;
128
  transition: width $sidebar-transition-duration;
129 130 131 132
  background: $gray-light;
  z-index: 200;
  overflow: hidden;

133
  a:not(.btn-retry),
134
  .btn-link {
P
Phil Hughes 已提交
135 136 137
    color: inherit;
  }

138 139 140 141
  .btn-link {
    outline: none;
  }

P
Phil Hughes 已提交
142 143 144 145
  .issuable-header-text {
    margin-top: 7px;
  }

146 147
  .block {
    @include clearfix;
148
    padding: $gl-padding 0;
A
Annabel Dunstone Gray 已提交
149
    border-bottom: 1px solid $border-gray-normal;
150
    // This prevents the mess when resizing the sidebar
151
    // of elements repositioning themselves..
J
Jacob Schatz 已提交
152
    width: $gutter_inner_width;
153
    // --
154

P
Phil Hughes 已提交
155 156 157
    &.issuable-sidebar-header {
      padding-top: 0;
      padding-bottom: 10px;
158 159
    }

160
    &:last-child {
161
      border: 0;
162
    }
163

J
Jacob Schatz 已提交
164 165 166 167
    .select2-container span {
      margin-top: 0;
    }

168
    .gutter-toggle {
J
Jacob Schatz 已提交
169
      margin-left: 20px;
170
      padding-left: 10px;
171 172 173 174

      &:hover {
        color: $gray-darkest;
      }
175
    }
176 177 178 179 180 181 182 183

    &.assignee {
      .author_link:hover {
        .author {
          text-decoration: underline;
        }
      }
    }
184
  }
D
Dmitriy Zaporozhets 已提交
185

P
Phil Hughes 已提交
186 187 188 189
  .block-first {
    padding-top: 0;
  }

190 191
  .title {
    color: $gl-text-color;
P
Phil Hughes 已提交
192 193
    margin-bottom: 10px;
    line-height: 1;
V
Valery Sizov 已提交
194

195 196
    .avatar {
      margin-left: 0;
V
Valery Sizov 已提交
197 198
    }

199 200 201 202 203
    a.edit-link:not([href]):hover {
      color: rgba($avatar-border, .2);
    }

    .lock-edit, // uses same style, different js behaviour
204
    .edit-link {
205
      @extend .btn-blank;
T
tauriedavis 已提交
206
      color: $gl-text-color;
P
Phil Hughes 已提交
207

208 209 210
      &:hover {
        text-decoration: underline;
        color: $md-link-color;
P
Phil Hughes 已提交
211
      }
D
Dmitriy Zaporozhets 已提交
212
    }
V
Valery Sizov 已提交
213 214
  }

215
  .cross-project-reference {
P
Phil Hughes 已提交
216
    color: inherit;
217

218 219
    span {
      white-space: nowrap;
J
Jacob Schatz 已提交
220
      width: 85%;
221 222 223 224 225
      overflow: hidden;
      position: relative;
      display: inline-block;
      text-overflow: ellipsis;
    }
V
Valery Sizov 已提交
226

227 228 229 230
    cite {
      font-style: normal;
    }

231 232
    button {
      float: right;
233 234
      padding: 1px 5px;
      background-color: $gray-light;
V
Valery Sizov 已提交
235
    }
236
  }
D
Dmitriy Zaporozhets 已提交
237

238
  .selectbox {
239
    display: none;
240
  }
D
Dmitriy Zaporozhets 已提交
241

242
  .btn-clipboard:hover {
T
tauriedavis 已提交
243
    color: $gl-text-color;
V
Valery Sizov 已提交
244
  }
245 246 247

  .issuable-sidebar {
    width: calc(100% + 100px);
248
    height: 100%;
249 250 251 252
    overflow-y: scroll;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }
253

W
winh 已提交
254 255 256 257
  &.affix-top .issuable-sidebar {
    height: 100%;
  }

258 259
  &.right-sidebar-expanded {
    width: $gutter_width;
J
Jacob Schatz 已提交
260

P
Phil Hughes 已提交
261 262
    .value {
      line-height: 1;
263 264 265 266 267

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

270 271 272 273
    .issuable-sidebar {
      padding: 0 20px;
    }

274 275 276 277
    .issuable-sidebar-header {
      padding-top: 10px;
    }

278
    &:not(.issue-boards-sidebar):not([data-signed-in]):not([data-always-show-toggle]) {
C
Clement Ho 已提交
279 280 281 282 283
      .issuable-sidebar-header {
        display: none;
      }
    }

284 285 286 287
    .assign-yourself .btn-link {
      padding-left: 0;
    }

P
Phil Hughes 已提交
288
    .light {
289
      font-weight: $gl-font-weight-normal;
P
Phil Hughes 已提交
290 291
    }

C
Clement Ho 已提交
292 293
    .no-value,
    .btn-secondary-hover-link {
T
tauriedavis 已提交
294
      color: $gl-text-color-secondary;
295 296
    }

C
Clement Ho 已提交
297 298 299 300
    .btn-secondary-hover-link:hover {
      color: $gl-link-color;
    }

301 302 303 304 305
    .sidebar-collapsed-icon {
      display: none;
    }

    .gutter-toggle {
P
Phil Hughes 已提交
306
      margin-top: 7px;
A
Annabel Dunstone Gray 已提交
307
      border-left: 1px solid $border-gray-normal;
C
Clement Ho 已提交
308
      text-align: center;
309
    }
P
Phil Hughes 已提交
310

C
Clement Ho 已提交
311 312 313 314
    .title .gutter-toggle {
      margin-top: 0;
    }

315
    .assignee .avatar {
P
Phil Hughes 已提交
316 317 318 319 320 321
      float: left;
      margin-right: 10px;
      margin-bottom: 0;
      margin-left: 0;
    }

322 323 324 325
    .assignee .user-list .avatar {
      margin: 0;
    }

P
Phil Hughes 已提交
326 327 328 329
    .username {
      display: block;
      margin-top: 4px;
      font-size: 13px;
330
      font-weight: $gl-font-weight-normal;
P
Phil Hughes 已提交
331
    }
P
Phil Hughes 已提交
332 333 334 335

    .hide-expanded {
      display: none;
    }
336 337 338
  }

  &.right-sidebar-collapsed {
339 340 341
    /* Extra small devices (phones, less than 768px) */
    display: none;
    /* Small devices (tablets, 768px and up) */
342
    @media (min-width: $screen-sm-min) {
343
      display: block;
344 345
    }

346
    width: $gutter_collapsed_width;
347
    padding: 0;
J
Jacob Schatz 已提交
348 349

    .block {
350
      width: $gutter_collapsed_width - 2px;
351
      padding: 15px 0 0;
352
      border-bottom: 0;
353
      overflow: hidden;
J
Jacob Schatz 已提交
354
    }
355

P
Phil Hughes 已提交
356
    .participants {
A
Annabel Dunstone Gray 已提交
357
      border-bottom: 1px solid $border-gray-normal;
P
Phil Hughes 已提交
358 359
    }

360
    .hide-collapsed {
J
Jacob Schatz 已提交
361 362 363
      display: none;
    }

364
    .gutter-toggle {
P
Phil Hughes 已提交
365 366 367
      width: 100%;
      margin-left: 0;
      padding-left: 25px;
368 369 370 371
    }

    .sidebar-collapsed-icon {
      display: block;
372
      width: 100%;
373
      text-align: center;
P
Phil Hughes 已提交
374
      margin-bottom: 10px;
S
Sam Rose 已提交
375
      color: $issuable-sidebar-color;
J
Jacob Schatz 已提交
376

377 378 379 380
      svg {
        fill: $issuable-sidebar-color;
      }

C
Clement Ho 已提交
381
      &:hover:not(.disabled),
D
dimitrieh 已提交
382
      &:hover .todo-undone {
T
tauriedavis 已提交
383
        color: $gl-text-color;
384 385 386 387

        svg {
          fill: $gl-text-color;
        }
388 389
      }

J
Jacob Schatz 已提交
390 391 392 393
      span {
        display: block;
        margin-top: 0;
      }
394

395 396 397 398
      .sidebar-avatar-counter {
        padding-top: 2px;
      }

399 400 401 402
      .todo-undone {
        color: $gl-link-color;
      }

403 404 405 406
      .author {
        display: none;
      }

407 408
      .avatar-counter:hover {
        color: $issuable-sidebar-color;
409
        border-color: $issuable-sidebar-color;
410 411
      }

412
      .btn-clipboard {
413
        border: 0;
T
tauriedavis 已提交
414
        color: $issuable-sidebar-color;
415 416 417

        &:hover {
          background: transparent;
T
tauriedavis 已提交
418
          color: $gl-text-color;
419 420
        }
      }
421 422 423 424 425 426 427 428 429 430 431

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

    .sidebar-avatar-counter {
      width: 24px;
      height: 24px;
      border-radius: 12px;
432
    }
P
Phil Hughes 已提交
433 434 435 436 437

    .sidebar-collapsed-user {
      padding-bottom: 0;
      margin-bottom: 10px;
    }
438 439 440 441

    .issuable-header-btn {
      display: none;
    }
442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472

    .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;
        }
      }
    }
473

C
Clement Ho 已提交
474 475
    .milestone-title span,
    .collapse-truncated-title {
476 477 478 479
      @include str-truncated(100%);
      display: block;
      margin: 0 4px;
    }
J
Jacob Schatz 已提交
480 481
  }

F
Filipa Lacerda 已提交
482
  a:not(.btn-retry) {
P
Phil Hughes 已提交
483 484
    &:hover {
      color: $md-link-color;
485 486

      .avatar {
487
        border-color: rgba($avatar-border, .2);
488
      }
P
Phil Hughes 已提交
489 490
    }
  }
P
Phil Hughes 已提交
491

492 493
  .dropdown-menu-toggle {
    width: 100%;
494
    padding-top: 6px;
495 496
  }

497
  .dropdown-menu {
498 499
    width: 100%;
  }
500
}
J
Jacob Schatz 已提交
501

502
.with-performance-bar .right-sidebar {
503
  top: $header-height + $performance-bar-height;
504 505 506 507

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

510 511 512 513 514 515 516 517 518 519 520 521 522 523
.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 已提交
524
.detail-page-description {
525
  padding: 16px 0;
526

J
Jacob Schatz 已提交
527 528 529
  small {
    color: $gray-darkest;
  }
530
}
P
Phil Hughes 已提交
531 532 533

.edited-text {
  color: $gray-darkest;
534
  display: block;
535
  margin: 16px 0 0;
536
  font-size: 85%;
P
Phil Hughes 已提交
537 538 539 540 541

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

.participants-list {
E
Eric Eastwood 已提交
544 545 546
  display: flex;
  flex-wrap: wrap;
  margin: -7px;
P
Phil Hughes 已提交
547 548
}

C
Clement Ho 已提交
549

550 551 552 553 554
.user-list {
  display: flex;
  flex-wrap: wrap;
}

P
Phil Hughes 已提交
555
.participants-author {
C
Clement Ho 已提交
556
  display: inline-block;
E
Eric Eastwood 已提交
557
  padding: 7px;
P
Phil Hughes 已提交
558

C
Clement Ho 已提交
559 560 561 562
  &:nth-of-type(7n) {
    padding-right: 0;
  }

P
Phil Hughes 已提交
563 564 565 566 567 568 569 570 571
  .author_link {
    display: block;
  }

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

572 573 574 575 576 577 578 579 580 581 582 583
.user-item {
  display: inline-block;
  padding: 5px;
  flex-basis: 20%;

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

.participants-more,
.user-list-more {
P
Phil Hughes 已提交
584 585 586
  margin-top: 5px;
  margin-left: 5px;

587 588
  a,
  .btn-link {
T
tauriedavis 已提交
589
    color: $gl-text-color-secondary;
P
Phil Hughes 已提交
590
  }
591 592 593 594 595 596 597 598 599 600 601 602 603 604

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

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

  .btn-link:focus {
    text-decoration: none;
  }
P
Phil Hughes 已提交
605
}
606 607 608 609 610 611

.issuable-form-padding-top {
  @media (min-width: $screen-sm-min) {
    padding-top: 7px;
  }
}
612 613

.issuable-status-box {
E
Eric Eastwood 已提交
614 615 616 617
  align-self: stretch;
  display: flex;
  justify-content: center;
  align-items: center;
618
  margin-top: 0;
E
Eric Eastwood 已提交
619 620 621 622 623 624 625 626
  padding-left: 9px;
  padding-right: 9px;

  @media (min-width: $screen-sm-min) {
    display: inline-block;
    height: auto;
    align-self: center;
  }
627 628 629 630
}

.issuable-gutter-toggle {
  @media (max-width: $screen-sm-max) {
E
Eric Eastwood 已提交
631
    margin-left: $btn-side-margin;
632 633 634 635
  }
}

.issuable-meta {
E
Eric Eastwood 已提交
636
  flex: 1;
637
  display: inline-block;
638
  font-size: 14px;
639 640
  line-height: 24px;
  align-self: center;
641
}
642 643 644 645 646

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

648 649 650 651
  @media (max-width: $screen-sm-max) {
    margin-bottom: $gl-padding;
  }
}
652 653 654

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

N
Nur Rony 已提交
656 657 658 659 660 661 662 663
    .issue-box {
      display: -webkit-flex;
      display: flex;
    }

    .issue-info-container {
      -webkit-flex: 1;
      flex: 1;
T
Taurie Davis 已提交
664
      display: flex;
N
Nur Rony 已提交
665
      padding-right: $gl-padding;
T
Taurie Davis 已提交
666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695

      .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 已提交
696 697
    }

698
    .issue-check {
699
      padding-right: $gl-padding;
700 701 702 703 704 705 706
      margin-bottom: 10px;
      min-width: 15px;

      .selected_issue {
        vertical-align: text-top;
      }
    }
T
Taurie Davis 已提交
707 708 709 710 711

    .issuable-milestone,
    .issuable-info,
    .task-status,
    .issuable-updated-at {
712
      font-weight: $gl-font-weight-normal;
T
Taurie Davis 已提交
713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730
      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;
      }
    }
731 732
  }
}
733

734 735 736 737 738 739 740 741 742 743 744 745 746
.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;
  }
}

747 748 749 750 751 752 753 754 755 756 757 758 759 760
.time_tracker {
  padding-bottom: 0;
  border-bottom: 0;


  .sidebar-collapsed-icon {

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

    svg {
      width: 16px;
      height: 16px;
761
      fill: $issuable-sidebar-color;
762 763 764
    }

    &:hover svg {
B
Bryce Johnson 已提交
765
      fill: $gl-text-color;
766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782
    }
  }

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

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

    &.over_estimate {
      .meter-fill {
783
        background: $red-500;
784 785 786 787
      }

      .time-remaining,
      .compare-value.spent {
788
        color: $red-500;
789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811
      }
    }
  }

  .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 已提交
812
      color: $compare-display-color;
813 814

      .compare-value {
B
Bryce Johnson 已提交
815
        color: $gl-text-color;
816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844
      }
    }
  }

  .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 已提交
845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862

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

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

    &.sidebar-collapsed-icon {
      .issuable-todo-inner {
        display: none;
      }
    }
  }
}
863 864 865 866 867 868

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

869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884
.issuable-close-dropdown {
  .dropdown-menu {
    min-width: 270px;
    left: auto;
    right: 0;
  }

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

  .dropdown-toggle > .icon {
    margin: 0 3px;
  }
885
}
C
Clement Ho 已提交
886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903

.right-sidebar-collapsed {
  .sidebar-grouped-item {
    .sidebar-collapsed-icon {
      margin-bottom: 0;
    }

    .sidebar-collapsed-divider {
      line-height: 5px;
      font-size: 12px;
      color: $theme-gray-700;

      + .sidebar-collapsed-icon {
        padding-top: 0;
      }
    }
  }
}