Skip to content

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

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

.taskBox {
  width: min(640px, 90vw);
  margin-top: 1.5rem;
  display: flex;
  flex-flow: column;
  align-items: stretch;
  gap: 0.6rem;
  font-size: 1rem;
  animation: fadeIn 1s;
}

.taskBoxForm {
  @extend %basic;

  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 6px 6px 6px 18px;
  border-radius: 18px;
}

.taskBoxInput {
  &:disabled {
    cursor: progress;
    opacity: 0.6;
  }

  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: inherit;
  font-size: 1.15rem;
  padding: 10px 0;

  &::placeholder {
    opacity: 0.65;
    color: inherit;
  }
}

.taskBoxGo {
  @include basicIconButton(10px, 1.3rem, ui);

  display: grid;
  place-items: center;
  cursor: pointer;

  &:disabled {
    opacity: 0.4;
    cursor: default;
  }
}

.taskBoxModes {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.taskBoxMode {
  @include basicIconButton(6px, 0.95rem, ui);

  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  cursor: pointer;
  opacity: 0.75;

  &.active {
    opacity: 1;
    box-shadow: 0 0 0 1px currentcolor;
  }
}

.taskBoxHint {
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.8;
}

.taskBoxError {
  opacity: 1;
}

// Act starts working in the browser as soon as it is sent, so its notice is not dimmed.
.taskBoxWarning {
  opacity: 1;
  font-weight: 600;
}

.recentChats {
  @extend %basic;

  width: min(640px, 90vw);
  margin-top: 1rem;
  padding: 12px 18px;
  border-radius: 18px;
  font-size: 0.95rem;
  text-align: left;

  .recentChatsHeader {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-weight: 600;

    a {
      font-weight: 400;
      opacity: 0.75;
    }
  }

  ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  li a {
    display: block;
    padding: 4px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  a {
    color: inherit;
    text-decoration: none;

    &:hover {
      text-decoration: underline;
    }
  }

  .recentChatsEmpty {
    opacity: 0.7;
  }
}