@primary: #1890ff;

.tags_wrapper {
  position: relative;
  width: 100%;
  height: 35px;
  line-height: 35px;
  background: #ddd;
  .item {
    position: relative;
    display: inline-block;
    height: 28px;
    margin-left: 5px;
    padding: 0 8px;
    color: #495060;
    font-size: 13px;
    line-height: 26px;
    background: #fff;
    border: 1px solid #d8dce5;
    cursor: pointer;

    &:last-of-type {
      margin-right: 15px;
    }

    &.active {
      color: #fff;
      background-color: @primary;
      border-color: @primary;

      &::before {
        position: relative;
        display: inline-block;
        width: 8px;
        height: 8px;
        margin-right: 2px;
        background: #fff;
        border-radius: 50%;
        content: "";
      }
    }
  }

  .icon_close {
    position: relative;
    top: -1px;
    margin-left: 6px;
    font-size: 10px;

    &:hover {
      color: red;
    }
  }

  .contextmenu {
    position: fixed;
    z-index: 99999;
    margin: 0;
    padding: 5px 0;
    color: #333;
    font-weight: 400;
    font-size: 12px;
    list-style-type: none;
    background: #fff;
    border-radius: 4px;
    box-shadow: 2px 2px 3px 0 rgba(0, 0, 0, 0.3);

    li {
      margin: 0;
      padding: 2px 16px;
      line-height: 24px;
      cursor: pointer;

      &:hover {
        background: #eee;
      }
    }
  }
}
