/**Variable**/

/*快捷菜单*/
.vhb-table--context-menu-wrapper,
.vhb-table--context-menu-clild-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 12px;
  border: 1px solid $vhb-table-popup-border-color;
  box-shadow: 3px 3px 4px -2px rgba(0,0,0,.6);
  padding: 0 1px;
  user-select: none;
  color: $vhb-table-font-color;
  font-family: $vhb-font-family;
  background-color: $vhb-table-menu-background-color;
}
.vhb-context-menu--link {
  display: block;
  padding: 0 2.5em;
  width: $vhb-table-menu-item-width;
  line-height: 26px;
  color: $vhb-table-font-color;
  cursor: pointer;
  .vhb-context-menu--link-prefix,
  .vhb-context-menu--link-suffix {
    position: absolute;
    top: 5px;
    margin-right: 5px;
    font-size: 16px;
  }
  .vhb-context-menu--link-prefix {
    left: 5px;
  }
  .vhb-context-menu--link-suffix {
    right: 5px;
    &.suffix--haschild {
      top: 8px;
      &:before {
        position: absolute;
        content: "";
        border: 4px solid transparent;
        border-left-color: #727272;
      }
    }
  }
  .vhb-context-menu--link-content {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
.vhb-table--context-menu-clild-wrapper {
  .vhb-context-menu--link {
    padding: 0 2em 0 2.5em;
  }
}
.vhb-context-menu--option-wrapper,
.vhb-table--context-menu-clild-wrapper {
  margin: 0;
  padding: 0;
  list-style-type: none;
  border-bottom: 1px solid #E8EAED;
  li {
    position: relative;
    margin: 1px 0;
    border: 1px solid transparent;
    &:last-child {
      border: 0;
    }
    &.link--active {
      background-color: #C5C5C5;
      border-color:#C5C5C5;
      & > .vhb-context-menu--link {
        color: #2B2B2B;
      }
    }
    &.link--disabled {
      & > .vhb-context-menu--link {
        color: $vhb-disabled-color;
        cursor: no-drop;
      }
      &.link--active {
        border-color:#C0C1C2;
        background-color: #EEEEEE;
        &:hover {
          background-color: inherit;
        }
      }
    }
  }
}
.vhb-table--context-menu-clild-wrapper {
  display: none;
  top: 0;
  left: 100%;
  &.is--show {
    display: block;
  }
}