<commit_before>// Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information.

//
// Office UI Fabric
// --------------------------------------------------
// Dropdown styles


.ms-Dropdown {
  .ms-font-m;
  .ms-u-normalize;
  margin-bottom: 10px;
  position: relative;
  outline: 0;

  &:hover,
  &:focus,
  &:active {
    .ms-Dropdown-title,
    .ms-Dropdown-caretDown {
      color: @ms-color-black;
    }
  }

  &:hover,
  &:active {
    .ms-Dropdown-title {
      border-color: @ms-color-neutralSecondaryAlt; 
    }
  }

  &:focus {
    .ms-Dropdown-title {
      border-color: @ms-color-themePrimary;
    }
  }
}

//== State: A disabled dropdown
.ms-Dropdown.is-disabled {
  .ms-Dropdown-title {
    background-color: @ms-color-neutralLighter;
    border-color: @ms-color-neutralLighter;
    color: @ms-color-neutralTertiary;
    cursor: default;
  }
  
  .ms-Dropdown-caretDown {
    color: @ms-color-neutralTertiary;
  }
}

// When the dropdown is opened
// Note: .ms-Dropdown--open is deprecated and will be removed in a future version. 
// Use .is-open for an open dropdown.
.ms-Dropdown.ms-Dropdown--open .ms-Dropdown-items,
.ms-Dropdown.is-open .ms-Dropdown-items {
  display: block;
  position: fixed;
}

// Hide the original dropdown
.ms-Dropdown-select {
  display: none;
}

.ms-Dropdown-caretDown {
  color: @ms-color-neutralSecondary;
  font-size: @ms-font-size-l;
  position: absolute;
  right: 9px;
  top: 9px;
  z-index: 1;
  pointer-events: none;
}

// Style the new, replacement component
.ms-Dropdown-title {
  .ms-u-normalize;
  background: @ms-color-white;
  border: 1px solid @ms-color-neutralTertiaryAlt;
  cursor: pointer;
  display: block;
  height: 32px;
  line-height: 30px;
  padding: 0 32px 0 10px;
  position: relative;
}

// Container for the dropdown items, displayed as a panel on small screens.
.ms-Dropdown-items {
  .ms-u-normalize;
  .drop-shadow;
  background-color: @ms-color-white;
  display: none;
  list-style-type: none;
  position: absolute;
  width: 100%;
  max-width: 268px;
  z-index: (@ms-zIndex-Dropdown + @ms-zIndex-back);
  top: 0;
  right: 0;
  bottom: 0;

  &:before {
    content: '';
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid @ms-color-neutralLight;
  }
}

.ms-Dropdown-item {
  box-sizing: border-box;
  cursor: pointer;
  display: block;
  height: 40px;
  line-height: 38px;
  padding: 0 10px;
  position: relative;
  border: 1px solid transparent;
  white-space: nowrap;

  // Shorten the first and last items to maintain baseline alignment.
  &:first-child, 
  &:last-child {
    height: 39px;
  }

  &:hover {
    background-color: @ms-color-neutralLight;
    color: @ms-color-black;
    outline: 1px solid transparent;
  }

  &:active {
    background-color: @ms-color-neutralLight;
    border-color: @ms-color-themePrimary;
    color: @ms-color-black;
  }

  &.is-disabled {
    background: @ms-color-white;
    color: @ms-color-neutralTertiary;
    cursor: default;
    line-height: 40px;
  }
}

//== State: A selected dropdown item
// Note: .ms-Dropdown-item--selected is deprecated and will be removed in a future version.
// Use .is-selected instead.
.ms-Dropdown-item.is-selected,
.ms-Dropdown-item.ms-Dropdown-item--selected {
  background-color: @ms-color-themeLight;
  color: @ms-color-black;
  line-height: 40px;

  &:hover {
    background-color: @ms-color-themeLight;
  }
}


@media (min-width: @ms-screen-md-min) {
  // On larger screens, display as a traditional dropdown.
  .ms-Dropdown-items {
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    overflow-y: scroll;
    max-width: 100%;
  }

  .ms-Dropdown.ms-Dropdown--open .ms-Dropdown-items,
  .ms-Dropdown.is-open .ms-Dropdown-items {
    position: absolute;
  }
}
<commit_msg>Fix for scroll on small screen devices,<commit_after>// Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information.

//
// Office UI Fabric
// --------------------------------------------------
// Dropdown styles


.ms-Dropdown {
  .ms-font-m;
  .ms-u-normalize;
  margin-bottom: 10px;
  position: relative;
  outline: 0;

  &:hover,
  &:focus,
  &:active {
    .ms-Dropdown-title,
    .ms-Dropdown-caretDown {
      color: @ms-color-black;
    }
  }

  &:hover,
  &:active {
    .ms-Dropdown-title {
      border-color: @ms-color-neutralSecondaryAlt; 
    }
  }

  &:focus {
    .ms-Dropdown-title {
      border-color: @ms-color-themePrimary;
    }
  }
}

//== State: A disabled dropdown
.ms-Dropdown.is-disabled {
  .ms-Dropdown-title {
    background-color: @ms-color-neutralLighter;
    border-color: @ms-color-neutralLighter;
    color: @ms-color-neutralTertiary;
    cursor: default;
  }
  
  .ms-Dropdown-caretDown {
    color: @ms-color-neutralTertiary;
  }
}

// When the dropdown is opened
// Note: .ms-Dropdown--open is deprecated and will be removed in a future version. 
// Use .is-open for an open dropdown.
.ms-Dropdown.ms-Dropdown--open .ms-Dropdown-items,
.ms-Dropdown.is-open .ms-Dropdown-items {
  display: block;
  position: fixed;
}

// Hide the original dropdown
.ms-Dropdown-select {
  display: none;
}

.ms-Dropdown-caretDown {
  color: @ms-color-neutralSecondary;
  font-size: @ms-font-size-l;
  position: absolute;
  right: 9px;
  top: 9px;
  z-index: 1;
  pointer-events: none;
}

// Style the new, replacement component
.ms-Dropdown-title {
  .ms-u-normalize;
  background: @ms-color-white;
  border: 1px solid @ms-color-neutralTertiaryAlt;
  cursor: pointer;
  display: block;
  height: 32px;
  line-height: 30px;
  padding: 0 32px 0 10px;
  position: relative;
}

// Container for the dropdown items, displayed as a panel on small screens.
.ms-Dropdown-items {
  .ms-u-normalize;
  .drop-shadow;
  background-color: @ms-color-white;
  display: none;
  list-style-type: none;
  position: absolute;
  width: 100%;
  max-width: 268px;
  z-index: (@ms-zIndex-Dropdown + @ms-zIndex-back);
  top: 0;
  right: 0;
  bottom: 0;
  overflow-y: scroll;

  &:before {
    content: '';
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid @ms-color-neutralLight;
  }
}

.ms-Dropdown-item {
  box-sizing: border-box;
  cursor: pointer;
  display: block;
  height: 40px;
  line-height: 38px;
  padding: 0 10px;
  position: relative;
  border: 1px solid transparent;
  white-space: nowrap;

  // Shorten the first and last items to maintain baseline alignment.
  &:first-child, 
  &:last-child {
    height: 39px;
  }

  &:hover {
    background-color: @ms-color-neutralLight;
    color: @ms-color-black;
    outline: 1px solid transparent;
  }

  &:active {
    background-color: @ms-color-neutralLight;
    border-color: @ms-color-themePrimary;
    color: @ms-color-black;
  }

  &.is-disabled {
    background: @ms-color-white;
    color: @ms-color-neutralTertiary;
    cursor: default;
    line-height: 40px;
  }
}

//== State: A selected dropdown item
// Note: .ms-Dropdown-item--selected is deprecated and will be removed in a future version.
// Use .is-selected instead.
.ms-Dropdown-item.is-selected,
.ms-Dropdown-item.ms-Dropdown-item--selected {
  background-color: @ms-color-themeLight;
  color: @ms-color-black;
  line-height: 40px;

  &:hover {
    background-color: @ms-color-themeLight;
  }
}


@media (min-width: @ms-screen-md-min) {
  // On larger screens, display as a traditional dropdown.
  .ms-Dropdown-items {
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    max-width: 100%;
  }

  .ms-Dropdown.ms-Dropdown--open .ms-Dropdown-items,
  .ms-Dropdown.is-open .ms-Dropdown-items {
    position: absolute;
  }
}

{'fraction_non_alphanumeric': 0.15326310380267213, 'fraction_numerical': 0.012846865364850977, 'mean_word_length': 2.6704384724186703, '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': '5092408', 'n_tokens_mistral': 2980, 'n_tokens_neox': 2803, 'n_words': 656}