<commit_before>.sidenav-content {
  h1, h2, h3, h4, h5, h6 {

    &.no-anchor .header-link {
      display: none;
    }

    .header-link {
      color: $mediumgray;
      display: inline-block;
      margin-left: -42px;
      padding: 0 8px;
      text-decoration: none;
      vertical-align: middle;
      visibility: hidden;

      @media (max-width: 600px) {
        float: right;
        margin-left: 0;
      }
    }

    &:hover .header-link {
      visibility: visible;
    }
  }

  .l-sub-section {
    h1, h2, h3, h4, h5, h6 {
      a {
        padding-right: 24px;
        margin-left: -74px;
      }
    }
  }

  .alert {
    h1, h2, h3, h4, h5, h6 {
      a {
        padding-right: 40px;
        margin-left: -90px;
      }
    }
  }
}<commit_msg>fix(aio): prevent heading misplacement while styles load (#21695)<commit_after>.sidenav-content {
  h1, h2, h3, h4, h5, h6 {

    &.no-anchor .header-link {
      display: none;
    }

    .header-link {
      box-sizing: border-box;
      color: $mediumgray;
      display: inline-block;
      margin-left: -42px;
      padding: 0 8px;
      text-decoration: none;
      vertical-align: middle;
      visibility: hidden;
      width: 40px;

      @media (max-width: 600px) {
        float: right;
        margin-left: 0;
      }
    }

    &:hover .header-link {
      visibility: visible;
    }
  }

  .l-sub-section {
    h1, h2, h3, h4, h5, h6 {
      a {
        padding-right: 24px;
        margin-left: -74px;
      }
    }
  }

  .alert {
    h1, h2, h3, h4, h5, h6 {
      a {
        padding-right: 40px;
        margin-left: -90px;
      }
    }
  }
}
{'fraction_non_alphanumeric': 0.1392483056069008, 'fraction_numerical': 0.04621072088724584, 'mean_word_length': 1.529595015576324, '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': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3305071', 'n_tokens_mistral': 666, 'n_tokens_neox': 617, 'n_words': 135}