<commit_before>// Rules for asciidoctor-html5s converter.

.wiki {
  @mixin black-circle-bg {
    display: inline-block;
    background-color: $black;
    border-radius: 50%;
    color: $white-light;
    text-align: center;
    font-size: 0.85em;
    line-height: 1.4em;
    height: 1.4em;
    width: 1.4em;
  }

  .doc-section {
    // This substitutes margin-top on h1-6 that is zeroed by :first-child rule.
    margin-top: 24px;
  }

  .block-title {
    font-size: 1em;
    margin: ($gl-padding / 2) 0;
  }

  .toc {
    margin: $gl-padding 0;
  }

  .toc-list {
    list-style-type: none;
    margin: 0;

    li:before {
      content: "›\00a0";
      margin-left: -$gl-padding;
    }
  }

  figure {
    margin: ($gl-padding * 1.5) 0;

    // FIXME
    & > img {
      margin-bottom: 0 !important;
    }
  }

  figcaption {
    font-weight: 600;
    margin: ($gl-padding / 2) 0;
  }

  // FIXME
  figcaption + *,
  .block-title + * {
    margin-top: 0 !important;
  }

  // Override some extern rule that mess with footer.
  blockquote > footer {
    color: inherit;

    &:before {
      content: normal;
    }
  }

  dt {
    margin-bottom: $gl-padding / 2;
  }

  dd {
    margin-left: 1em;
  }

  .menuseq b.caret {
    @extend .fa-angle-right;
  }

  // Example: [line-through]#strike this#
  // or alternatively: [del]#strike this# (non-standard, but shorter)
  span.line-through,
  span.del {
    text-decoration: line-through;
  }

  // Code callout (a mark inside the code).
  .code b.conum {
    @include black-circle-bg;
    font-weight: normal;
    font-family: $regular_font;
  }

  // Code callouts list, styled as numbers in black circles.
  .callout-list {
    counter-reset: callout-list;
    list-style-type: none;
    margin-top: -$gl-padding / 2;
    margin-bottom: $gl-padding * 1.5;

    & > li:before {
      @include black-circle-bg;
      content: counter(callout-list);
      counter-increment: callout-list;
      margin-left: -2em;
      margin-right: 0.6em;
    }
  }

  .example-block > .example {
    background-color: $gray-normal;
    border: 1px solid $border-color;
    border-radius: $border-radius-default;
    padding: $gl-padding;
    padding-bottom: 0;
    margin: $gl-padding 0;
  }

  .admonition-block {
    border: 1px solid $border-color;
    border-radius: $border-radius-default;
    display: flex;
    flex-direction: column;
    margin-bottom: $gl-padding;
    padding: $gl-padding $gl-padding 0 4.2em;
    position: relative;
    width: 100%;

    &:before {
      position: absolute;
      top: 0;
      bottom: 0;
      left: 0;
      margin: auto 0;
      height: 1.8em;
      width: 2.4em;

      font-family: FontAwesome;
      font-size: 1.8em;
      line-height: 1.8em;
      text-align: center;
    }

    &.note,
    &.tip {
      background-color: #ffffef;
    }

    &.warning,
    &.caution,
    &.important {
      background-color: #ffefef;
    }

    &.note:before {
      @extend .fa-thumb-tack;
    }

    &.tip:before {
      @extend .fa-lightbulb-o;
    }

    &.warning:before {
      @extend .fa-exclamation-triangle;
    }

    &.caution:before {
      @extend .fa-bolt;
    }

    &.important:before {
      @extend .fa-exclamation-circle;
    }

    .block-title {
      margin-bottom: $gl-padding;
    }

    // e.g. "Warning: "
    .block-title.label-only,
    .title-label {
      display: none;
    }
  }
}<commit_msg>Add style for decimal-nested numbered list<commit_after>// Rules for asciidoctor-html5s converter.

.wiki {
  @mixin black-circle-bg {
    display: inline-block;
    background-color: $black;
    border-radius: 50%;
    color: $white-light;
    text-align: center;
    font-size: 0.85em;
    line-height: 1.4em;
    height: 1.4em;
    width: 1.4em;
  }

  .doc-section {
    // This substitutes margin-top on h1-6 that is zeroed by :first-child rule.
    margin-top: 24px;
  }

  .block-title {
    font-size: 1em;
    margin: ($gl-padding / 2) 0;
  }

  .toc {
    margin: $gl-padding 0;
  }

  .toc-list {
    list-style-type: none;
    margin: 0;

    li:before {
      content: "›\00a0";
      margin-left: -$gl-padding;
    }
  }

  figure {
    margin: ($gl-padding * 1.5) 0;

    // FIXME
    & > img {
      margin-bottom: 0 !important;
    }
  }

  figcaption {
    font-weight: 600;
    margin: ($gl-padding / 2) 0;
  }

  // FIXME
  figcaption + *,
  .block-title + * {
    margin-top: 0 !important;
  }

  // Override some extern rule that mess with footer.
  blockquote > footer {
    color: inherit;

    &:before {
      content: normal;
    }
  }

  dt {
    margin-bottom: $gl-padding / 2;
  }

  dd {
    margin-left: 1em;
  }

  .menuseq b.caret {
    @extend .fa-angle-right;
  }

  // Example: [line-through]#strike this#
  // or alternatively: [del]#strike this# (non-standard, but shorter)
  span.line-through,
  span.del {
    text-decoration: line-through;
  }

  // Code callout (a mark inside the code).
  .code b.conum {
    @include black-circle-bg;
    font-weight: normal;
    font-family: $regular_font;
  }

  // Code callouts list, styled as numbers in black circles.
  .callout-list {
    counter-reset: callout-list;
    list-style-type: none;
    margin-top: -$gl-padding / 2;
    margin-bottom: $gl-padding * 1.5;

    & > li:before {
      @include black-circle-bg;
      content: counter(callout-list);
      counter-increment: callout-list;
      margin-left: -2em;
      margin-right: 0.6em;
    }
  }

  .example-block > .example {
    background-color: $gray-normal;
    border: 1px solid $border-color;
    border-radius: $border-radius-default;
    padding: $gl-padding;
    padding-bottom: 0;
    margin: $gl-padding 0;
  }

  .admonition-block {
    border: 1px solid $border-color;
    border-radius: $border-radius-default;
    display: flex;
    flex-direction: column;
    margin-bottom: $gl-padding;
    padding: $gl-padding $gl-padding 0 4.2em;
    position: relative;
    width: 100%;

    &:before {
      position: absolute;
      top: 0;
      bottom: 0;
      left: 0;
      margin: auto 0;
      height: 1.8em;
      width: 2.4em;

      font-family: FontAwesome;
      font-size: 1.8em;
      line-height: 1.8em;
      text-align: center;
    }

    &.note,
    &.tip {
      background-color: #ffffef;
    }

    &.warning,
    &.caution,
    &.important {
      background-color: #ffefef;
    }

    &.note:before {
      @extend .fa-thumb-tack;
    }

    &.tip:before {
      @extend .fa-lightbulb-o;
    }

    &.warning:before {
      @extend .fa-exclamation-triangle;
    }

    &.caution:before {
      @extend .fa-bolt;
    }

    &.important:before {
      @extend .fa-exclamation-circle;
    }

    .block-title {
      margin-bottom: $gl-padding;
    }

    // e.g. "Warning: "
    .block-title.label-only,
    .title-label {
      display: none;
    }
  }

  // https://gist.github.com/jirutka/32049196ab75547b7f47
  .decimal-nested {
    ol {
      list-style-type: none;
      counter-reset: item;
      margin: 0;
    }

    ol > li {
      display: table;
      counter-increment: item;

      &:before {
        content: counters(item, ".") ". ";
        display: table-cell;
        padding-right: 0.6em;
      }
    }

    li ol > li {
      margin: 0;

      &:before {
        content: counters(item, ".") " ";
      }
    }
  }
}
{'fraction_non_alphanumeric': 0.14627477785372522, 'fraction_numerical': 0.0202323991797676, 'mean_word_length': 1.9228925289652417, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, 'https://': 1, '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': '128344', 'n_tokens_mistral': 2868, 'n_tokens_neox': 2670, 'n_words': 567}