<commit_before>/* ==========================================================================
   MASTHEAD
   ========================================================================== */

.masthead {
  position: relative;
  width: 100%;
  font-family: $sans-serif;
  background-color: #fff;
  border-bottom: 1px solid $light-gray;
  z-index: 11;
  animation: fade-in 3s;
  .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
  }
  a {
    color: #000;
  }
  .overlay__menu-trigger {
    color: #fff;
    background: #000;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 10px;
    border-radius: $border-radius;
    &:before {
      display: none;
    }
    &:hover {
      background-color: $highlighter-color;
    }
  }
}

.masthead__menu-wrapper {
  @media (max-width: $small) {
    width: 100%;
  }
}

.masthead__menu {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  .is--hidden {
    @media (max-width: $medium-wide) {
      display: none;
    }
  }
}

.masthead__title {
  display: none;
  @include breakpoint($small) {
    display: block;
    margin: 10px 0;
    padding: 10px 0 10px 0;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 1px;
    line-height: 0.8rem;
    text-transform: uppercase;
  }
}
.masthead__menu-item {
  position: relative;
  display: block;
  margin: 10px 0 0;
  padding: 10px 0 20px;
  font-size: 0.8rem;
  letter-spacing: 1px;
  line-height: 0.8rem;
  // underline effect
  &:before {
    content: '';
    position: absolute;
    bottom: 0;
    height: 5px;
    width: 100%;
    background-color: $light-gray;
    transition: all 300ms cubic-bezier(0.325, -0.075, 0, 1.65);
    transform: scaleX(0); // hide
  }
  &:hover:before {
    transform: scaleX(1); // reveal
  }
  // active state
  &.is--active:before {
    transform: scaleX(1);
    background-color: #000;
  }
  @include breakpoint($small) {
    margin-left: 30px;
    margin-right: 0;
  }
}

/*
   Overlay menu
   ========================================================================== */

.overlay__menu {
  /* by default it's hidden - on top of the viewport */
  position: absolute;
  width: 100%;
  left: 0;
  top: 0;
  padding: 50px 0 0;
  background-color: #fff;
  z-index: 10;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  overflow: hidden;
  /* this fixes the buggy scrolling on webkit browsers - mobile devices only - when overflow property is applied */
  -webkit-overflow-scrolling: touch;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(.86,.01,.77,.78);
  box-shadow: 0 0 10px rgba(#000, 0.5);
  @include breakpoint($small) {
    padding-top: 80px;
  }

  ul {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  a {
    display: inline-block;
    margin: 5px 0;
    padding: 5px 5px 5px 0;
    color: #000;
    border-radius: 0.25em;
    &:hover {
      padding-left: 10px;
      padding-right: 10px;
      background-color: $light-gray;
    }
  }

  &.is--visible {
    transform: translateY(0);
  }

}
<commit_msg>Reduce whitespace in overlay menu<commit_after>/* ==========================================================================
   MASTHEAD
   ========================================================================== */

.masthead {
  position: relative;
  width: 100%;
  font-family: $sans-serif;
  background-color: #fff;
  border-bottom: 1px solid $light-gray;
  z-index: 11;
  animation: fade-in 3s;
  .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
  }
  a {
    color: #000;
  }
  .overlay__menu-trigger {
    color: #fff;
    background: #000;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 10px;
    border-radius: $border-radius;
    &:before {
      display: none;
    }
    &:hover {
      background-color: $highlighter-color;
    }
  }
}

.masthead__menu-wrapper {
  @media (max-width: $small) {
    width: 100%;
  }
}

.masthead__menu {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  .is--hidden {
    @media (max-width: $medium-wide) {
      display: none;
    }
  }
}

.masthead__title {
  display: none;
  @include breakpoint($small) {
    display: block;
    margin: 10px 0;
    padding: 10px 0 10px 0;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 1px;
    line-height: 0.8rem;
    text-transform: uppercase;
  }
}
.masthead__menu-item {
  position: relative;
  display: block;
  margin: 10px 0 0;
  padding: 10px 0 20px;
  font-size: 0.8rem;
  letter-spacing: 1px;
  line-height: 0.8rem;
  // underline effect
  &:before {
    content: '';
    position: absolute;
    bottom: 0;
    height: 5px;
    width: 100%;
    background-color: $light-gray;
    transition: all 300ms cubic-bezier(0.325, -0.075, 0, 1.65);
    transform: scaleX(0); // hide
  }
  &:hover:before {
    transform: scaleX(1); // reveal
  }
  // active state
  &.is--active:before {
    transform: scaleX(1);
    background-color: #000;
  }
  @include breakpoint($small) {
    margin-left: 30px;
    margin-right: 0;
  }
}

/*
   Overlay menu
   ========================================================================== */

.overlay__menu {
  /* by default it's hidden - on top of the viewport */
  position: absolute;
  width: 100%;
  left: 0;
  top: 0;
  padding: 50px 0 0;
  background-color: #fff;
  z-index: 10;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  overflow: hidden;
  /* this fixes the buggy scrolling on webkit browsers - mobile devices only - when overflow property is applied */
  -webkit-overflow-scrolling: touch;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(.86,.01,.77,.78);
  box-shadow: 0 0 10px rgba(#000, 0.5);

  ul {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  a {
    display: inline-block;
    margin: 5px 0;
    padding: 5px 5px 5px 0;
    color: #000;
    border-radius: 0.25em;
    &:hover {
      padding-left: 10px;
      padding-right: 10px;
      background-color: $light-gray;
    }
  }

  &.is--visible {
    transform: translateY(0);
  }

}

{'fraction_non_alphanumeric': 0.20407174018419777, 'fraction_numerical': 0.042333171756341895, 'mean_word_length': 2.792892156862745, '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': '5880201', 'n_tokens_mistral': 2420, 'n_tokens_neox': 2138, 'n_words': 510}