@use '../../scss/variables' as *;

.note-actions {
  background-color: var(--background-color);
  width: 200px;
  position: absolute;
  right: 16px;
  top: $toolbar-height + 16px;
  border: 1px solid var(--secondary-color);
  border-radius: 6px;
  box-shadow: 0 3px 6px 0 var(--overlay-color);
  color: var(--primary-color);
  display: flex;
  flex-direction: column;
  overflow: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;

  .note-actions-panel {
    flex: none;
    border-bottom: 1px solid var(--secondary-color);
    padding: 4px 0;

    &:last-child {
      border: none;
    }
  }

  .note-actions-item {
    display: flex;
    align-items: center;
    padding: 5px 16px;
    height: 28px;
    cursor: pointer;

    button.button-borderless {
      padding: 0;
      font-weight: normal;
      color: inherit;
      width: 100%;
      text-align: left;
    }

    &:hover {
      background-color: var(--alternative-highlight-color);
    }
  }

  .note-actions-item-disabled {
    color: var(--disabled-text-color);

    &:hover {
      background-color: transparent;
    }

    .note-actions-disabled {
      flex: 1 1 auto;
    }
  }

  .note-actions-item-text {
    flex: 1 1 auto;
  }

  .note-actions-internal-link .note-actions-name {
    display: inline-block;
    padding: 5px 10px;
  }

  .note-actions-trash {
    color: var(--tertiary-highlight-color);
  }

  .note-actions-item-control .checkbox-control {
    bottom: 1px;

    input {
      cursor: pointer;
    }
  }

  svg .spinner__circle {
    color: var(--disabled-text-color);
  }
}
