<commit_before>//
//--------------------------------------------------------------------------
// Forms - Luma
//--------------------------------------------------------------------------
//


.field,
fieldset {
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;

  &.is-centered  {
    align-items: center;

    > *:not(:first-child) {
      flex: 1 auto;
    }

    label,
    legend {
      margin-bottom: 0;
    }
  }

  &.row {
    flex-direction: row;
  }
}

input[type='email'],
input[type='number'],
input[type='password'],
input[type='search'],
input[type='tel'],
input[type='text'],
input[type='url'],
textarea,
select {
  appearance: none;
  background-color: transparent;
  border: 1px solid transparent-dark(.15);
  border-radius: .3rem;
  box-shadow: none;
  box-sizing: inherit;
  color: $color-text;
  font-family: inherit;
  font-size: 1.5rem;
  height: 3.8rem;
  padding: .6rem 1rem;
  width: 100%;

  &:focus {
    border-color: shade($color-light, 20%);
    outline: 0;
  }

  &:disabled {
    background-color: transparent-dark(.03);
    cursor: not-allowed;
  }
}

select {
  background: url(data:image/svg+xml;base64,PHN2ZyBmaWxsPSdibGFjaycgaGVpZ2h0PScyNCcgdmlld0JveD0nMCAwIDI0IDI0JyB3aWR0aD0nMjQnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTTcgMTBsNSA1IDUtNXonLz48cGF0aCBkPSdNMCAwaDI0djI0SDB6JyBmaWxsPSdub25lJy8+PC9zdmc+) no-repeat right .75rem center;
  max-width: 100%;
  width: auto;
}

textarea {
  min-height: 10rem;
  overflow: hidden;
  resize: none;
}

label,
legend {
  display: block;
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: .5rem;
}

// Checkboxes
// Basically with slight adjustments from materializecss.com
//-------------------------------------
.checkbox {
  &:checked,
  &:not(:checked) {
    left: -9999px;
    opacity: 0;
    position: absolute;
  }

  &:checked+label {
    &::before {
      backface-visibility: hidden;
      border-bottom: 2px solid $color-checkmark;
      border-left: 2px solid transparent;
      border-right: 2px solid $color-checkmark;
      border-top: 2px solid transparent;
      height: 10px;
      left: 1px;
      top: 5px;
      transform: rotateZ(37deg);
      transform-origin: 100% 100%;
      width: 6px;
    }

    &::after {
      background-color: $color-checkbox;
      border: 2px solid $color-checkbox;
      height: 15px;
      top: 5px;
      width: 15px;
      z-index: 0;
    }
  }

  &:not(:checked)+label {
    &::before {
      border: 3px solid transparent;
      height: 0;
      left: 6px;
      top: 10px;
      transform: rotateZ(37deg);
      transform-origin: 100% 100%;
      width: 0;
    }

    &::after {
      background-color: transparent;
      border: 1px solid shade($color-light, 20%);
      height: 15px;
      top: 5px;
      width: 15px;
      z-index: 0;
    }
  }

  +label {
    color: $color-text;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: normal;
    height: 25px;
    line-height: 1.7;
    margin-bottom: 0;
    padding-left: 35px;
    position: relative;
    user-select: none;

    &::before {
      border-radius: 1px;
      content: '';
      margin-top: 2px;
      position: absolute;
      transition: .2s;
      z-index: 0;
    }

    &::after {
      border-radius: 2px;
    }

    &::before,
    &::after {
      content: '';
      left: 0;
      position: absolute;
      transition: border .15s, background-color .25s, width .2s .1s, height .2s .1s, top .2s .1s, left .2s .1s;
      z-index: 1;
    }
  }

  &:disabled {
    +label {
      color: tint($color-text, 20%);
      cursor: not-allowed;
    }

    &:checked+label {
      &::before {
        background-color: transparent;
        border-bottom: 2px solid transparent-dark(.26);
        border-right: 2px solid transparent-dark(.26);
      }

      &::after {
        background-color: $color-light;
        border-color: $color-light;
      }
    }

    &:not(:checked)+label {
      &::before {
        background-color: transparent;
        border: 2px solid transparent;
      }

      &::after {
        background-color: $color-light;
        border-color: transparent;
      }
    }
  }
}

// Radios
// Basically with slight adjustments from materializecss.com
//-------------------------------------
.radio {
  &:not(:checked),
  &:checked {
    left: -9999px;
    opacity: 0;
    position: absolute;
  }

  +label {
    color: $color-text;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: normal;
    height: 25px;
    line-height: 1.7;
    padding-left: 35px;
    position: relative;
    transition: .28s ease;
    user-select: none;

    &::before,
    &::after {
      border-radius: 50%;
      content: '';
      height: 16px;
      left: 0;
      margin: 4px;
      position: absolute;
      top: 0;
      transition: .28s ease;
      width: 16px;
      z-index: 0;
    }
  }

  &:not(:checked)  + label {
    &::before,
    &::after {
      border: 2px solid shade($color-light, 20%);
    }

    &::after {
      transform: scale(0);
    }
  }

  &:checked + label {
    &::before {
      border: 2px solid transparent;
    }

    &::after {
      background-color: $color-radio;
      transform: scale(1.02);
    }
  }

  &:disabled {
    + label {
      color: tint($color-text, 20%);
      cursor: not-allowed;
    }

    &:not(:checked) + label::before,
    &:not(:checked) + label::after,
    &:checked + label::before {
      background-color: transparent;
      border-color: $color-light;
    }

    &:checked + label::after {
      background-color: $color-light;
      border-color: $color-light;
    }
  }
}


// Selects
//-------------------------------------

// Hide real select boxes which have seen styled.
select[data-ss-uuid] {
  display: none !important;
  pointer-events: none;
}

.style-select {
  display: block;
  position: relative;

  &,
  * {
    color: $color-text;
    cursor: pointer;
    font-size: 1.5rem;
    margin: 0;
    padding: 0;

    &:focus {
      outline: 0;
    }
  }

  &:focus {
    outline: 0;
  }

  .ss-selected-option {
    border: 1px solid transparent-dark(.15);
    border-radius: .3rem;
    padding: .6rem 1rem;

    &::after {
      color: transparent-dark(.26);
      content: '\F140';
      display: block;
      font: normal normal normal 20px/1 'Material Design Icons';
      position: absolute;
      right: 2%;
      top: 26%;
    }
  }

  .ss-dropdown {
    border: 1px solid transparent-dark(.15);
    border-top: 0;
    box-shadow: 0 1px 3px transparent-dark(.1);
    display: none;
    float: left;
    left: 0;
    max-height: 300px;
    overflow-y: auto;
    position: absolute;
    top: 98%;
    width: 100%;
    z-index: 100;

    .ss-option {
      background-color: $color-select-bg;
      padding: .6rem 1rem;
      width: 100%;

      &.highlighted {
        background-color: $color-selected-bg;
      }

      &.disabled {
        color: shade($color-light, 20%);
      }
    }
  }

  &.open {
    .ss-selected-option {
      border-bottom-color: transparent;
    }

    .ss-dropdown {
      display: block;
    }
  }
}

// File Inputs
//-------------------------------------

.file {
  user-select: none;
  align-items: stretch;
  display: flex;
  justify-content: flex-start;
  position: relative;

  input[type='file'] {
    height: .1px;
    left: 0;
    opacity: 0;
    outline: none;
    overflow: hidden;
    position: absolute;
    top: 0;
    width: .1px;
    z-index: -1;
  }

  .button {
    font-weight: normal;
  }

  &.has-name {
    .button {
      border-bottom-right-radius: 0;
      border-top-right-radius: 0;
    }
  }
}

.file__label {
  align-items: stretch;
  display: flex;
  cursor: pointer;
  justify-content: flex-start;
  overflow: hidden;
  position: relative;
}

.file__name {
  align-items: center;
  border: 1px solid $color-button-outline-border;
  border-left-width: 0;
  border-radius: 0 .3rem .3rem 0;
  box-shadow: none;
  color: $color-button-outline;
  cursor: pointer;
  display: block;
  font-size: 1.5rem;
  font-weight: normal;
  height: 3.5rem;
  letter-spacing: .05rem;
  max-width: 24rem;
  overflow: hidden;
  padding: 6px 15px 5px 10px;
  text-align: left;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}<commit_msg>Use different transition for checkboxes and make file selects the same height as other form elements<commit_after>//
//--------------------------------------------------------------------------
// Forms - Luma
//--------------------------------------------------------------------------
//


.field,
fieldset {
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;

  &.is-centered  {
    align-items: center;

    > *:not(:first-child) {
      flex: 1 auto;
    }

    label,
    legend {
      margin-bottom: 0;
    }
  }

  &.row {
    flex-direction: row;
  }
}

input[type='email'],
input[type='number'],
input[type='password'],
input[type='search'],
input[type='tel'],
input[type='text'],
input[type='url'],
textarea,
select {
  appearance: none;
  background-color: transparent;
  border: 1px solid transparent-dark(.15);
  border-radius: .3rem;
  box-shadow: none;
  box-sizing: inherit;
  color: $color-text;
  font-family: inherit;
  font-size: 1.5rem;
  height: 3.8rem;
  padding: .6rem 1rem;
  width: 100%;

  &:focus {
    border-color: shade($color-light, 20%);
    outline: 0;
  }

  &:disabled {
    background-color: transparent-dark(.03);
    cursor: not-allowed;
  }
}

select {
  background: url(data:image/svg+xml;base64,PHN2ZyBmaWxsPSdibGFjaycgaGVpZ2h0PScyNCcgdmlld0JveD0nMCAwIDI0IDI0JyB3aWR0aD0nMjQnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTTcgMTBsNSA1IDUtNXonLz48cGF0aCBkPSdNMCAwaDI0djI0SDB6JyBmaWxsPSdub25lJy8+PC9zdmc+) no-repeat right .75rem center;
  max-width: 100%;
  width: auto;
}

textarea {
  min-height: 10rem;
  overflow: hidden;
  resize: none;
}

label,
legend {
  display: block;
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: .5rem;
}

// Checkboxes
// Basically with slight adjustments from materializecss.com
//-------------------------------------
.checkbox {
  &:checked,
  &:not(:checked) {
    left: -9999px;
    opacity: 0;
    position: absolute;
  }

  &:checked+label {
    &::before {
      backface-visibility: hidden;
      border-bottom: 2px solid $color-checkmark;
      border-left: 2px solid transparent;
      border-right: 2px solid $color-checkmark;
      border-top: 2px solid transparent;
      height: 10px;
      left: 1px;
      top: 5px;
      transform: rotateZ(37deg);
      transform-origin: 100% 100%;
      width: 6px;
    }

    &::after {
      background-color: $color-checkbox;
      border: 2px solid $color-checkbox;
      height: 15px;
      top: 5px;
      width: 15px;
      z-index: 0;
    }
  }

  &:not(:checked)+label {
    &::before {
      border: 3px solid transparent;
      height: 0;
      left: 6px;
      top: 10px;
      transform: rotateZ(37deg);
      transform-origin: 100% 100%;
      width: 0;
    }

    &::after {
      background-color: transparent;
      border: 1px solid shade($color-light, 20%);
      height: 15px;
      top: 5px;
      width: 15px;
      z-index: 0;
    }
  }

  +label {
    color: $color-text;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: normal;
    height: 25px;
    line-height: 1.7;
    margin-bottom: 0;
    padding-left: 35px;
    position: relative;
    user-select: none;

    &::before {
      border-radius: 1px;
      content: '';
      margin-top: 2px;
      position: absolute;
      transition: .2s;
      z-index: 0;
    }

    &::after {
      border-radius: 2px;
    }

    &::before,
    &::after {
      content: '';
      left: 0;
      position: absolute;
      transition: background-color .25s cubic-bezier(.1, .71, .25, 1);
      z-index: 1;
    }
  }

  &:disabled {
    +label {
      color: tint($color-text, 20%);
      cursor: not-allowed;
    }

    &:checked+label {
      &::before {
        background-color: transparent;
        border-bottom: 2px solid transparent-dark(.26);
        border-right: 2px solid transparent-dark(.26);
      }

      &::after {
        background-color: $color-light;
        border-color: $color-light;
      }
    }

    &:not(:checked)+label {
      &::before {
        background-color: transparent;
        border: 2px solid transparent;
      }

      &::after {
        background-color: $color-light;
        border-color: transparent;
      }
    }
  }
}

// Radios
// Basically with slight adjustments from materializecss.com
//-------------------------------------
.radio {
  &:not(:checked),
  &:checked {
    left: -9999px;
    opacity: 0;
    position: absolute;
  }

  +label {
    color: $color-text;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: normal;
    height: 25px;
    line-height: 1.7;
    padding-left: 35px;
    position: relative;
    transition: .28s ease;
    user-select: none;

    &::before,
    &::after {
      border-radius: 50%;
      content: '';
      height: 16px;
      left: 0;
      margin: 4px;
      position: absolute;
      top: 0;
      transition: .28s ease;
      width: 16px;
      z-index: 0;
    }
  }

  &:not(:checked)  + label {
    &::before,
    &::after {
      border: 2px solid shade($color-light, 20%);
    }

    &::after {
      transform: scale(0);
    }
  }

  &:checked + label {
    &::before {
      border: 2px solid transparent;
    }

    &::after {
      background-color: $color-radio;
      transform: scale(1.02);
    }
  }

  &:disabled {
    + label {
      color: tint($color-text, 20%);
      cursor: not-allowed;
    }

    &:not(:checked) + label::before,
    &:not(:checked) + label::after,
    &:checked + label::before {
      background-color: transparent;
      border-color: $color-light;
    }

    &:checked + label::after {
      background-color: $color-light;
      border-color: $color-light;
    }
  }
}


// Selects
//-------------------------------------

// Hide real select boxes which have seen styled.
select[data-ss-uuid] {
  display: none !important;
  pointer-events: none;
}

.style-select {
  display: block;
  position: relative;

  &,
  * {
    color: $color-text;
    cursor: pointer;
    font-size: 1.5rem;
    margin: 0;
    padding: 0;

    &:focus {
      outline: 0;
    }
  }

  &:focus {
    outline: 0;
  }

  .ss-selected-option {
    border: 1px solid transparent-dark(.15);
    border-radius: .3rem;
    padding: .6rem 1rem;

    &::after {
      color: transparent-dark(.26);
      content: '\F140';
      display: block;
      font: normal normal normal 20px/1 'Material Design Icons';
      position: absolute;
      right: 2%;
      top: 26%;
    }
  }

  .ss-dropdown {
    border: 1px solid transparent-dark(.15);
    border-top: 0;
    box-shadow: 0 1px 3px transparent-dark(.1);
    display: none;
    float: left;
    left: 0;
    max-height: 300px;
    overflow-y: auto;
    position: absolute;
    top: 98%;
    width: 100%;
    z-index: 100;

    .ss-option {
      background-color: $color-select-bg;
      padding: .6rem 1rem;
      width: 100%;

      &.highlighted {
        background-color: $color-selected-bg;
      }

      &.disabled {
        color: shade($color-light, 20%);
      }
    }
  }

  &.open {
    .ss-selected-option {
      border-bottom-color: transparent;
    }

    .ss-dropdown {
      display: block;
    }
  }
}

// File Inputs
//-------------------------------------

.file {
  user-select: none;
  align-items: stretch;
  display: flex;
  justify-content: flex-start;
  position: relative;

  input[type='file'] {
    height: .1px;
    left: 0;
    opacity: 0;
    outline: none;
    overflow: hidden;
    position: absolute;
    top: 0;
    width: .1px;
    z-index: -1;
  }

  .button {
    font-weight: normal;
    height: 3.8rem;
  }

  &.has-name {
    .button {
      border-bottom-right-radius: 0;
      border-top-right-radius: 0;
    }
  }
}

.file__label {
  align-items: stretch;
  display: flex;
  cursor: pointer;
  justify-content: flex-start;
  margin-bottom: 0;
  overflow: hidden;
  position: relative;
}

.file__name {
  align-items: center;
  border: 1px solid $color-button-outline-border;
  border-left-width: 0;
  border-radius: 0 .3rem .3rem 0;
  box-shadow: none;
  color: $color-button-outline;
  cursor: pointer;
  display: block;
  font-size: 1.5rem;
  font-weight: normal;
  height: 3.8rem;
  letter-spacing: .05rem;
  max-width: 24rem;
  overflow: hidden;
  padding: 6px 15px 5px 10px;
  text-align: left;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}
{'fraction_non_alphanumeric': 0.17498493068113322, 'fraction_numerical': 0.032489451476793246, 'mean_word_length': 2.0083408884859475, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '4716303', 'n_tokens_mistral': 6340, 'n_tokens_neox': 5799, 'n_words': 1259}