<commit_before>@mixin flexbox($justifyContent, $alignItems) {
  display: flex;
  flex-wrap: wrap;
  justify-content: $justifyContent;
  align-items: $alignItems;
}

@mixin fit() {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

body {
  background: #222;
  font-family: sans-serif;
  margin: 0;
}

nav {
  width: 100vw;
  height: 20vmin;

  ul {
    list-style: none;
    margin: 0;
    padding: 0;
    background: salmon;
    height: 100%;
    @include flexbox(space-around, center)
  }

  a {
    color: white;
    text-decoration: none;
    font-size: 10vmin;
    position: relative;
  }

  a::after {
    @include fit();
    left: 50%;
    width: 0%;
    border-bottom: 1vmin solid white;
    content: '';
    transition: width ease .25s, left ease .25s;
  }
  
  li {
    height: 100%;
    cursor: pointer;
    @include flexbox(center, center);

    &:hover {
      a::after {
        width: 100%;
        left: 0%;
      }
    }
  }
}
<commit_msg>add padding and box-sizing<commit_after>@mixin flexbox($justifyContent, $alignItems) {
  display: flex;
  flex-wrap: wrap;
  justify-content: $justifyContent;
  align-items: $alignItems;
}

@mixin fit() {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

body {
  background: #222;
  font-family: sans-serif;
  margin: 0;
}

nav {
  width: 100vw;
  height: 20vmin;

  ul {
    list-style: none;
    margin: 0;
    padding: 0;
    background: salmon;
    height: 100%;
    @include flexbox(space-around, center)
  }

  a {
    color: white;
    text-decoration: none;
    font-size: 10vmin;
    position: relative;
  }

  a::after {
    @include fit();
    left: 50%;
    width: 0%;
    border-bottom: 1vmin solid white;
    content: '';
    transition: width ease .25s, left ease .25s;
  }
  
  li {
    height: 100%;
    cursor: pointer;
    @include flexbox(center, center);
    box-sizing: border-box;
    padding: 2vmin;

    &:hover {
      a::after {
        width: 100%;
        left: 0%;
      }
    }
  }
}

{'fraction_non_alphanumeric': 0.14271604938271604, 'fraction_numerical': 0.03901234567901234, 'mean_word_length': 2.382303839732888, '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': '7176997', 'n_tokens_mistral': 837, 'n_tokens_neox': 753, 'n_words': 189}