<commit_before>/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
 * You can obtain one at http://mozilla.org/MPL/2.0/. */

@import "variables.less";

.contextMenu {
  border-radius: @borderRadius;
  box-sizing: border-box;
  color: black;
  cursor: default;
  display: flex;
  font-size: 11px;
  &.contextMenuScrollable {
    overflow-y: scroll;
  }
  // This is a reasonable max height and also solves problems for bookmarks menu
  // and bookmarks overflow menu reaching down too low.
  @usedUpChrome: @navbarHeight + @bookmarksToolbarWithFaviconsHeight;
  max-height: calc(~'100% - @{usedUpChrome}');
  overflow: auto;
  padding: 0px 0px;
  position: absolute;
  z-index: 350;
  -webkit-user-select: none;
  &.reverseExpand {
    flex-direction: row-reverse;
  }

  .contextMenuSingle {
    background-color: @toolbarBackground;
    border: 1px solid @toolbarBorderColor;
    border-radius: @borderRadius;
    box-sizing: border-box;
    display: table;
    min-width: 100px;
    max-width: 300px;

    &.isSubmenu {
      position: relative;
    }
  }

  .contextMenuIcon {
    font-size: 14px;
    margin-right: 8px;
  }
}

.contextMenuItem {
  padding: 6px 10px 6px 20px;
  &.hasIcon {
    padding-left: 10px;
    &.hasFaIcon {
      padding-left: 12px;
    }
  }
  &.checkedMenuItem {
    padding-left: 4px;

    .contextMenuCheckIndicator {
      padding-right: 4px;
    }
  }
  box-sizing: border-box;
  max-width: 300px;
  display: flex;
  align-items: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  -webkit-user-select: none;

  &.multiContextMenuItem {
    display: flex;

    .contextMenuSubItem {
      border: 1px solid black;
      border-radius: @borderRadius;
      flex-grow: 1;
      margin: 1px;
      padding: 4px;
      text-align: center;
    }

    .multiItemTitle {
      margin-top: auto;
      margin-bottom: auto;
      padding-right: 10px;
    }
  }

  &.contextMenuSeparator {
    padding: 1px 0px;

    hr {
      background-color: #bbb;
      border: none;
      height: 1px;
      width: 100%;
    }
  }

  &:not([disabled]) {
    &:not(.contextMenuSeparator) {
      &:hover {
        background-color: lighten(@menuSelectionColor, 5%);
      }
    }
  }
  &[disabled] {
    color: #bbb;
  }

  .contextMenuItemText {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .submenuIndicatorContainer {
    display: flex;
    margin: auto 0 auto auto;

    .submenuIndicatorSpacer {
      flex-grow: 1;
    }

    .submenuIndicator {
      color: #676767;
      font-size: 10px;
      float: right;
      margin: auto 0 auto 5px;
    }
  }
}
<commit_msg>Fixed issue w/ overflow on hamburger menu; it was causing scrollbars to show up on Windows.<commit_after>/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
 * You can obtain one at http://mozilla.org/MPL/2.0/. */

@import "variables.less";

.contextMenu {
  border-radius: @borderRadius;
  box-sizing: border-box;
  color: black;
  cursor: default;
  display: flex;
  font-size: 11px;
  &.contextMenuScrollable {
    overflow-y: scroll;
  }
  // This is a reasonable max height and also solves problems for bookmarks menu
  // and bookmarks overflow menu reaching down too low.
  @usedUpChrome: @navbarHeight + @bookmarksToolbarWithFaviconsHeight;
  max-height: calc(~'100% - @{usedUpChrome}');
  padding: 0px 0px;
  position: absolute;
  z-index: 350;
  -webkit-user-select: none;
  &.reverseExpand {
    flex-direction: row-reverse;
  }

  .contextMenuSingle {
    background-color: @toolbarBackground;
    border: 1px solid @toolbarBorderColor;
    border-radius: @borderRadius;
    box-sizing: border-box;
    display: table;
    min-width: 100px;
    max-width: 300px;

    &.isSubmenu {
      position: relative;
    }
  }

  .contextMenuIcon {
    font-size: 14px;
    margin-right: 8px;
  }
}

.contextMenuItem {
  padding: 6px 10px 6px 20px;
  &.hasIcon {
    padding-left: 10px;
    &.hasFaIcon {
      padding-left: 12px;
    }
  }
  &.checkedMenuItem {
    padding-left: 4px;

    .contextMenuCheckIndicator {
      padding-right: 4px;
    }
  }
  box-sizing: border-box;
  max-width: 300px;
  display: flex;
  align-items: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  -webkit-user-select: none;

  &.multiContextMenuItem {
    display: flex;

    .contextMenuSubItem {
      border: 1px solid black;
      border-radius: @borderRadius;
      flex-grow: 1;
      margin: 1px;
      padding: 4px;
      text-align: center;
    }

    .multiItemTitle {
      margin-top: auto;
      margin-bottom: auto;
      padding-right: 10px;
    }
  }

  &.contextMenuSeparator {
    padding: 1px 0px;

    hr {
      background-color: #bbb;
      border: none;
      height: 1px;
      width: 100%;
    }
  }

  &:not([disabled]) {
    &:not(.contextMenuSeparator) {
      &:hover {
        background-color: lighten(@menuSelectionColor, 5%);
      }
    }
  }
  &[disabled] {
    color: #bbb;
  }

  .contextMenuItemText {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .submenuIndicatorContainer {
    display: flex;
    margin: auto 0 auto auto;

    .submenuIndicatorSpacer {
      flex-grow: 1;
    }

    .submenuIndicator {
      color: #676767;
      font-size: 10px;
      float: right;
      margin: auto 0 auto 5px;
    }
  }
}

{'fraction_non_alphanumeric': 0.11791424418604651, 'fraction_numerical': 0.023255813953488372, 'mean_word_length': 2.497458703939009, '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': '6097227', 'n_tokens_mistral': 2036, 'n_tokens_neox': 1884, 'n_words': 469}