<commit_before>// This file is part of the book-content mixin and should not be included directly
// Hide titles, abstracts and CNX Processing instructions

// References should not get drop-cap styling
@mixin tutor-book-content-base-styles() {

  // Default font for text content
  p,
  ul,
  ol {
    @include tutor-serif-font(1.75rem, 190%);
    margin: 0 0 2.4rem 0;
  }

  section {
    clear: both;

    &.visual-exercise,
    &.multiple-choice,
    &.critical-thinking,
    &.summary {
      margin-top: 2rem;
    }
  }

  blockquote {
    @include tutor-serif-font(1.75rem, 190%);
    font-style: italic;
    background-color: $tutor-neutral-lighter;
  }

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

  @include tutor-tables($tutor-neutral-light, $tutor-neutral-light);
  table + .os-caption-container{
    margin-bottom: 3rem;
    margin-top: -1rem; // move closer to bottom of table
  }

  div[data-type="document-title"],
  cnx-pi{
    display: none;
  }

  ul::not([role="menu"]) {
    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%;
      }
    }
  }

  section:not(.references) h1 + p:first-of-type,
  div[data-type="document-title"] ~ p:first-of-type {
    @include 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%, }

  @include tutor-figure();

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

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

  [data-type="example"],
  .solution,
  .commentary {
    clear: both;

    .os-title,
    [data-type=title] {
      @include tutor-sans-font(1.8rem, 1.75em);
      font-weight: bold;
    }
  }

  [data-type="document-title"]:not(h3) {
    display: none;
  }

  .os-glossary-container {
    margin-top: 2rem;
    margin-bottom: 1rem;
  }

  .os-chapter-outline {
    .os-title {
      display: none;
    }
    .os-chapter-objective {
    > a.os-chapter-objective {
        display: none;
      }
      & + .os-chapter-objective {
        .learning-objective {
          [data-type="abstract"] {
            min-height: inherit;
            padding: 0;
          }

        }
      }
    }
  }

  table {
    caption {
      caption-side: top;
      font-style: italic;
      font-weight: 400;
      font-size: inherit;
    }
    caption + thead {
      tr:first-child {
        font-style: normal;
        th {
          background: $tutor-white;
          font-weight: 800;
        }
      }
    }
    caption + tbody, thead + tbody, tbody:only-child, colgroup + tbody {
      tr {
        td:first-child{
          font-weight: 400;
        }
      }
    }
    thead {
      tr:first-child {
        font-style: italic;
        th {
          font-weight: 400;
          border-bottom: none;
          background: $tutor-white;
        }
      }
      tr:nth-child(2) {
        th {
          background: $tutor-white;
          font-weight: 800;
        }
      }
    }
    tbody{
      border-bottom: none;
      tr{
        td:first-child{
          font-weight: 800;
        }
      }
      td {
        .MathJax_Display {
              text-align: left !important;
        }
      }
      ul{
        font-family: inherit;
        font-size: inherit;
        padding-left: 10px;
        li::before{
          background: $tutor-neutral-darker;
        }
      }
    }
  }
}
<commit_msg>add top margin to various elements<commit_after>// This file is part of the book-content mixin and should not be included directly
// Hide titles, abstracts and CNX Processing instructions

// References should not get drop-cap styling
@mixin tutor-book-content-base-styles() {

  // Default font for text content
  p,
  ul,
  ol {
    @include tutor-serif-font(1.75rem, 190%);
    margin: 0 0 2.4rem 0;
  }

  section {
    clear: both;

    &:first-of-type:not(.splash),
    &.visual-exercise,
    &.multiple-choice,
    &.critical-thinking,
    &.summary {
      margin-top: 2rem;
    }
  }

  blockquote {
    @include tutor-serif-font(1.75rem, 190%);
    font-style: italic;
    background-color: $tutor-neutral-lighter;
  }

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

  @include tutor-tables($tutor-neutral-light, $tutor-neutral-light);
  table + .os-caption-container{
    margin-bottom: 3rem;
    margin-top: -1rem; // move closer to bottom of table
  }

  div[data-type="document-title"],
  cnx-pi{
    display: none;
  }

  ul::not([role="menu"]) {
    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%;
      }
    }
  }

  section:not(.references) h1 + p:first-of-type,
  div[data-type="document-title"] ~ p:first-of-type {
    @include 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%, }

  @include tutor-figure();

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

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

  [data-type="example"],
  .solution,
  .commentary {
    clear: both;

    .os-title,
    [data-type=title] {
      @include tutor-sans-font(1.8rem, 1.75em);
      font-weight: bold;
    }
  }

  [data-type="document-title"]:not(h3) {
    display: none;
  }

  .os-glossary-container {
    margin-top: 2rem;
    margin-bottom: 1rem;
  }

  .os-chapter-outline {
    *:not(.splash) & {
      margin-top: 1rem;
    }
    .os-title { display: none; }
    .os-chapter-objective {
    > a.os-chapter-objective {
        display: none;
      }
      & + .os-chapter-objective {
        .learning-objective {
          [data-type="abstract"] {
            min-height: inherit;
            padding: 0;
          }

        }
      }
    }
  }

  .os-table {
    margin-top: 2rem;
  }

  table {

    caption {
      caption-side: top;
      font-style: italic;
      font-weight: 400;
      font-size: inherit;
    }
    caption + thead {
      tr:first-child {
        font-style: normal;
        th {
          background: $tutor-white;
          font-weight: 800;
        }
      }
    }
    caption + tbody, thead + tbody, tbody:only-child, colgroup + tbody {
      tr {
        td:first-child{
          font-weight: 400;
        }
      }
    }
    thead {
      tr:first-child {
        font-style: italic;
        th {
          font-weight: 400;
          border-bottom: none;
          background: $tutor-white;
        }
      }
      tr:nth-child(2) {
        th {
          background: $tutor-white;
          font-weight: 800;
        }
      }
    }
    tbody{
      border-bottom: none;
      tr{
        td:first-child{
          font-weight: 800;
        }
      }
      td {
        .MathJax_Display {
              text-align: left !important;
        }
      }
      ul{
        font-family: inherit;
        font-size: inherit;
        padding-left: 10px;
        li::before{
          background: $tutor-neutral-darker;
        }
      }
    }
  }
}

{'fraction_non_alphanumeric': 0.133241066935078, 'fraction_numerical': 0.018621036738802214, 'mean_word_length': 1.646138482023968, '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': '1682197', 'n_tokens_mistral': 2923, 'n_tokens_neox': 2675, 'n_words': 572}