<commit_before>@import "./icons";

trix-editor {
  [data-trix-mutable=true] {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;

    ::-moz-selection {
      background: none;
    }

    img {
      box-shadow: 0 0 0 2px highlight;
    }

    &.attachment.attachment-file {
      box-shadow: 0 0 0 2px highlight;
      border-color: transparent;
    }
  }

  .attachment {
    &:hover {
      cursor: default;
    }

    &.attachment-preview {
      .caption:hover {
        cursor: text;
      }
    }

    button.remove {
      cursor: pointer;

      &.icon {
        text-indent: -9999px;
        display: block;
        position: absolute;
        z-index: 1;
        padding: 0;
        margin: 0;
        top: -1.1em;
        left: calc(50% - 0.8em);
        width: 1.8em;
        height: 1.8em;
        line-height: 1.8em;
        border-radius: 50%;
        text-indent: -9999px;
        background-color: #fff;
        border: 2px solid highlight;
        box-shadow: -2px 2px 6px rgba(0, 0, 0, 0.12);

        &::before {
          display: inline-block;
          position: absolute;
          top: 0.1em;
          right: 0.1em;
          bottom: 0.1em;
          left: 0.1em;
          opacity: 0.6;
          content: "";
          background-image: $icon-remove;
          background-position: center;
          background-repeat: no-repeat;
          background-size: contain;
        }
      }

      &:hover {
        border-color: #333;

        &::before {
          opacity: 1;
        }
      }
    }

    .caption {
      &.caption-editing {
        textarea {
          display: block;
          width: 100%;
          margin: 0;
          padding: 0;
          font-size: inherit;
          font-family: inherit;
          line-height: inherit;
          color: inherit;
          text-align: center;
          border: none;<commit_msg>Adjust attachment remove button styles<commit_after>@import "./icons";

trix-editor {
  [data-trix-mutable=true] {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;

    ::-moz-selection {
      background: none;
    }

    img {
      box-shadow: 0 0 0 2px highlight;
    }

    &.attachment.attachment-file {
      box-shadow: 0 0 0 2px highlight;
      border-color: transparent;
    }
  }

  .attachment {
    &:hover {
      cursor: default;
    }

    &.attachment-preview {
      .caption:hover {
        cursor: text;
      }
    }

    button.remove {
      cursor: pointer;

      &.icon {
        text-indent: -9999px;
        display: block;
        position: absolute;
        z-index: 1;
        padding: 0;
        margin: 0;
        top: -1.1em;
        left: calc(50% - 0.8em);
        width: 1.8em;
        height: 1.8em;
        line-height: 1.8em;
        border-radius: 50%;
        text-indent: -9999px;
        background-color: #fff;
        border: 2px solid highlight;
        box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.25);

        &::before {
          display: inline-block;
          position: absolute;
          top: 0.1em;
          right: 0.1em;
          bottom: 0.1em;
          left: 0.1em;
          opacity: 0.75;
          content: "";
          background-image: $icon-remove;
          background-position: center;
          background-repeat: no-repeat;
          background-size: contain;
        }
      }

      &:hover {
        border-color: #333;

        &::before {
          opacity: 1;
        }
      }
    }

    .caption {
      &.caption-editing {
        textarea {
          display: block;
          width: 100%;
          margin: 0;
          padding: 0;
          font-size: inherit;
          font-family: inherit;
          line-height: inherit;
          color: inherit;
          text-align: center;
          border: none;
{'fraction_non_alphanumeric': 0.1238686320144815, 'fraction_numerical': 0.03232479958624256, 'mean_word_length': 1.375921375921376, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7575864', 'n_tokens_mistral': 1328, 'n_tokens_neox': 1210, 'n_words': 277}