dropdowns.scss 15.9 KB
Newer Older
Phil Hughes's avatar
Phil Hughes committed
1 2
.dropdown {
  position: relative;
3 4 5 6 7 8

  .btn-link {
    &:hover {
      cursor: pointer;
    }
  }
9
}
Phil Hughes's avatar
Phil Hughes committed
10

11 12
@mixin chevron-active {
  .fa-chevron-down {
13
    color: $gray-darkest;
14 15 16
  }
}

17 18
@mixin set-visible {
  transform: translateY(0);
19
  display: block;
20 21 22 23
}

@mixin set-invisible {
  transform: translateY(-10px);
24
  display: none;
25 26
}

27
.open {
Phil Hughes's avatar
Phil Hughes committed
28 29
  .dropdown-menu,
  .dropdown-menu-nav {
30
    @include set-visible;
31 32
    min-height: $dropdown-min-height;
    max-height: $dropdown-max-height;
33
    overflow-y: auto;
34

35 36 37
    @media (max-width: $screen-xs-max) {
      width: 100%;
    }
Phil Hughes's avatar
Phil Hughes committed
38
  }
39

40
  .dropdown-toggle,
41
  .dropdown-menu-toggle {
42
    @include chevron-active;
43
    border-color: $gray-darkest;
44
  }
45

46
  [data-toggle='dropdown'] {
47 48
    outline: 0;
  }
49 50
}

51 52 53 54 55
// Get search dropdown to line up with other nav dropdowns
.search-input-container .dropdown-menu {
  margin-top: 11px;
}

56 57
.dropdown-toggle {
  padding: 6px 8px 6px 10px;
58
  background-color: $white-light;
59
  color: $gl-text-color;
60
  font-size: 14px;
61
  text-align: left;
62
  border: 1px solid $border-color;
Phil Hughes's avatar
Phil Hughes committed
63
  border-radius: $border-radius-base;
64 65
  white-space: nowrap;

66 67 68 69
  &.no-outline {
    outline: 0;
  }

70 71 72
  &.large {
    width: 200px;
  }
73 74 75 76 77 78 79 80

  &.wide {
    width: 100%;

    + .dropdown-select {
      width: 100%;
    }
  }
81 82 83 84 85 86 87 88 89

  // Allows dynamic-width text in the dropdown toggle.
  // Resizes to allow long text without overflowing the container.
  &.dynamic {
    width: auto;
    min-width: 160px;
    max-width: 100%;
    padding-right: 25px;
  }
90 91

  .fa {
92
    color: $gray-darkest;
93 94 95 96 97
  }

  .fa-chevron-down {
    font-size: $dropdown-chevron-size;
    position: relative;
98
    top: -2px;
99 100 101 102
    margin-left: 5px;
  }

  &:hover {
103
    @include chevron-active;
104
    border-color: $gray-darkest;
105 106 107
  }

  &:focus:active {
108
    @include chevron-active;
109
    border-color: $dropdown-toggle-active-border-color;
110
    outline: 0;
111 112 113 114 115
  }
}

.dropdown-menu-toggle {
  @extend .dropdown-toggle;
116
  padding-right: 25px;
117
  position: relative;
118
  width: 163px;
119 120 121 122 123 124 125 126
  text-overflow: ellipsis;
  overflow: hidden;

  .fa {
    position: absolute;

    &.fa-spinner {
      font-size: 16px;
127
      margin-top: -3px;
128 129 130
    }
  }

131 132
  .fa-chevron-down,
  .fa-spinner {
133 134 135 136
    position: absolute;
    top: 11px;
    right: 8px;
  }
Phil Hughes's avatar
Phil Hughes committed
137 138
}

139 140 141
@mixin dropdown-item-hover {
  background-color: $dropdown-item-hover-bg;
  color: $gl-text-color;
142
  outline: 0;
143 144 145 146 147

  // make sure the text color is not overriden
  &.text-danger {
    color: $brand-danger;
  }
148 149 150 151

  .avatar {
    border-color: $white-light;
  }
152 153
}

154
@mixin dropdown-link {
155 156 157 158
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
159
  display: block;
160
  font-weight: $gl-font-weight-normal;
161
  position: relative;
162
  padding: 8px 16px;
163
  color: $gl-text-color;
164 165
  line-height: normal;
  white-space: normal;
166
  overflow: hidden;
167 168
  text-align: left;
  width: 100%;
169

170 171 172 173 174
  // make sure the text color is not overriden
  &.text-danger {
    color: $brand-danger;
  }

175 176 177 178 179
  &.disable-hover {
    text-decoration: none;
  }

  &:not(.disable-hover):hover,
180
  &:active,
181 182
  &:focus,
  &.is-focused {
183 184
    @include dropdown-item-hover;

185 186 187 188 189 190 191 192 193
    text-decoration: none;

    .badge {
      background-color: darken($dropdown-link-hover-bg, 5%);
    }
  }

  &.dropdown-menu-user-link {
    line-height: 16px;
194 195 196 197 198 199 200
    padding-top: 10px;
    padding-bottom: 7px;
    white-space: nowrap;

    .dropdown-menu-user-username {
      display: block;
    }
201 202 203 204 205 206 207 208 209 210
  }

  .icon-play {
    fill: $gl-text-color-secondary;
    margin-right: 6px;
    height: 12px;
    width: 11px;
  }
}

Phil Hughes's avatar
Phil Hughes committed
211 212
.dropdown-menu,
.dropdown-menu-nav {
213
  @include set-invisible;
Phil Hughes's avatar
Phil Hughes committed
214
  position: absolute;
215
  width: auto;
Phil Hughes's avatar
Phil Hughes committed
216 217
  top: 100%;
  left: 0;
218
  z-index: 300;
219
  min-width: 240px;
220
  max-width: 500px;
Winnie Hellmann's avatar
Winnie Hellmann committed
221
  margin-top: $dropdown-vertical-offset;
222
  margin-bottom: 24px;
223
  font-size: 14px;
224
  font-weight: $gl-font-weight-normal;
225
  padding: 8px 0;
226
  background-color: $white-light;
Phil Hughes's avatar
Phil Hughes committed
227
  border: 1px solid $dropdown-border-color;
Phil Hughes's avatar
Phil Hughes committed
228
  border-radius: $border-radius-base;
Phil Hughes's avatar
Phil Hughes committed
229
  box-shadow: 0 2px 4px $dropdown-shadow-color;
230

231 232 233 234
  &.dropdown-open-top {
    margin-bottom: $dropdown-vertical-offset;
  }

235 236 237 238 239
  &.dropdown-open-left {
    right: 0;
    left: auto;
  }

Phil Hughes's avatar
Phil Hughes committed
240 241 242 243 244 245 246 247 248 249
  &.is-loading {
    .dropdown-content {
      display: none;
    }

    .dropdown-loading {
      display: block;
    }
  }

250
  .shortcut-mappings {
251 252 253
    display: none;
  }

254
  &.shortcuts .shortcut-mappings {
255
    display: inline-block;
256
    margin-right: 5px;
257 258
  }

Phil Hughes's avatar
Phil Hughes committed
259 260 261 262 263
  ul {
    margin: 0;
    padding: 0;
  }

Phil Hughes's avatar
Phil Hughes committed
264
  li {
265
    display: block;
Phil Hughes's avatar
Phil Hughes committed
266 267
    text-align: left;
    list-style: none;
268
    padding: 0 1px;
269 270 271 272 273 274

    a,
    button,
    .menu-item {
      @include dropdown-link;
    }
Phil Hughes's avatar
Phil Hughes committed
275 276 277
  }

  .divider {
278
    height: 1px;
279
    margin: #{$grid-size / 2} 0;
280 281
    padding: 0;
    background-color: $dropdown-divider-color;
282 283 284 285

    &:hover {
      background-color: $dropdown-divider-color;
    }
286 287 288
  }

  .separator {
Phil Hughes's avatar
Phil Hughes committed
289 290 291 292 293 294 295
    width: 100%;
    height: 1px;
    margin-top: 8px;
    margin-bottom: 8px;
    background-color: $dropdown-divider-color;
  }

296 297 298 299 300 301 302
  .dropdown-menu-empty-item a {
    &:hover,
    &:focus {
      background-color: transparent;
    }
  }

303
  .dropdown-header {
304
    color: $gl-text-color-secondary;
305 306
    font-size: 13px;
    line-height: 22px;
307
    padding: 8px 16px;
308 309
  }

Clement Ho's avatar
Clement Ho committed
310 311 312 313
  &.capitalize-header .dropdown-header {
    text-transform: capitalize;
  }

Tim Zallmann's avatar
Tim Zallmann committed
314
  .dropdown-bold-header {
315
    font-weight: $gl-font-weight-bold;
Tim Zallmann's avatar
Tim Zallmann committed
316 317 318 319
    line-height: 22px;
    padding: 0 16px;
  }

Tim Zallmann's avatar
Tim Zallmann committed
320
  .separator + .dropdown-header,
321
  .separator + .dropdown-bold-header {
322
    padding-top: 10px;
323
  }
324 325 326 327

  .unclickable {
    cursor: not-allowed;
    padding: 5px 8px;
328
    color: $gl-text-color-secondary;
329
  }
330 331 332 333 334

  .badge + span:not(.badge) {
    // Expects up to 3 digits on the badge
    margin-right: 40px;
  }
Phil Hughes's avatar
Phil Hughes committed
335 336
}

337 338 339 340 341
.droplab-dropdown {
  .dropdown-toggle > i {
    pointer-events: none;
  }

342
  .dropdown-menu li {
343
    cursor: pointer;
344

345 346 347 348
    &.droplab-item-active button {
      @include dropdown-item-hover;
    }

349 350
    > a,
    > button {
351
      display: flex;
352 353
      margin: 0;
      text-overflow: inherit;
354
      text-align: left;
355

356 357 358
      &.btn .fa:not(:last-child) {
        margin-left: 5px;
      }
359 360 361 362 363 364
    }

    &.droplab-item-selected i {
      visibility: visible;
    }

365
    .icon {
366 367
      visibility: hidden;
    }
368 369 370 371 372 373 374 375 376 377

    .description {
      display: inline-block;
      white-space: normal;
      margin-left: 5px;

      p {
        margin-bottom: 0;
      }
    }
378 379
  }

380
  .icon {
381 382 383 384 385 386 387 388
    display: inline-block;
    vertical-align: top;
    padding-top: 2px;
  }
}

.droplab-dropdown .dropdown-menu,
.droplab-dropdown .dropdown-menu-nav {
389 390 391 392 393 394
  display: none;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

395 396 397 398
.comment-type-dropdown.open .dropdown-menu {
  display: block;
}

399 400 401 402 403 404 405
.filtered-search-box-input-container {
  .dropdown-menu,
  .dropdown-menu-nav {
    max-width: 280px;
  }
}

Phil Hughes's avatar
Phil Hughes committed
406 407 408 409 410
.dropdown-menu-drop-up {
  top: auto;
  bottom: 100%;
}

411 412 413 414 415 416 417 418 419 420
.dropdown-menu-large {
  width: 340px;
}

.dropdown-menu-no-wrap {
  a {
    white-space: normal;
  }
}

Phil Hughes's avatar
Phil Hughes committed
421 422 423 424
.dropdown-menu-full-width {
  width: 100%;
}

Phil Hughes's avatar
Phil Hughes committed
425
.dropdown-menu-paging {
426 427
  .dropdown-page-two,
  .dropdown-menu-back {
Phil Hughes's avatar
Phil Hughes committed
428 429 430 431 432 433 434 435
    display: none;
  }

  &.is-page-two {
    .dropdown-page-one {
      display: none;
    }

436 437
    .dropdown-page-two,
    .dropdown-menu-back {
Phil Hughes's avatar
Phil Hughes committed
438 439
      display: block;
    }
440 441 442 443

    .dropdown-content {
      padding: 0 10px;
    }
Phil Hughes's avatar
Phil Hughes committed
444 445 446 447 448 449
  }
}

.dropdown-menu-user {
  .avatar {
    float: left;
450 451
    width: 2 * $gl-padding;
    height: 2 * $gl-padding;
Phil Hughes's avatar
Phil Hughes committed
452 453 454 455 456 457
    margin: 0 10px 0 0;
  }
}

.dropdown-menu-user-full-name {
  display: block;
458
  font-weight: $gl-font-weight-normal;
459
  line-height: 16px;
Phil Hughes's avatar
Phil Hughes committed
460 461 462 463 464 465 466
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.dropdown-menu-user-username {
  display: block;
467
  line-height: 16px;
Phil Hughes's avatar
Phil Hughes committed
468 469 470 471 472 473
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.dropdown-select {
474
  width: $dropdown-width;
475 476 477 478

  @media (max-width: $screen-sm-min) {
    width: 100%;
  }
Phil Hughes's avatar
Phil Hughes committed
479 480
}

Phil Hughes's avatar
Phil Hughes committed
481 482 483 484 485 486
.dropdown-menu-align-right {
  left: auto;
  right: 0;
}

.dropdown-menu-selectable {
487
  li {
haseeb's avatar
haseeb committed
488 489
    a,
    button {
490 491
      padding: 8px 40px;
      position: relative;
Phil Hughes's avatar
Phil Hughes committed
492

493 494 495
      &.is-indeterminate,
      &.is-active {
        color: $gl-text-color;
496 497

        &::before {
498 499 500 501 502 503 504 505 506 507 508
          position: absolute;
          left: 16px;
          top: 16px;
          transform: translateY(-50%);
          font: normal normal normal 14px/1 FontAwesome;
          font-size: inherit;
          text-rendering: auto;
          -webkit-font-smoothing: antialiased;
          -moz-osx-font-smoothing: grayscale;
        }

509 510
        &.dropdown-menu-user-link::before {
          top: 50%;
511 512
        }
      }
Alfredo Sumaran's avatar
Alfredo Sumaran committed
513

514
      &.is-indeterminate::before {
515
        content: '\f068';
516
      }
Alfredo Sumaran's avatar
Alfredo Sumaran committed
517

518
      &.is-active::before {
519
        content: '\f00c';
520
      }
Alfredo Sumaran's avatar
Alfredo Sumaran committed
521
    }
Phil Hughes's avatar
Phil Hughes committed
522 523 524
  }
}

Phil Hughes's avatar
Phil Hughes committed
525 526
.dropdown-title {
  position: relative;
527
  padding: 2px 25px 10px;
528
  margin: 0 10px 10px;
529
  font-weight: $gl-font-weight-bold;
Phil Hughes's avatar
Phil Hughes committed
530 531 532 533 534 535 536 537 538 539
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-bottom: 1px solid $dropdown-divider-color;
  overflow: hidden;
}

.dropdown-title-button {
  position: absolute;
540
  top: 0;
Phil Hughes's avatar
Phil Hughes committed
541
  padding: 0;
Phil Hughes's avatar
Phil Hughes committed
542
  color: $dropdown-title-btn-color;
Phil Hughes's avatar
Phil Hughes committed
543 544 545
  font-size: 14px;
  border: 0;
  background: none;
546
  outline: 0;
Phil Hughes's avatar
Phil Hughes committed
547 548

  &:hover {
Phil Hughes's avatar
Phil Hughes committed
549
    color: darken($dropdown-title-btn-color, 15%);
Phil Hughes's avatar
Phil Hughes committed
550 551 552 553
  }
}

.dropdown-menu-close {
Phil Hughes's avatar
Phil Hughes committed
554
  right: 5px;
555 556
  width: 20px;
  height: 20px;
557
  top: -1px;
Phil Hughes's avatar
Phil Hughes committed
558 559 560
}

.dropdown-menu-back {
561 562
  left: 7px;
  top: 2px;
Phil Hughes's avatar
Phil Hughes committed
563 564 565 566 567
}

.dropdown-input {
  position: relative;
  margin-bottom: 10px;
568
  padding: 0 10px;
Phil Hughes's avatar
Phil Hughes committed
569 570 571 572

  .fa {
    position: absolute;
    top: 10px;
573
    right: 20px;
574
    color: $dropdown-input-fa-color;
Phil Hughes's avatar
Phil Hughes committed
575 576 577
    font-size: 12px;
    pointer-events: none;
  }
578 579 580 581 582

  .dropdown-input-clear {
    display: none;
    cursor: pointer;
    pointer-events: all;
583 584 585
    right: 22px;
    top: 9px;
    font-size: 14px;
586 587 588 589 590 591 592 593 594 595 596
  }

  &.has-value {
    .dropdown-input-clear {
      display: block;
    }

    .dropdown-input-search {
      display: none;
    }
  }
Phil Hughes's avatar
Phil Hughes committed
597 598
}

599 600
.dropdown-input-field,
.default-dropdown-input {
Phil Hughes's avatar
Phil Hughes committed
601
  display: block;
Phil Hughes's avatar
Phil Hughes committed
602
  width: 100%;
603
  min-height: 30px;
Phil Hughes's avatar
Phil Hughes committed
604
  padding: 0 7px;
Phil Hughes's avatar
Phil Hughes committed
605
  color: $dropdown-input-color;
Phil Hughes's avatar
Phil Hughes committed
606 607 608 609 610 611 612
  line-height: 30px;
  border: 1px solid $dropdown-divider-color;
  border-radius: 2px;
  outline: 0;

  &:focus {
    color: $dropdown-link-color;
Phil Hughes's avatar
Phil Hughes committed
613 614
    border-color: $dropdown-input-focus-border;
    box-shadow: 0 0 4px $dropdown-input-focus-shadow;
Phil Hughes's avatar
Phil Hughes committed
615

616
    ~ .fa {
Phil Hughes's avatar
Phil Hughes committed
617 618 619 620 621
      color: $dropdown-link-color;
    }
  }

  &:hover {
622
    ~ .fa {
Phil Hughes's avatar
Phil Hughes committed
623 624 625 626 627 628
      color: $dropdown-link-color;
    }
  }
}

.dropdown-content {
629
  max-height: 252px;
630
  overflow-y: auto;
Phil Hughes's avatar
Phil Hughes committed
631 632
}

633 634 635 636 637
.dropdown-info-note {
  color: $gl-text-color-secondary;
  text-align: center;
}

Phil Hughes's avatar
Phil Hughes committed
638 639 640 641 642 643 644
.dropdown-footer {
  padding-top: 10px;
  margin-top: 10px;
  font-size: 13px;
  border-top: 1px solid $dropdown-divider-color;
}

645 646 647 648 649
.dropdown-footer-content {
  padding-left: 10px;
  padding-right: 10px;
}

650 651 652 653 654 655 656
.dropdown-due-date-footer {
  padding-top: 0;
  margin-left: 10px;
  margin-right: 10px;
  border-top: 0;
}

657 658 659 660
.dropdown-footer-list {
  font-size: 14px;

  a {
661
    cursor: pointer;
662 663 664 665
    padding-left: 10px;
  }
}

666 667 668 669 670 671 672 673 674 675
.dropdown-create-new-item-button {
  @include dropdown-link;

  width: 100%;
  background-color: transparent;
  border: 0;
  text-align: left;
  text-overflow: ellipsis;
}

Phil Hughes's avatar
Phil Hughes committed
676 677 678 679 680 681 682 683
.dropdown-loading {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  z-index: 9;
Phil Hughes's avatar
Phil Hughes committed
684
  background-color: $dropdown-loading-bg;
Phil Hughes's avatar
Phil Hughes committed
685 686 687 688 689 690 691 692 693 694
  font-size: 28px;

  .fa {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -14px;
    margin-left: -14px;
  }
}
695

696 697 698
.dropdown-label-box {
  position: relative;
  top: 3px;
699
  margin-right: 5px;
700
  display: inline-block;
701 702 703
  width: 15px;
  height: 15px;
  border-radius: $border-radius-base;
704
}
705

706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729
.git-revision-dropdown {
  .dropdown-content {
    max-height: 215px;
  }
}

.sidebar-move-issue-dropdown {
  .dropdown-content {
    max-height: 160px;
  }
}

.dropdown-menu-author {
  .dropdown-content {
    max-height: 215px;
  }
}

.dropdown-menu-labels {
  .dropdown-content {
    max-height: 128px;
  }
}

730
.dropdown-menu-due-date {
731 732 733 734
  .dropdown-content {
    max-height: 230px;
  }

Phil Hughes's avatar
Phil Hughes committed
735
  .pika-single {
736 737
    position: relative !important;
    top: 0 !important;
Phil Hughes's avatar
Phil Hughes committed
738 739
    border: 0;
    box-shadow: none;
740 741
  }

Phil Hughes's avatar
Phil Hughes committed
742 743 744
  .pika-lendar {
    margin-top: -5px;
    margin-bottom: 0;
745 746
  }
}
747 748 749

.dropdown-menu-inner-title {
  display: block;
750
  color: $gl-text-color;
751
  font-weight: $gl-font-weight-bold;
752 753 754 755
}

.dropdown-menu-inner-content {
  display: block;
756
  color: $gl-text-color-secondary;
757
}
758 759 760

.dropdown-toggle-text {
  &.is-default {
761
    color: $gl-text-color-secondary;
762 763
  }
}
764

765 766 767 768 769 770 771 772 773 774 775 776 777 778 779
.pika-single.animate-picker.is-bound,
.pika-single.animate-picker.is-bound.is-hidden {
  /*
   * Having `!important` is not recommended but
   * since `pikaday` sets positioning inline
   * there's no way it can be gracefully overridden
   * using config options.
   */
  position: absolute !important;
  display: block;
}

.pika-single.animate-picker.is-bound {
  @include set-visible;

780 781 782 783
  &.is-hidden {
    @include set-invisible;
    overflow: hidden;
  }
784
}
785

786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802
@media (max-width: $screen-xs-max) {
  .navbar-gitlab {
    li.header-projects,
    li.header-more,
    li.header-new,
    li.header-user {
      position: static;
    }
  }

  header.navbar-gitlab .dropdown {
    .dropdown-menu,
    .dropdown-menu-nav {
      width: 100%;
      min-width: 100%;
    }
  }
803 804 805 806 807 808 809

  header.navbar-gitlab-new .header-content .dropdown {
    .dropdown-menu {
      left: 0;
      min-width: 100%;
    }
  }
810 811
}

812
header.header-content .dropdown-menu.projects-dropdown-menu {
813 814 815 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 845 846 847 848 849 850 851 852 853 854 855 856 857 858
  padding: 0;
}

.projects-dropdown-container {
  display: flex;
  flex-direction: row;
  width: 500px;
  height: 334px;

  .project-dropdown-sidebar,
  .project-dropdown-content {
    padding: 8px 0;
  }

  .loading-animation {
    color: $almost-black;
  }

  .project-dropdown-sidebar {
    width: 30%;
    border-right: 1px solid $border-color;
  }

  .project-dropdown-content {
    position: relative;
    width: 70%;
  }

  @media (max-width: $screen-xs-max) {
    flex-direction: column;
    width: 100%;
    height: auto;
    flex: 1;

    .project-dropdown-sidebar,
    .project-dropdown-content {
      width: 100%;
    }

    .project-dropdown-sidebar {
      border-bottom: 1px solid $border-color;
      border-right: 0;
    }
  }

  .projects-list-frequent-container,
859
  .projects-list-search-container {
860 861
    padding: 8px 0;
    overflow-y: auto;
Phil Hughes's avatar
Phil Hughes committed
862 863 864 865

    li.section-empty.section-failure {
      color: $callout-danger-color;
    }
866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906
  }

  .section-header,
  .projects-list-frequent-container li.section-empty,
  .projects-list-search-container li.section-empty {
    padding: 0 15px;
    color: $gl-text-color-secondary;
    font-size: $gl-font-size;
  }

  .search-input-container {
    position: relative;
    padding: 4px $gl-padding;

    .search-icon {
      position: absolute;
      top: 13px;
      right: 25px;
      color: $md-area-border;
    }
  }

  .section-header {
    font-weight: 700;
    margin-top: 8px;
  }

  .projects-list-search-container {
    height: 284px;
  }

  @media (max-width: $screen-xs-max) {
    .projects-list-frequent-container {
      width: auto;
      height: auto;
      padding-bottom: 0;
    }
  }
}

.projects-list-item-container {
907
  .project-item-avatar-container .project-item-metadata-container {
908 909 910 911 912 913 914 915
    float: left;
  }

  .project-title,
  .project-namespace {
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
916
    white-space: nowrap;
917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943
  }

  &:hover {
    .project-item-avatar-container .avatar {
      border-color: $md-area-border;
    }
  }

  .project-title {
    font-size: $gl-font-size;
    font-weight: 400;
    line-height: 16px;
  }

  .project-namespace {
    margin-top: 4px;
    font-size: 12px;
    line-height: 12px;
    color: $gl-text-color-secondary;
  }

  @media (max-width: $screen-xs-max) {
    .project-item-metadata-container {
      float: none;
    }
  }
}
944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968

.dropdown-content-faded-mask {
  position: relative;

  .dropdown-list {
    max-height: $dropdown-max-height;
    overflow-y: auto;
    position: relative;
  }

  &::after {
    height: $dropdown-fade-mask-height;
    width: 100%;
    position: absolute;
    bottom: 0;
    background: linear-gradient(to top, $white-light 0, rgba($white-light, 0));
    transition: opacity $fade-mask-transition-duration $fade-mask-transition-curve;
    content: '';
    pointer-events: none;
  }

  &.fade-out::after {
    opacity: 0;
  }
}