<commit_before>@import 'node_modules/ember-frost-theme/scss/frost-theme';

$frost-input-text-height: 35px; // TODO: get this from theme?

@mixin triangle-up($color, $size) {
  border-bottom: $size solid $color;
  border-left: $size * .8 solid transparent;
  border-right: $size * .8 solid transparent;
  height: 0;
  width: 0;
}

.frost-select {
  border: solid 1px $frost-input-border;
  cursor: pointer;
  display: inline-block;
  height: $frost-input-text-height;
  min-width: 125px;
  outline: none;
  position: relative;
  width: 200px;

  .up-arrow {
    @include triangle-up($frost-select-container-background, 10px);
    display: inline-block;
    left: calc(50% - 15px);
    overflow: visible;
    pointer-events: none;
    position: absolute;
    right: 8px;
    top: -10px;
    z-index: 3;
  }

  .drop-down-container {
    background: $frost-select-container-background;
    border-radius: 3px;
    box-shadow: 0 0 5px 5px transparentize($frost-select-container-shadow, .5);
    left: -1px;
    margin-bottom: 1em;
    opacity: 0;
    position: absolute;
    top: calc(100% + 10px);
    transition: height .4s ease, opacity .2s ease;
    width: calc(100% + 2px);
    pointer-events: none;
  }

  input.trigger {
    background: none;
    border: 0;
    color: $frost-input;
    height: 100%;
    outline: none;
    overflow: hidden;
    padding: 0 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 75%;
  }

  ul {
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0;
    height: 0;
  }

  li {
    border-bottom: solid 1px $frost-color-lgrey-2;
    color: $frost-input;
    cursor: pointer;
    display: inline-block;
    height: 45px;
    line-height: 45px;
    padding: 0 15px;
    width: 100%;
    .frost-checkbox {
      input {
        visibility: hidden;
      }
      pointer-events: none;
      box-sizing: content-box;
      position: relative;
      top: -2px;
      svg {
        top: 13px;
        left: 2px;
      }
    }
  }

  .hover {
    background: transparentize($frost-selection, .92);
  }

  .selected {
    font-weight: bold;
  }

  .down-arrow {
    height: 20px;
    position: absolute;
    right: 10px;
    top: 5px;
    width: 20px;

    polygon {
      fill: $frost-select-indicator;
    }
  }
}

.frost-select.open {
  .drop-down-container {
    height: auto;
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
    ul {
      height: auto;
    }
  }
}

.frost-select.multi {
  li {
    padding: 0 10px;
  }

  .multi-status {
    border-top: solid 3px transparentize($frost-select-footer-divider, .88);
    border-bottom: solid 5px $frost-color-lgrey-2;
    padding: 10px;

    // TODO frost-button with tertiary style
    .clear {
      color: $frost-button-tertiary;
      float: right;
      text-decoration: none;
    }
  }
}

.frost-select.focus {
  border: solid 1px $frost-selection;

  .down-arrow {
    polygon {
      fill: $frost-selection;
    }
  }
}

.frost-select.error {
  border: solid 1px $frost-color-danger;
  .down-arrow {
    polygon {
      fill: $frost-select-indicator;
    }
  }
}

.frost-select.disabled {
  background-color: $frost-color-input-disabled-bg;
  border: 1px solid $frost-color-input-disabled-border;
  color: $frost-color-grey-6;
  cursor: default;

  input {
    color: inherit;
  }

  .down-arrow {
    polygon {
      fill: $frost-color-grey-6;
    }
  }
}

<commit_msg>Updated height of select options<commit_after>@import 'node_modules/ember-frost-theme/scss/frost-theme';

// TODO: get these from theme?
$frost-input-text-height: 35px;
$frost-input-select-option-row-height: 35px;

@mixin triangle-up($color, $size) {
  border-bottom: $size solid $color;
  border-left: $size * .8 solid transparent;
  border-right: $size * .8 solid transparent;
  height: 0;
  width: 0;
}

.frost-select {
  border: solid 1px $frost-input-border;
  cursor: pointer;
  display: inline-block;
  height: $frost-input-text-height;
  min-width: 125px;
  outline: none;
  position: relative;
  width: 200px;

  .up-arrow {
    @include triangle-up($frost-select-container-background, 10px);
    display: inline-block;
    left: calc(50% - 15px);
    overflow: visible;
    pointer-events: none;
    position: absolute;
    right: 8px;
    top: -10px;
    z-index: 3;
  }

  .drop-down-container {
    background: $frost-select-container-background;
    border-radius: 3px;
    box-shadow: 0 0 5px 5px transparentize($frost-select-container-shadow, .5);
    left: -1px;
    margin-bottom: 1em;
    opacity: 0;
    position: absolute;
    top: calc(100% + 10px);
    transition: height .4s ease, opacity .2s ease;
    width: calc(100% + 2px);
    pointer-events: none;
  }

  input.trigger {
    background: none;
    border: 0;
    color: $frost-input;
    height: 100%;
    outline: none;
    overflow: hidden;
    padding: 0 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 75%;
  }

  ul {
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0;
    height: 0;
  }

  li {
    border-bottom: solid 1px $frost-color-lgrey-2;
    color: $frost-input;
    cursor: pointer;
    display: inline-block;
    height: $frost-input-select-option-row-height;
    line-height: $frost-input-select-option-row-height;
    padding: 0 15px;
    width: 100%;
    .frost-checkbox {
      input {
        visibility: hidden;
      }
      pointer-events: none;
      box-sizing: content-box;
      position: relative;
      top: -2px;
      svg {
        top: 13px;
        left: 2px;
      }
    }
  }

  .hover {
    background: transparentize($frost-selection, .92);
  }

  .selected {
    font-weight: bold;
  }

  .down-arrow {
    height: 20px;
    position: absolute;
    right: 10px;
    top: 5px;
    width: 20px;

    polygon {
      fill: $frost-select-indicator;
    }
  }
}

.frost-select.open {
  .drop-down-container {
    height: auto;
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
    ul {
      height: auto;
    }
  }
}

.frost-select.multi {
  li {
    padding: 0 10px;
  }

  .multi-status {
    border-top: solid 3px transparentize($frost-select-footer-divider, .88);
    border-bottom: solid 5px $frost-color-lgrey-2;
    padding: 10px;

    // TODO frost-button with tertiary style
    .clear {
      color: $frost-button-tertiary;
      float: right;
      text-decoration: none;
    }
  }
}

.frost-select.focus {
  border: solid 1px $frost-selection;

  .down-arrow {
    polygon {
      fill: $frost-selection;
    }
  }
}

.frost-select.error {
  border: solid 1px $frost-color-danger;
  .down-arrow {
    polygon {
      fill: $frost-select-indicator;
    }
  }
}

.frost-select.disabled {
  background-color: $frost-color-input-disabled-bg;
  border: 1px solid $frost-color-input-disabled-border;
  color: $frost-color-grey-6;
  cursor: default;

  input {
    color: inherit;
  }

  .down-arrow {
    polygon {
      fill: $frost-color-grey-6;
    }
  }
}


{'fraction_non_alphanumeric': 0.13736501079913607, 'fraction_numerical': 0.027645788336933045, 'mean_word_length': 2.3458574181117533, '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': '2095517', 'n_tokens_mistral': 2744, 'n_tokens_neox': 2544, 'n_words': 554}