context-menu.less 804 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
.context-menu-container {
  z-index: 10001;

  .context-menu-content {
    position: absolute;

    .ivu-divider {
      width: 100%;
    }

    &.context-menus-bottom {
      .ivu-select-dropdown {
        transform: translateY(-100%);
      }
    }
  }

  .context-menus {
    .context-menus-item {
      list-style: none;
      line-height: 36px;
      padding: 0 13px;
      margin: 0;
      font-size: 14px;
      cursor: pointer;
      outline: none;
      display: flex;

      .icon {
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 16px;
        width: 20px;
        margin-right: 8px;
      }
    }
  }
}

.context-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.context-menu-component {
  line-height: 100%;
}