<commit_before>// sass-lint:disable no-mergeable-selectors

#nav-icon {
  z-index: 25;
  position: fixed;
  margin-top: calc(var(--kpm-bar-height, 2em) + 1px);
  top: $gutter;
  right: $gutter;
  background: $data-menu-black-svg no-repeat right;
  margin-right: 4px;
  margin-top: 52px;
  height: 32px;
  width: 32px;

  &.open {
    height: 14px;
    width: 14px;
    padding: 16px;
    background: $data-close-black-svg no-repeat center;
    background-size: 17px;
    background-color: $white;
  }

  @media (min-width: 992px) {
    display: none;
  }
}

#mobileMenu {
  &.navbar {
    &.navbar-light {
      position: initial;
      display: block;

      @media (min-width: 992px) {
        display: none;
      }

      #mobileMenuContent {
        height: 100vh !important;
        overflow-y: scroll;

        &.navbar-collapse {
          &.collapse,
          &.collapsing {
            background-color: white;
            display: block !important; // Bootstrap override
            position: fixed;
            margin-top: calc(var(--kpm-bar-height, 2em) + 1px);
            z-index: 20;
            top: 0;
            right: 0;
            left: 0;
            bottom: 0;
            padding: 0;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.5s ease-out, visibility 0.5s;
          }

          &.show {
            opacity: 1;
            visibility: visible;

            //  * * We have to compensate for the margins and breakpoints that are set for body in Social - personal menu * * *
            .use-personal-menu & {
              top: -4.4em;
              padding-top: 4.4em;

              @media (min-width: 39em) {
                top: -2.2em;
                padding-top: 2.2em;
              }
            }
          }
        }
      }

      ul {
        &.menu {
          &.navbar-nav {
            &#mobileMenuList {
              display: block;
              padding: $gutter 0 0;
              height: 100%;

              &.expandable {
                li {
                  &.nav-item {
                    a,
                    span {
                      &.nav-link {
                        padding-left: 0;
                        padding-right: 20px;
                        margin-left: 3px;
                      }
                    }

                    &.node {
                      background: $data-arrow-expand-black-svg no-repeat right;
                      background-position: 100% 8px;
                      background-size: auto 12px;
                      &.expanded {
                        background: $data-arrow-collapse-black-svg no-repeat right;
                        background-position: 100% 8px;
                        padding-right: 0;
                        background-size: auto 12px;
                      }

                      ul {
                        &.nav-list {
                          border-top: 1px solid $borderGrey;
                          padding: 0;
                          padding-left: 20px;
                          margin-top: 7px;
                          padding-top: 7px;
                          margin-left: 3px;
                          list-style: none;

                          li {
                            &.nav-item {
                              padding: 0;
                              margin: 0;
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }

              li {
                &.parentLink {
                  padding: 0;
                  margin-left: 10px;
                  margin-right: 45px;
                  background: $data-arrow-back-blue-svg no-repeat left;
                  background-size: auto 12px;
                  background-position-y: 6px;

                  a,
                  span {
                    padding-left: $gutter;
                    font-family: $sansSerif;
                    font-size: $font-size-base;
                    display: block;
                  }
                }
              }

              li {
                &.nav-item {
                  padding: 0 10px;
                  margin: 0 20px 0 0;
                  color: $black;
                  line-height: 2;
                  font-weight: normal;

                  &.mainMenuLink {
                    color: $black;
                    font-family: $sansSerif;
                    font-size: 1.125rem;
                    line-height: 1.375;
                    padding: 8px 3px;
                  }

                  a,
                  span {
                    &.nav-link {
                      color: $black;
                      font-family: $sansSerif;
                      font-size: $font-size-base;
                      line-height: 1.5;
                      padding: 7px 3px;
                    }
                  }

                  &.selected {
                    > a,
                    span {
                      &.nav-link {
                        font-weight: 600;
                      }
                    }
                  }

                  &.mainMenuItem {
                    &.selected {
                      a,
                      span {
                        font-weight: 600;
                      }
                    }
                  }

                  &.homeItem {
                    margin-right: 1.25rem;

                    &.active {
                      a,
                      span {
                        &.nav-link {
                          border-bottom: 0;
                          padding: 0 4px;
                        }
                      }
                    }

                    a,
                    span {
                      &.nav-link {
                        margin-top: 8px;
                        margin-bottom: 8px;
                        padding: 0 28px 0 5px;
                      }
                    }
                  }

                  &.node {
                    background: $data-arrow-expand-black-svg no-repeat right;
                    background-size: auto 12px;
                    background-position: 100% 8px;
                  }
                }
              }

              li {
                .ancestor {
                  display: block;
                  padding: 15px 3px 7px;
                  font-size: $h3-fontSize;
                  font-weight: 600;
                  line-height: 1.5;
                  font-family: $sansSerif;
                }
              }

              .secondaryMenuWrap {
                height: 100%;

                .secondaryMenuContainer {
                  background-color: $grey;
                  height: 100%;
                  margin-top: $gutter;
                  padding-top: 10px;
                  padding-bottom: 20px;
                  list-style: none;
                  padding-left: 0;

                  li {
                    &.nav-item {
                      &.secondaryItem {
                        padding-top: 6px;

                        a,
                        span {
                          font-size: $font-size-base;
                          padding: 0;
                          margin: 0 2.5rem 0 0;
                          color: $white;
                          line-height: 2;
                          font-weight: normal;

                          &.secondaryMenu {
                            padding: 8px 4px;
                            margin: 0;
                            font-family: $sansSerif;
                          }
                        }

                        a[hreflang='en-UK'],
                        a[hreflang='en-GB'],
                        a[hreflang='sv-SE'] {
                          &.secondaryMenu {
                            color: $white;
                            background: $data-language-white-svg no-repeat right;
                            background-size: 18px;
                            padding-right: 22px;
                            padding-top: 6px;

                            &:first-child {
                              border-top: 0;
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
<commit_msg>Set margin-top for hamburger menu based on kpm as before<commit_after>// sass-lint:disable no-mergeable-selectors

#nav-icon {
  z-index: 25;
  position: fixed;
  margin-top: calc(var(--kpm-bar-height, 2em) + 1px);
  top: $gutter;
  right: $gutter;
  background: $data-menu-black-svg no-repeat right;
  margin-right: 4px;
  height: 32px;
  width: 32px;

  &.open {
    height: 14px;
    width: 14px;
    padding: 16px;
    background: $data-close-black-svg no-repeat center;
    background-size: 17px;
    background-color: $white;
  }

  @media (min-width: 992px) {
    display: none;
  }
}

#mobileMenu {
  &.navbar {
    &.navbar-light {
      position: initial;
      display: block;

      @media (min-width: 992px) {
        display: none;
      }

      #mobileMenuContent {
        height: 100vh !important;
        overflow-y: scroll;

        &.navbar-collapse {
          &.collapse,
          &.collapsing {
            background-color: white;
            display: block !important; // Bootstrap override
            position: fixed;
            margin-top: calc(var(--kpm-bar-height, 2em) + 1px);
            z-index: 20;
            top: 0;
            right: 0;
            left: 0;
            bottom: 0;
            padding: 0;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.5s ease-out, visibility 0.5s;
          }

          &.show {
            opacity: 1;
            visibility: visible;

            //  * * We have to compensate for the margins and breakpoints that are set for body in Social - personal menu * * *
            .use-personal-menu & {
              top: -4.4em;
              padding-top: 4.4em;

              @media (min-width: 39em) {
                top: -2.2em;
                padding-top: 2.2em;
              }
            }
          }
        }
      }

      ul {
        &.menu {
          &.navbar-nav {
            &#mobileMenuList {
              display: block;
              padding: $gutter 0 0;
              height: 100%;

              &.expandable {
                li {
                  &.nav-item {
                    a,
                    span {
                      &.nav-link {
                        padding-left: 0;
                        padding-right: 20px;
                        margin-left: 3px;
                      }
                    }

                    &.node {
                      background: $data-arrow-expand-black-svg no-repeat right;
                      background-position: 100% 8px;
                      background-size: auto 12px;
                      &.expanded {
                        background: $data-arrow-collapse-black-svg no-repeat right;
                        background-position: 100% 8px;
                        padding-right: 0;
                        background-size: auto 12px;
                      }

                      ul {
                        &.nav-list {
                          border-top: 1px solid $borderGrey;
                          padding: 0;
                          padding-left: 20px;
                          margin-top: 7px;
                          padding-top: 7px;
                          margin-left: 3px;
                          list-style: none;

                          li {
                            &.nav-item {
                              padding: 0;
                              margin: 0;
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }

              li {
                &.parentLink {
                  padding: 0;
                  margin-left: 10px;
                  margin-right: 45px;
                  background: $data-arrow-back-blue-svg no-repeat left;
                  background-size: auto 12px;
                  background-position-y: 6px;

                  a,
                  span {
                    padding-left: $gutter;
                    font-family: $sansSerif;
                    font-size: $font-size-base;
                    display: block;
                  }
                }
              }

              li {
                &.nav-item {
                  padding: 0 10px;
                  margin: 0 20px 0 0;
                  color: $black;
                  line-height: 2;
                  font-weight: normal;

                  &.mainMenuLink {
                    color: $black;
                    font-family: $sansSerif;
                    font-size: 1.125rem;
                    line-height: 1.375;
                    padding: 8px 3px;
                  }

                  a,
                  span {
                    &.nav-link {
                      color: $black;
                      font-family: $sansSerif;
                      font-size: $font-size-base;
                      line-height: 1.5;
                      padding: 7px 3px;
                    }
                  }

                  &.selected {
                    > a,
                    span {
                      &.nav-link {
                        font-weight: 600;
                      }
                    }
                  }

                  &.mainMenuItem {
                    &.selected {
                      a,
                      span {
                        font-weight: 600;
                      }
                    }
                  }

                  &.homeItem {
                    margin-right: 1.25rem;

                    &.active {
                      a,
                      span {
                        &.nav-link {
                          border-bottom: 0;
                          padding: 0 4px;
                        }
                      }
                    }

                    a,
                    span {
                      &.nav-link {
                        margin-top: 8px;
                        margin-bottom: 8px;
                        padding: 0 28px 0 5px;
                      }
                    }
                  }

                  &.node {
                    background: $data-arrow-expand-black-svg no-repeat right;
                    background-size: auto 12px;
                    background-position: 100% 8px;
                  }
                }
              }

              li {
                .ancestor {
                  display: block;
                  padding: 15px 3px 7px;
                  font-size: $h3-fontSize;
                  font-weight: 600;
                  line-height: 1.5;
                  font-family: $sansSerif;
                }
              }

              .secondaryMenuWrap {
                height: 100%;

                .secondaryMenuContainer {
                  background-color: $grey;
                  height: 100%;
                  margin-top: $gutter;
                  padding-top: 10px;
                  padding-bottom: 20px;
                  list-style: none;
                  padding-left: 0;

                  li {
                    &.nav-item {
                      &.secondaryItem {
                        padding-top: 6px;

                        a,
                        span {
                          font-size: $font-size-base;
                          padding: 0;
                          margin: 0 2.5rem 0 0;
                          color: $white;
                          line-height: 2;
                          font-weight: normal;

                          &.secondaryMenu {
                            padding: 8px 4px;
                            margin: 0;
                            font-family: $sansSerif;
                          }
                        }

                        a[hreflang='en-UK'],
                        a[hreflang='en-GB'],
                        a[hreflang='sv-SE'] {
                          &.secondaryMenu {
                            color: $white;
                            background: $data-language-white-svg no-repeat right;
                            background-size: 18px;
                            padding-right: 22px;
                            padding-top: 6px;

                            &:first-child {
                              border-top: 0;
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

{'fraction_non_alphanumeric': 0.08431545001465846, 'fraction_numerical': 0.020756376429199648, 'mean_word_length': 0.6203686110583317, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '238292', 'n_tokens_mistral': 4609, 'n_tokens_neox': 3925, 'n_words': 827}