//
// Copyright IBM Corp. 2016, 2018
//
// This source code is licensed under the Apache-2.0 license found in the
// LICENSE file in the root directory of this source tree.
//

@use "../../config" as *;
@use "../../spacing" as *;
@use "../../theme" as *;
@use "../../type" as *;
@use "../../breakpoint" as *;
@use "../../utilities/convert" as *;
@use "../../utilities/skeleton" as *;
@use "../../utilities/box-shadow" as *;

@mixin context-menu {
  .#{$prefix}--context-menu__group {
    .#{$prefix}--context-menu__item {
      &:last-child {
        margin: 0 0.5rem;
        padding: 0.5rem 0;
        border-bottom: 1px solid $border-subtle;
      }
    }

    &:last-child {
      .#{$prefix}--context-menu__item {
        border: none;
      }
    }
  }

  .#{$prefix}--context-menu__item {
    padding: $spacing-03;
  }

  .#{$prefix}--context-menu.#{$prefix}--tooltip {
    @include box-shadow;
  }

  .#{$prefix}--context-menu {
    min-width: 150px;

    &__border {
      border-bottom: 4px solid $background-primary;
    }
  }
}