<commit_before>$header-height = 40px

red-dot-before(leftPos = -8px)
  content: ""
  width: 0
  height: 0
  border 2px solid $red
  border-radius 50%
  position: absolute
  top: calc(50% - 1px)
  left: leftPos

#header
  background-color: #fff
  height: $header-height
  padding: $heading-padding-vertical 60px
  position: relative
  z-index: $z-header

body.docs
  #header
    position: fixed
    width: 100%
    top: 0
  #nav
    position: fixed

#nav
  list-style-type: none
  margin: 0
  padding: 0
  position: absolute
  right: 30px
  top: $heading-padding-vertical
  height: $header-height
  line-height: $header-height
  .break
    display: none
  li
    display: inline-block
    position: relative
    margin: 0 .6em

  .nav-dropdown-container
    padding-right: .8em
    &:last-child
      padding-right: 0

  .nav-dropdown
    .nav-link
      &:hover, &.current
        border-bottom: none
      &.current
        &::after
          content: ""
          width: 0
          height: 0
          border-left: 5px solid $green
          border-top: 3px solid transparent
          border-bottom: 3px solid transparent
          position: absolute
          top: 50%
          margin-top: -4px
          left: 8px
      &.new::before
        red-dot-before(8px)

.nav-link
  padding-bottom: 3px
  white-space: nowrap
  &:hover, &.current
    border-bottom: 3px solid $green
  &.new::before
    red-dot-before()

.new-label
  position: absolute
  top: 3px
  left: 110%<commit_msg>Vertically center current nav-link indication (#2506) (#2058)<commit_after>$header-height = 40px

red-dot-before(leftPos = -8px)
  content: ""
  width: 0
  height: 0
  border 2px solid $red
  border-radius 50%
  position: absolute
  top: calc(50% - 1px)
  left: leftPos

#header
  background-color: #fff
  height: $header-height
  padding: $heading-padding-vertical 60px
  position: relative
  z-index: $z-header

body.docs
  #header
    position: fixed
    width: 100%
    top: 0
  #nav
    position: fixed

#nav
  list-style-type: none
  margin: 0
  padding: 0
  position: absolute
  right: 30px
  top: $heading-padding-vertical
  height: $header-height
  line-height: $header-height
  .break
    display: none
  li
    display: inline-block
    position: relative
    margin: 0 .6em

  .nav-dropdown-container
    padding-right: .8em
    &:last-child
      padding-right: 0

  .nav-dropdown
    .nav-link
      &:hover, &.current
        border-bottom: none
      &.current
        &::after
          content: ""
          width: 0
          height: 0
          border-left: 5px solid $green
          border-top: 3px solid transparent
          border-bottom: 3px solid transparent
          position: absolute
          top: 50%
          transform: translateY(-50%)
          left: 8px
      &.new::before
        red-dot-before(8px)

.nav-link
  padding-bottom: 3px
  white-space: nowrap
  &:hover, &.current
    border-bottom: 3px solid $green
  &.new::before
    red-dot-before()

.new-label
  position: absolute
  top: 3px
  left: 110%
{'fraction_non_alphanumeric': 0.10788518640712635, 'fraction_numerical': 0.03002309468822171, 'mean_word_length': 2.20168954593453, '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': '954707', 'n_tokens_mistral': 1091, 'n_tokens_neox': 1006, 'n_words': 273}