@import './../theme/vars.scss';

$ctxMenuPrefixCls: amos-ctxmenu;

.#{$ctxMenuPrefixCls} {
  &-container {
    position: absolute;
    z-index: $zindex-ctxmenu;
    display: none;
    min-width: 12em;
    padding: 8px 20px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.5);
  }

  &-preshow {
    display: block;
    visibility: hidden;
  }

  &-show {
    display: block;
  }

  &-group {
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid $context-menu-color;
  }

  &-group:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
  }

  &-item {
    display: block;
    height: 30px;
    padding: 0 20px;
    margin: 0 -20px;
    overflow: hidden;
    font-size: 14px;
    line-height: 30px;
    color: #666;
    cursor: pointer;

    &:hover {
      background-color: $context-menu-color-hover;
    }

    &.#{$ctxMenuPrefixCls}-item-disabled {
      color: #999;
      cursor: not-allowed;
      outline: none;
    }
  }

  &-item-shortcut {
    float: right;
  }
}
