Skip to content

Open-source AI browser agent for Chrome and Firefox (monorepo) 🧠

1.8 KB
Raw Blame
@use 'scss/variables' as *;

.notes {
  position: relative;

  h3 {
    text-shadow: none;
    margin: 0;
    cursor: initial;
    user-select: none;
  }

  &:hover .notesContainer {
    visibility: visible !important;
  }

  &:active .notesContainer {
    visibility: visible !important;
  }

  &:focus .notesContainer {
    visibility: visible !important;
  }
}

.notesContainer {
  @extend %basic;

  padding: 15px;
  text-align: center;
  border-radius: 12px;
  position: absolute;
  font-size: 1rem !important;

  /* top: 100%;
  left: 50%;
  margin-left: -130px; */

  .notes-buttons {
    button {
      @include basicIconButton(11px, 1.3rem, ui);

      @include themed {
        background: t($btn-background) !important;

        &:hover {
          background: t($btn-backgroundHover) !important;
        }
      }

      flex-grow: 1;
      display: grid;
      place-items: center;

      svg {
        font-size: 1.3rem;
      }
    }
  }

  .flexNotes {
    display: flex;
    flex-flow: column;
    gap: 15px;

    textarea {
      max-height: 65vh !important;
      overflow-y: visible !important;

      @extend %basic;

      border: none;
      padding: 15px;
      border-radius: 12px;
      width: 200px;
    }
  }

  ::placeholder {
    color: #636e72;
    opacity: 1;
  }
}

textarea {
  border: none;
  resize: none;
  background: none;
}

.topBarNotes {
  @extend %basic;

  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  border-radius: 12px;
  flex-flow: row;
  gap: 5px;
  user-select: none;

  svg {
    font-size: 1.5rem;
  }
}

.notes-buttons {
  display: flex !important;
  gap: 10px;

  button {
    &:disabled {
      @include themed {
        background: t($modal-sidebar) !important;
      }

      cursor: not-allowed;
    }
  }

  .tooltip {
    flex: 1 !important;
  }
}