issuable.scss 11.1 KB
Newer Older
1 2 3 4 5 6 7 8
// 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;
}

.limit-container-width {
9 10 11 12 13 14 15
  .detail-page-header,
  .page-content-header,
  .commit-box,
  .info-well,
  .notes,
  .commit-ci-menu,
  .files-changed {
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
    @extend .fixed-width-container;
  }

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

    .merge-request-tabs-holder {
      &.affix {
        border-bottom: 1px solid $border-color;

        .nav-links {
          border: 0;
        }
      }
    }
  }

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

  .diffs {
45
    .mr-version-controls {
46 47 48 49 50
      @extend .fixed-width-container;
    }
  }
}

51
.issuable-details {
52
  section {
53
    .issuable-discussion {
54 55 56
      margin-right: 1px;
    }
  }
57

58 59
  .title {
    padding: 0;
60
    margin-bottom: 16px;
61 62 63
    border-bottom: none;
  }

64
  // Border around images in issue and MR descriptions.
65
  .description img:not(.emoji) {
A
Annabel Dunstone Gray 已提交
66
    border: 1px solid $white-normal;
67
    padding: 5px;
68
    max-height: calc(100vh - 100px);
69
  }
70
}
71 72 73 74 75 76 77 78

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

D
Douwe Maan 已提交
80 81 82 83 84
.issuable-show-labels {
  a {
    margin-right: 5px;
    margin-bottom: 5px;
    display: inline-block;
85

D
Douwe Maan 已提交
86 87
    .color-label {
      padding: 6px 10px;
88
      border-radius: $label-border-radius;
D
Douwe Maan 已提交
89 90
    }
  }
P
Phil Hughes 已提交
91 92 93 94

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

P
Phil Hughes 已提交
97
.right-sidebar {
98 99
  a,
  .btn-link {
P
Phil Hughes 已提交
100 101 102
    color: inherit;
  }

103 104 105 106
  .btn-link {
    outline: none;
  }

P
Phil Hughes 已提交
107 108 109 110
  .issuable-header-text {
    margin-top: 7px;
  }

111 112
  .block {
    @include clearfix;
113
    padding: $gl-padding 0;
A
Annabel Dunstone Gray 已提交
114
    border-bottom: 1px solid $border-gray-normal;
115
    // This prevents the mess when resizing the sidebar
116
    // of elements repositioning themselves..
J
Jacob Schatz 已提交
117
    width: $gutter_inner_width;
118
    // --
119

P
Phil Hughes 已提交
120 121 122
    &.issuable-sidebar-header {
      padding-top: 0;
      padding-bottom: 10px;
123 124
    }

125 126 127
    &:last-child {
      border: none;
    }
128

J
Jacob Schatz 已提交
129
    span {
130 131 132
      display: inline-block;
    }

J
Jacob Schatz 已提交
133 134 135 136
    .select2-container span {
      margin-top: 0;
    }

137
    .gutter-toggle {
J
Jacob Schatz 已提交
138
      margin-left: 20px;
139
      padding-left: 10px;
140 141 142 143

      &:hover {
        color: $gray-darkest;
      }
144
    }
145
  }
D
Dmitriy Zaporozhets 已提交
146

P
Phil Hughes 已提交
147 148 149 150
  .block-first {
    padding-top: 0;
  }

151 152
  .title {
    color: $gl-text-color;
P
Phil Hughes 已提交
153 154
    margin-bottom: 10px;
    line-height: 1;
V
Valery Sizov 已提交
155

156 157
    .avatar {
      margin-left: 0;
V
Valery Sizov 已提交
158 159
    }

160
    .edit-link {
T
tauriedavis 已提交
161
      color: $gl-text-color;
P
Phil Hughes 已提交
162

163 164
      &:not([href]):hover {
        color: rgba($avatar-border, .2);
P
Phil Hughes 已提交
165
      }
D
Dmitriy Zaporozhets 已提交
166
    }
V
Valery Sizov 已提交
167 168
  }

169
  .cross-project-reference {
P
Phil Hughes 已提交
170
    color: inherit;
171

172 173
    span {
      white-space: nowrap;
J
Jacob Schatz 已提交
174
      width: 85%;
175 176 177 178 179
      overflow: hidden;
      position: relative;
      display: inline-block;
      text-overflow: ellipsis;
    }
V
Valery Sizov 已提交
180

181 182 183 184
    cite {
      font-style: normal;
    }

185 186
    button {
      float: right;
187 188
      padding: 1px 5px;
      background-color: $gray-light;
V
Valery Sizov 已提交
189
    }
190
  }
D
Dmitriy Zaporozhets 已提交
191

192
  .selectbox {
193
    display: none;
194
  }
D
Dmitriy Zaporozhets 已提交
195

196
  .btn-clipboard:hover {
T
tauriedavis 已提交
197
    color: $gl-text-color;
V
Valery Sizov 已提交
198
  }
199
}
J
Jacob Schatz 已提交
200 201

.right-sidebar {
202
  position: absolute;
203
  top: $header-height;
204
  bottom: 0;
J
Jacob Schatz 已提交
205
  right: 0;
206
  transition: width .3s;
J
Jacob Schatz 已提交
207 208
  background: $gray-light;
  padding: 10px 20px;
S
Simon Knox 已提交
209
  z-index: 2;
210

211 212
  &.right-sidebar-expanded {
    width: $gutter_width;
J
Jacob Schatz 已提交
213

P
Phil Hughes 已提交
214 215
    .value {
      line-height: 1;
216 217 218 219 220

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

223 224 225 226
    .assign-yourself .btn-link {
      padding-left: 0;
    }

P
Phil Hughes 已提交
227 228 229 230
    .light {
      font-weight: normal;
    }

231
    .no-value {
T
tauriedavis 已提交
232
      color: $gl-text-color-secondary;
233 234
    }

235 236 237 238 239
    .sidebar-collapsed-icon {
      display: none;
    }

    .gutter-toggle {
P
Phil Hughes 已提交
240
      margin-top: 7px;
A
Annabel Dunstone Gray 已提交
241
      border-left: 1px solid $border-gray-normal;
242
    }
P
Phil Hughes 已提交
243

244
    .assignee .avatar {
P
Phil Hughes 已提交
245 246 247 248 249 250
      float: left;
      margin-right: 10px;
      margin-bottom: 0;
      margin-left: 0;
    }

251 252 253 254
    .assignee .user-list .avatar {
      margin: 0;
    }

P
Phil Hughes 已提交
255 256 257 258 259 260
    .username {
      display: block;
      margin-top: 4px;
      font-size: 13px;
      font-weight: normal;
    }
P
Phil Hughes 已提交
261 262 263 264

    .hide-expanded {
      display: none;
    }
265 266 267
  }

  &.right-sidebar-collapsed {
268 269 270
    /* Extra small devices (phones, less than 768px) */
    display: none;
    /* Small devices (tablets, 768px and up) */
271
    @media (min-width: $screen-sm-min) {
272
      display: block;
273 274
    }

275
    width: $gutter_collapsed_width;
J
Jacob Schatz 已提交
276 277 278
    padding-top: 0;

    .block {
279
      width: $gutter_collapsed_width - 2px;
280
      margin-left: -19px;
281
      padding: 15px 0 0;
282 283
      border-bottom: none;
      overflow: hidden;
J
Jacob Schatz 已提交
284
    }
285

P
Phil Hughes 已提交
286
    .participants {
A
Annabel Dunstone Gray 已提交
287
      border-bottom: 1px solid $border-gray-normal;
P
Phil Hughes 已提交
288 289
    }

290
    .hide-collapsed {
J
Jacob Schatz 已提交
291 292 293
      display: none;
    }

294
    .gutter-toggle {
P
Phil Hughes 已提交
295 296 297
      width: 100%;
      margin-left: 0;
      padding-left: 25px;
298 299 300 301
    }

    .sidebar-collapsed-icon {
      display: block;
302
      width: 100%;
303
      text-align: center;
P
Phil Hughes 已提交
304
      margin-bottom: 10px;
S
Sam Rose 已提交
305
      color: $issuable-sidebar-color;
J
Jacob Schatz 已提交
306

D
dimitrieh 已提交
307 308
      &:hover,
      &:hover .todo-undone {
T
tauriedavis 已提交
309
        color: $gl-text-color;
310 311
      }

J
Jacob Schatz 已提交
312 313 314 315
      span {
        display: block;
        margin-top: 0;
      }
316

317 318 319 320
      .sidebar-avatar-counter {
        padding-top: 2px;
      }

321 322 323 324
      .todo-undone {
        color: $gl-link-color;
      }

325 326 327 328
      .author {
        display: none;
      }

329 330
      .avatar:hover,
      .avatar-counter:hover {
T
tauriedavis 已提交
331
        border-color: $issuable-sidebar-color;
332 333
      }

334 335 336 337
      .avatar-counter:hover {
        color: $issuable-sidebar-color;
      }

338 339
      .btn-clipboard {
        border: none;
T
tauriedavis 已提交
340
        color: $issuable-sidebar-color;
341 342 343

        &:hover {
          background: transparent;
T
tauriedavis 已提交
344
          color: $gl-text-color;
345 346
        }
      }
347 348 349 350 351 352 353 354 355 356 357

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

    .sidebar-avatar-counter {
      width: 24px;
      height: 24px;
      border-radius: 12px;
358
    }
P
Phil Hughes 已提交
359 360 361 362 363

    .sidebar-collapsed-user {
      padding-bottom: 0;
      margin-bottom: 10px;
    }
364 365 366 367

    .issuable-header-btn {
      display: none;
    }
368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398

    .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 已提交
399 400
  }

401
  a {
P
Phil Hughes 已提交
402 403 404
    &:hover {
      color: $md-link-color;
      text-decoration: none;
405 406

      .avatar {
407
        border-color: rgba($avatar-border, .2);
408
      }
P
Phil Hughes 已提交
409 410
    }
  }
P
Phil Hughes 已提交
411

412 413 414 415 416 417
  .dropdown-content {
    a:hover {
      color: inherit;
    }
  }

418 419
  .dropdown-menu-toggle {
    width: 100%;
420
    padding-top: 6px;
421 422 423 424 425
  }

  .open .dropdown-menu {
    width: 100%;
  }
426
}
J
Jacob Schatz 已提交
427 428

.detail-page-description {
429 430
  padding: 16px 0 0;

J
Jacob Schatz 已提交
431 432 433
  small {
    color: $gray-darkest;
  }
434
}
P
Phil Hughes 已提交
435 436 437

.edited-text {
  color: $gray-darkest;
438 439
  display: block;
  margin: 0 0 16px;
P
Phil Hughes 已提交
440 441 442 443 444

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

.participants-list {
447
  margin: -5px;
P
Phil Hughes 已提交
448 449
}

C
Clement Ho 已提交
450

451 452 453 454 455
.user-list {
  display: flex;
  flex-wrap: wrap;
}

P
Phil Hughes 已提交
456
.participants-author {
C
Clement Ho 已提交
457
  display: inline-block;
458
  padding: 5px;
P
Phil Hughes 已提交
459

C
Clement Ho 已提交
460 461 462 463
  &:nth-of-type(7n) {
    padding-right: 0;
  }

P
Phil Hughes 已提交
464 465 466 467 468 469 470 471 472
  .author_link {
    display: block;
  }

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

473 474 475 476 477 478 479 480 481 482 483 484
.user-item {
  display: inline-block;
  padding: 5px;
  flex-basis: 20%;

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

.participants-more,
.user-list-more {
P
Phil Hughes 已提交
485 486 487
  margin-top: 5px;
  margin-left: 5px;

488 489
  a,
  .btn-link {
T
tauriedavis 已提交
490
    color: $gl-text-color-secondary;
P
Phil Hughes 已提交
491
  }
492 493 494 495 496 497 498 499 500 501 502 503 504 505

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

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

  .btn-link:focus {
    text-decoration: none;
  }
P
Phil Hughes 已提交
506
}
507 508 509 510 511 512

.issuable-form-padding-top {
  @media (min-width: $screen-sm-min) {
    padding-top: 7px;
  }
}
513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558

.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;
559
  font-size: 14px;
560
}
561 562 563 564 565

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

567 568 569 570
  @media (max-width: $screen-sm-max) {
    margin-bottom: $gl-padding;
  }
}
571 572 573

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

N
Nur Rony 已提交
575 576 577 578 579 580 581 582 583
    .issue-box {
      display: -webkit-flex;
      display: flex;
    }

    .issue-info-container {
      -webkit-flex: 1;
      flex: 1;
      padding-right: $gl-padding;
N
Nur Rony 已提交
584 585
    }

586
    .issue-check {
587
      padding-right: $gl-padding;
588 589 590 591 592 593 594 595 596
      margin-bottom: 10px;
      min-width: 15px;

      .selected_issue {
        vertical-align: text-top;
      }
    }
  }
}
597

598 599 600 601 602 603 604 605 606 607 608 609 610
.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;
  }
}

611 612 613 614 615 616 617 618 619 620 621 622 623 624
.time_tracker {
  padding-bottom: 0;
  border-bottom: 0;


  .sidebar-collapsed-icon {

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

    svg {
      width: 16px;
      height: 16px;
625
      fill: $issuable-sidebar-color;
626 627 628
    }

    &:hover svg {
B
Bryce Johnson 已提交
629
      fill: $gl-text-color;
630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646
    }
  }

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

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

    &.over_estimate {
      .meter-fill {
647
        background: $red-500;
648 649 650 651
      }

      .time-remaining,
      .compare-value.spent {
652
        color: $red-500;
653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675
      }
    }
  }

  .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 已提交
676
      color: $compare-display-color;
677 678

      .compare-value {
B
Bryce Johnson 已提交
679
        color: $gl-text-color;
680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708
      }
    }
  }

  .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 已提交
709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726

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

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

    &.sidebar-collapsed-icon {
      .issuable-todo-inner {
        display: none;
      }
    }
  }
}