context-menu.less 1.1 KB
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 52 53 54 55 56 57
.context-menu-container {
  z-index: 10001;

  .context-menu-content {
      position: absolute;
      background: var(--item-background-color-bright);

      .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;
          color: var(--item-font-color-light);
          cursor: pointer;
          outline: none;
          display: flex;

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

      .context-menus-item:hover {
          background-color: var(--item-background-color-hover);
          color: var(--item-font-color-light);
      }
  }
}

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

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