<commit_before>// This file is part of the book-content mixin and should not be included directly
// Hide titles, abstracts and CNX Processing instructions
.section-opener,
.summary,
[data-type=abstract] {
}
[data-type=term]{
  font-weight: bold;
  font-style: italic;
}

.tutor-tables(@tutor-neutral-light, @tutor-neutral-light);
.question {
  .tutor-tables(@tutor-white, @tutor-white);
}
div[data-type="document-title"],
div[data-type=abstract],
cnx-pi{
  display: none;
}

// Default font for text content
p,
ul,
ol {
  #fonts > .serif(1.75rem, 190%);
  margin: 0 0 2.4rem 0;
}

ul {
  list-style-type: none;
  > li {
    &::before {
      list-style-type: none;
      content: "";
      width: .4em;
      height: .4em;
      float: left;
      margin: 0.75em -0.8em 0;
      border-radius: 50%;
    }
  }
}

// References should not get drop-cap styling
section:not(.references) h1 + p:first-of-type,
div[data-type="document-title"] ~ p:first-of-type {
  .tutor-reading-first-letter();
}

// prevent larger images from pushing out past their container.
// Most images are inside a <figure> and will be handled by the rules below
img { max-width: 100%; }

.tutor-figure();
figure {
  margin-right: 30px;
  margin-bottom: 20px;

  &.full-width:not(.splash) {
    width: 100%;
  }
  &.tutor-ui-vertical-img {
    @media (min-width: @screen-sm-min) {
      width: 50%;
      float: left;
    }
  }
  &.tutor-ui-horizontal-img {
    &.full-width {
      img { width: 100%; }
    }
  }

  figcaption {
    border-bottom: 1px solid;
    border-color: @border-color;
  }
}

// images inside a figure that occurs right after a title are full-width
.title + figure {
  width: 100%;
  img { width: 100%; }
}

section {
  counter-reset: exerciseCount;
  [data-type="exercise"] {
    [data-type="problem"],
    [data-type="solution"] {
      p:first-of-type {
        counter-increment: exerciseCount;
        &::before {
          content: counter(exerciseCount) ". ";
          font-weight: bold;
          font-size: 2.5rem;
        }
      }
      ol {
        counter-reset: lowerAlpha;
        list-style: none;
      }
      ol li {
        counter-increment: lowerAlpha;
      }
      ol li::before {
        content: counter(lowerAlpha, lower-alpha) ") ";
      }
    }
  }
}

[data-type="footnote-refs"] {
  ol {
    padding-left: 0;
    list-style: none;
    li {
      list-style: none;
      a {
        padding-right: 10px;
      }
      p {
        display:inline;
      }
    }
  }
}<commit_msg>display [data-type=abstract] in book content<commit_after>

[data-type=term]{
  font-weight: bold;
  font-style: italic;
}

.tutor-tables(@tutor-neutral-light, @tutor-neutral-light);
.question {
  .tutor-tables(@tutor-white, @tutor-white);
}
div[data-type="document-title"],
cnx-pi{
  display: none;
}

// Default font for text content
p,
ul,
ol {
  #fonts > .serif(1.75rem, 190%);
  margin: 0 0 2.4rem 0;
}

ul {
  list-style-type: none;
  > li {
    &::before {
      list-style-type: none;
      content: "";
      width: .4em;
      height: .4em;
      float: left;
      margin: 0.75em -0.8em 0;
      border-radius: 50%;
    }
  }
}

// References should not get drop-cap styling
section:not(.references) h1 + p:first-of-type,
div[data-type="document-title"] ~ p:first-of-type {
  .tutor-reading-first-letter();
}

// prevent larger images from pushing out past their container.
// Most images are inside a <figure> and will be handled by the rules below
img { max-width: 100%; }

.tutor-figure();
figure {
  margin-right: 30px;
  margin-bottom: 20px;

  &.full-width:not(.splash) {
    width: 100%;
  }
  &.tutor-ui-vertical-img {
    @media (min-width: @screen-sm-min) {
      width: 50%;
      float: left;
    }
  }
  &.tutor-ui-horizontal-img {
    &.full-width {
      img { width: 100%; }
    }
  }

  figcaption {
    border-bottom: 1px solid;
    border-color: @border-color;
  }
}

// images inside a figure that occurs right after a title are full-width
.title + figure {
  width: 100%;
  img { width: 100%; }
}

section {
  counter-reset: exerciseCount;
  [data-type="exercise"] {
    [data-type="problem"],
    [data-type="solution"] {
      p:first-of-type {
        counter-increment: exerciseCount;
        &::before {
          content: counter(exerciseCount) ". ";
          font-weight: bold;
          font-size: 2.5rem;
        }
      }
      ol {
        counter-reset: lowerAlpha;
        list-style: none;
      }
      ol li {
        counter-increment: lowerAlpha;
      }
      ol li::before {
        content: counter(lowerAlpha, lower-alpha) ") ";
      }
    }
  }
}

[data-type="footnote-refs"] {
  ol {
    padding-left: 0;
    list-style: none;
    li {
      list-style: none;
      a {
        padding-right: 10px;
      }
      p {
        display:inline;
      }
    }
  }
}

[data-type=abstract] {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin: 1rem 0;
  ul { margin: 0; padding: 0; }
  background-color: @tutor-neutral-bright;
  &:before {
    content: "Abstract:";
    .book-content-subtitle();
    margin: 0 1rem;
  }
}
{'fraction_non_alphanumeric': 0.1535448491970231, 'fraction_numerical': 0.020368194281237758, 'mean_word_length': 2.2653452685421995, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '3824405', 'n_tokens_mistral': 1961, 'n_tokens_neox': 1818, 'n_words': 413}