Sha256: 6936c9a5322461fa48953b603a48397c144b84b097b3486e5f58943c5827d693

Contents?: true

Size: 1.92 KB

Versions: 3

Compression:

Stored size: 1.92 KB

Contents

.#{$prefix}dropdown {
  &-toggle {
    &::after {
      display: none;
      vertical-align: 2px;
    }
  }

  .#{$prefix}dropdown-menu {
    display: block;
  }

  &-menu {
    width: auto;
    min-width: 80px;
    max-width: 684px;
    max-height: 180px;
    padding: 0;
    margin: 4px 0 0;
    overflow-y: auto;
    background-color: $white;
    border: 1px solid $smoke;
    box-shadow: 0 4px 8px 0 rgba(119, 119, 119, .24);
    @include border-radius(4px);
    @include scroll-default;
  }

  &-item {
    padding: 8px 12px;
    color: $dark;
    cursor: pointer;
    outline: none;

    &:hover {
      background-color: $cloud;
      &:active {
        color: $dark;
      }
    }

    &.active {
      &:hover {
        background-color: darken($primary, 10%);
      }
    }

    &.is-selected {
      background-color: $cloud;
    }
  }

  &-divider {
    margin: 0;
  }

  &-not-found {
    display: block;
    padding: 8px 12px;
    color: $muted;
    text-align: center;
  }

  &-selected-list {
    margin-top: 4px;

    .#{$prefix}badge {
      margin-top: 4px;
      margin-right: 8px;
      &:last-child {
        margin-right: 0;
      }
    }
  }

  &-action {
    padding: 8px;

    input {
      width: 100%;
      margin: 0;
    }

    &:hover {
      background-color: inherit;
    }
  }

  &-with-action {
    .#{$prefix}dropdown-menu {
      max-height: none;
      overflow: hidden;

      .#{$prefix}dropdown-action {
        &:hover {
          background-color: inherit;
        }
      }

      &-list {
        height: auto;
        max-height: 126px;
        overflow-y: auto;
        @include scroll-default;
      }
    }
  }

  &-with-avatar {
    span {
      vertical-align: middle;
    }
  }

  &-with-pill {
    .#{$prefix}dropdown-menu-list {
      .#{$prefix}dropdown-item {
        &.is-selected {
          color: $muted;
          pointer-events: none;
          background-color: transparent;
        }
      }
    }
  }
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mekari_ui_toolkit-1.0.14 lib/assets/stylesheets/scss/components/config/_dropdowns.scss
mekari_ui_toolkit-1.0.13 lib/assets/stylesheets/scss/components/config/_dropdowns.scss
mekari_ui_toolkit-1.0.12 lib/assets/stylesheets/scss/components/config/_dropdowns.scss