<commit_before>// Video player styles from frontend toolkit
@import "../design-patterns/media-player";
@import "govspeak-magna-charta";

.govuk-govspeak {
  &.direction-rtl {
    direction: rtl;
    text-align: start;
  }

  h2:first-child,
  h3:first-child,
  h4:first-child,
  p:first-child {
    margin-top: 0;
  }

  h2 {
    @include core-27;
    font-weight: bold;
    margin-top: $gutter-half;
    @include media(desktop) {
      margin-top: $gutter*1.5;
    }
  }

  h3 {
    @include core-19;
    font-weight: bold;
    margin-top: $gutter + 5px;
    &.hosted-externally {
      @include core-27;
      font-weight: bold;
      padding-top: 2px;
      a {
        text-decoration: none;
        &:hover {
          text-decoration: underline;
        }
      }
    }
  }
  h4 {
    @include core-19;
    font-weight: bold;
    margin-top: $gutter + 5px;
  }

  p {
    @include core-19;
    margin: 5px 0;
    @include media(tablet) {
      margin: $gutter-one-third 0;
    }
  }

  h4,
  h5,
  h6 {
    @include core-19;
    font-weight: bold;
    &+p {
      margin-top: 0;
    }
  }

  a {
    text-decoration: underline;
  }

  ol,
  ul {
    list-style: decimal;
    list-style-position: outside;
    @include core-19;
    margin: 5px 0 5px $gutter-two-thirds;
    @include media (tablet) {
      margin: $gutter-one-third 0 $gutter-one-third $gutter-two-thirds;
    }
    ul, ol {
      margin: 0 0 0 $gutter-two-thirds;
      padding: 0;
    }
    @include ie(7) {
      li {
        margin-left: $gutter;
      }
    }
  }

  ul {
    list-style: disc;
    list-style-position: outside;
  }

  &.direction-rtl ol,
  &.direction-rtl ul {
    margin: 5px $gutter-two-thirds 5px 0;
    @include media(tablet){
      margin: $gutter-one-third $gutter-two-thirds $gutter-one-third 0;
    }

    ul, ol {
      margin: 0 $gutter-two-thirds 0 0;
    }
  }

  ol.legislative-list {
    list-style: none;
    margin: 5px 0 5px 0;
    li {
      margin: 5px 0 5px 0;
    }
    p {
      margin: 20px 0;
    }
    ol {
      margin: 10px 0 10px $gutter;
      list-style: none;
    }
  }

  em, i {
    font-style: normal;
    font-weight: inherit;
  }

  li {
    p {
      margin: 0;
      padding: 0;
    }
    p+p, p+ul, p+ol,
    ul+p, ul+ol,
    ol+p, ol+ul {
      margin-top: $gutter-one-third;
    }
  }

  abbr {
    cursor: help;
  }

  blockquote {
    padding: 0 0 0 $gutter-two-thirds;
    margin: 0;
    border: 0;
    @include media(desktop) {
      margin: 0 0 0 (-$gutter);
    }

    p {
      padding-left: $gutter-half;

      @include media(tablet) {
        padding-left: $gutter;
      }

      &:before {
        content: "\201C";
        float: left;
        clear: both;
        margin-left: -$gutter-half;
      }

      &.last-child:after {
        content: "\201D";
      }
    }
  }
  &.direction-rtl blockquote {
    padding: 0 $gutter-two-thirds 0 0;
    @include media(desktop) {
      margin: 0 (-$gutter) 0 0;
    }

    p {
      padding-right: $gutter-half;
      padding-left: 0;

      @include media(tablet) {
        padding-right: $gutter;
        padding-left: 0;
      }

      &:before {
        content: "\201D";
        float: right;
        margin-right: -$gutter-half;
        margin-left: 0;
      }

      &.last-child:after {
        content: "\201C";
      }
    }
  }

  hr {
    margin-top: $gutter - 1px;
    border-top: 1px solid #ccc;
    margin-bottom: $gutter;
  }

  figure {
    width: $full-width;
    clear: both;
    overflow: hidden;
    padding: $gutter-one-third 0 0;

    img {
      display: inline;<commit_msg>Use a pseudo selector rather than class<commit_after>// Video player styles from frontend toolkit
@import "../design-patterns/media-player";
@import "govspeak-magna-charta";

.govuk-govspeak {
  &.direction-rtl {
    direction: rtl;
    text-align: start;
  }

  h2:first-child,
  h3:first-child,
  h4:first-child,
  p:first-child {
    margin-top: 0;
  }

  h2 {
    @include core-27;
    font-weight: bold;
    margin-top: $gutter-half;
    @include media(desktop) {
      margin-top: $gutter*1.5;
    }
  }

  h3 {
    @include core-19;
    font-weight: bold;
    margin-top: $gutter + 5px;
    &.hosted-externally {
      @include core-27;
      font-weight: bold;
      padding-top: 2px;
      a {
        text-decoration: none;
        &:hover {
          text-decoration: underline;
        }
      }
    }
  }
  h4 {
    @include core-19;
    font-weight: bold;
    margin-top: $gutter + 5px;
  }

  p {
    @include core-19;
    margin: 5px 0;
    @include media(tablet) {
      margin: $gutter-one-third 0;
    }
  }

  h4,
  h5,
  h6 {
    @include core-19;
    font-weight: bold;
    &+p {
      margin-top: 0;
    }
  }

  a {
    text-decoration: underline;
  }

  ol,
  ul {
    list-style: decimal;
    list-style-position: outside;
    @include core-19;
    margin: 5px 0 5px $gutter-two-thirds;
    @include media (tablet) {
      margin: $gutter-one-third 0 $gutter-one-third $gutter-two-thirds;
    }
    ul, ol {
      margin: 0 0 0 $gutter-two-thirds;
      padding: 0;
    }
    @include ie(7) {
      li {
        margin-left: $gutter;
      }
    }
  }

  ul {
    list-style: disc;
    list-style-position: outside;
  }

  &.direction-rtl ol,
  &.direction-rtl ul {
    margin: 5px $gutter-two-thirds 5px 0;
    @include media(tablet){
      margin: $gutter-one-third $gutter-two-thirds $gutter-one-third 0;
    }

    ul, ol {
      margin: 0 $gutter-two-thirds 0 0;
    }
  }

  ol.legislative-list {
    list-style: none;
    margin: 5px 0 5px 0;
    li {
      margin: 5px 0 5px 0;
    }
    p {
      margin: 20px 0;
    }
    ol {
      margin: 10px 0 10px $gutter;
      list-style: none;
    }
  }

  em, i {
    font-style: normal;
    font-weight: inherit;
  }

  li {
    p {
      margin: 0;
      padding: 0;
    }
    p+p, p+ul, p+ol,
    ul+p, ul+ol,
    ol+p, ol+ul {
      margin-top: $gutter-one-third;
    }
  }

  abbr {
    cursor: help;
  }

  blockquote {
    padding: 0 0 0 $gutter-two-thirds;
    margin: 0;
    border: 0;
    @include media(desktop) {
      margin: 0 0 0 (-$gutter);
    }

    p {
      padding-left: $gutter-half;

      @include media(tablet) {
        padding-left: $gutter;
      }

      &:before {
        content: "\201C";
        float: left;
        clear: both;
        margin-left: -$gutter-half;
      }

      &:last-child:after {
        content: "\201D";
      }
    }
  }
  &.direction-rtl blockquote {
    padding: 0 $gutter-two-thirds 0 0;
    @include media(desktop) {
      margin: 0 (-$gutter) 0 0;
    }

    p {
      padding-right: $gutter-half;
      padding-left: 0;

      @include media(tablet) {
        padding-right: $gutter;
        padding-left: 0;
      }

      &:before {
        content: "\201D";
        float: right;
        margin-right: -$gutter-half;
        margin-left: 0;
      }

      &:last-child:after {
        content: "\201C";
      }
    }
  }

  hr {
    margin-top: $gutter - 1px;
    border-top: 1px solid #ccc;
    margin-bottom: $gutter;
  }

  figure {
    width: $full-width;
    clear: both;
    overflow: hidden;
    padding: $gutter-one-third 0 0;

    img {
      display: inline;
{'fraction_non_alphanumeric': 0.14107192446542627, 'fraction_numerical': 0.027770063871146902, 'mean_word_length': 1.6967427929614376, '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': '367942', 'n_tokens_mistral': 2989, 'n_tokens_neox': 2739, 'n_words': 599}