/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *
 *= require_tree .
 *= require_self
 */

.tiptap {
  border: 1px solid #bbb;
  border-radius: 3px;
  margin: 0;
  padding: 0.4em 0.6em;
  outline: none;
  min-height: 180px;

  a {
    border-bottom: 2px solid black;
  }
  ul,
  ol {
    padding-left: 1.5rem;
    list-style-position: outside;
  }
  ul {
    list-style-type: disc;
  }
  ol {
    list-style-type: decimal;
  }

  /* link */
  &__link-area {
    padding: 0.2rem;
    transition: all 0.2s;
    opacity: 1;
    display: flex;
    gap: 3px;
  }
  &__link-area--hidden {
    display: none;
  }
  &__link-field::placeholder {
    font-style: italic;
    color: hsl(0, 0%, 45%);
  }
  &__link-field {
    border: 1px solid hsl(0, 0%, 70%);
    border-radius: 20px;
    padding: 0.2rem 1rem;
    width: 100%;
    font-size: 0.9rem;
  }
  &__link-field:focus::placeholder {
    color: hsla(0, 0%, 0%, 0);
  }
  &__link-button {
    background-color: hsl(0, 0%, 91.8%) !important;
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
  }
  &__link-button:hover {
    background-color: hsl(115.6, 73.2%, 78%) !important;
    transition: all 0.2s;
  }

  &__container {
    display: flex;
    flex-direction: column;
  }

  &__textarea {
  }

  &__toolbar {
    padding: 0 1vw;
    display: flex;
    gap: 2vw;
    white-space: nowrap;

    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    background-color: hsl(0deg, 0%, 92%);
    padding-top: 5px;
    padding-bottom: 5px;
    justify-content: start;
  }

  &__button-row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  &__button-group {
    display: flex;
    width: min-content;
    gap: 2px;
  }

  &__button {
    height: 2rem;
    padding: 0 0.7vw;
    opacity: 0.6;
    border-radius: 5px;
  }

  &__button:hover {
    opacity: 1;
  }

  &__button--selected {
    background-color: hsl(53.85, 85%, 49%) !important;
    opacity: 1 !important;
  }
}

turbo-cable-stream-source {
  display: none;
}
