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

.note-toolbar-wrapper {
  display: flex;
  justify-content: flex-end;
  flex: none;
  height: $toolbar-height;
  border-bottom: 1px solid var(--secondary-color);
  background-color: var(--background-color);
}

.note-toolbar-wrapper .offline-badge {
  border: solid 1px var(--secondary-color);
  border-radius: 2px;
  box-shadow: 0 2px 4px 0 var(--readonly-input-color);
  color: var(--foreground-color);
  font-size: 12px;
  height: 24px;
  line-height: 24px;
  margin-top: 10px;
  text-align: center;
  width: 64px;
}

.note-toolbar {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0 15px;
}

.note-toolbar__column-left,
.note-toolbar__column-right {
  display: flex;
  align-items: center;
}

.note-toolbar-trashed {
  display: flex;
  align-items: center;
  padding: 0 16px;
  justify-content: flex-end;
  width: 100%;

  .note-toolbar__button {
    margin: 0 0 0 16px;
  }

  .basic-button,
  .button-primary {
    border-width: 2px;
  }

  .note-toolbar__column-left {
    display: none;

    @media only screen and (max-width: $single-column) {
      display: flex;
    }
  }

  @media only screen and (max-width: $single-column) {
    .note-toolbar__column-right {
      justify-content: flex-end;
    }
  }
}

@media only screen and (max-width: $single-column) {
  .offline-badge {
    margin: 0 25px;
  }

  .note-toolbar__button-sidebar {
    display: none;
  }

  .note-toolbar__column-right {
    width: 80%;
    justify-content: space-between;
  }
}

.note-toolbar__button {
  flex: none;
  margin-right: 14px;
  text-align: center;

  &:last-child {
    margin-right: 0;
  }
}

.note-toolbar-back {
  display: none;

  @media only screen and (max-width: $single-column) {
    display: flex;
  }
}

.note-toolbar-placeholder {
  border-bottom: 1px solid var(--secondary-color);
  display: block;
  height: $toolbar-height;
}

.new-note-toolbar__button-sidebar {
  border-right: 1px solid var(--secondary-color);
  display: none;
  height: $toolbar-height;
  line-height: $toolbar-height;
  padding-right: 13px;

  .icon-button {
    margin-top: 6px;
  }

  svg {
    vertical-align: baseline;
  }
}

.is-focus-mode .new-note-toolbar__button-sidebar {
  display: block;
}
