@import url("./shared.css");

.ProseMirror {
  /* min-height: 100vh;
  width: 100%; */
}

.tiptap ul li p,
.tiptap ol li p {
  margin: 0.75rem 0;
}

ul[data-type="taskList"] li > label input[type="checkbox"] {
  @apply size-4 border border-border bg-muted;
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  margin-bottom: 0.75rem;
  margin-top: 0.75rem;
  cursor: pointer;
  position: relative;
  transform: translateY(0.17rem);
  display: grid;
  border-radius: 0.25rem;
  place-content: center;
}

ul[data-type="taskList"] li > label input[type="checkbox"]::before {
  content: "";
  width: 0.65em;
  height: 0.65em;
  transform: scale(0);
  transition: 120ms transform ease-in-out;
  box-shadow: inset 1em 1em;
  transform-origin: center;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
ul[data-type="taskList"] li > label input[type="checkbox"]:checked::before {
  transform: scale(1);
}
ul[data-type="taskList"] li[data-checked="true"] > div > p {
  @apply text-foreground/75;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

img {
  @apply rounded-md;
}
