<commit_before>//  Bootstrap overrides for forms

.form-group {
  margin-bottom: 1rem;
}

label {
  margin: 0;
  font-size: 0.875rem;
  font-family: $open-sans;
  font-weight: 600;
}

textarea {
  border: 1px solid $borderGrey;
  background-color: $lightGrey;
  border-radius: 4px;
  font-size: 0.875rem;
  font-family: $open-sans;
  width: 100%;
  padding: 6px 10px;
}

input {
  &[type='submit'] {
    border: 1px solid;
    @include btn-coloring-base($blue, $blueHover);
    color: $white;
    border-radius: 0.25rem;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    padding: 0.5rem 1.5rem;
    line-height: normal;
  }

  &[type='text'],
  &[type='password'],
  &[type='email'] {
    border: 1px solid $borderGrey;
    background-color: $lightGrey;
    border-radius: 4px;
    font-size: 0.875rem;
    font-family: $open-sans;
    height: 38px;
    width: 100%;
    padding: 6px 10px;
  }
}

.form-check {
  padding-left: 1.8rem;

  input {
    &[type='radio'] {
      opacity: 0;
      width: 0;

      &:checked ~ label {
        &:after {
          content: '';
          position: absolute;
          top: 6px;
          left: 4px;
          background-color: $grey;
          border-radius: 50%;
          width: 14px;
          height: 14px;
          opacity: 1;
          transition: all 0.1s linear;
        }
      }

      & ~ label {
        margin: 0;
        font-size: 0.875rem;
        font-family: $open-sans;
        font-weight: 600;

        &:before {
          content: '';
          position: absolute;
          left: 0;
          top: 2px;
          border: 1px solid $borderGrey;
          background-color: $lightGrey;
          border-radius: 50%;
          width: 22px;
          height: 22px;
        }

        &:after {
          content: '';
          position: absolute;
          opacity: 0;
          width: 0;
          height: 0;
          top: 14px;
          left: 12px;
        }
      }
    }

    &[type='checkbox'] {
      opacity: 0;
      position: absolute;

      &:checked ~ label {
        &:after {
          content: '';
          display: block;
          position: absolute;
          left: 0;
          top: 2px;
          background: url('../img/kth-style/icons/check-mark.svg');
          background-repeat: no-repeat;
          background-position: center;
          background-size: 17px 17px;
          width: 22px;
          height: 22px;
          opacity: 1;
          transition: opacity 0.25s linear;
        }
      }

      & ~ label {
        margin: 0;
        font-size: 0.875rem;
        font-family: $open-sans;
        font-weight: 600;

        &:before {
          content: '';
          position: absolute;
          left: 0;
          top: 2px;
          border: 1px solid $borderGrey;
          background-color: $lightGrey;
          width: 22px;
          height: 22px;
        }

        &:after {
          content: '';
          display: block;
          position: absolute;
          opacity: 0;
        }
      }
    }
  }
}

.form-check-inline {
  &.form-check {
    padding-left: 1.8rem;
  }
}

.form-select {
  .select-wrapper {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 0.25em;
    font-size: 0.875rem;
    font-family: $open-sans;

    &::after {
      content: '';
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      padding: 0 1em;
      pointer-events: none;
      background: $blue url('../img/kth-style/icons/arrow-white-down.svg') no-repeat center;
      background-size: 14px 7px;
      display: inline-block;
    }

    select {
      -webkit-appearance: none;
      -moz-appearance: none;
      appearance: none;
      outline: 0;
      box-shadow: none;
      cursor: pointer;
    }
  }
}
<commit_msg>Added some styling for forms.<commit_after>//  Bootstrap overrides for forms

.form-group {
  margin-bottom: 1rem;

  .form-control-label {
    @include t11;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 0.25em;
  }

  &.form-check {
    margin-top: 1rem;

    .form-control-label {
      @include t11;
    }
  }
}

label {
  margin: 0;
  font-size: 0.875rem;
  font-family: $open-sans;
  font-weight: 600;
}

textarea {
  border: 1px solid $borderGrey;
  background-color: $lightGrey;
  border-radius: 4px;
  font-size: 0.875rem;
  font-family: $open-sans;
  width: 100%;
  padding: 6px 10px;
}

input {
  &[type='submit'] {
    border: 1px solid;
    @include btn-coloring-base($blue, $blueHover);
    color: $white;
    border-radius: 0.25rem;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    padding: 0.5rem 1.5rem;
    line-height: normal;
  }

  &[type='text'],
  &[type='password'],
  &[type='email'] {
    border: 1px solid $borderGrey;
    background-color: $lightGrey;
    border-radius: 4px;
    font-size: 0.875rem;
    font-family: $open-sans;
    height: 38px;
    width: 100%;
    padding: 6px 10px;
  }

  &.form-control {
    font-size: 1rem;
    border: 1px solid #d4d4d4;
    background: #f6f6f6;
    color: $black;

    &[readonly] {
      border: none;
    }
  }
}

.form-check {
  padding-left: 1.8rem;

  input {
    &[type='radio'] {
      opacity: 0;
      width: 0;

      &:checked ~ label {
        &:after {
          content: '';
          position: absolute;
          top: 6px;
          left: 4px;
          background-color: $grey;
          border-radius: 50%;
          width: 14px;
          height: 14px;
          opacity: 1;
          transition: all 0.1s linear;
        }
      }

      & ~ label {
        margin: 0;
        font-size: 0.875rem;
        font-family: $open-sans;
        font-weight: 600;

        &:before {
          content: '';
          position: absolute;
          left: 0;
          top: 2px;
          border: 1px solid $borderGrey;
          background-color: $lightGrey;
          border-radius: 50%;
          width: 22px;
          height: 22px;
        }

        &:after {
          content: '';
          position: absolute;
          opacity: 0;
          width: 0;
          height: 0;
          top: 14px;
          left: 12px;
        }
      }
    }

    &[type='checkbox'] {
      opacity: 0;
      position: absolute;

      &:checked ~ label {
        &:after {
          content: '';
          display: block;
          position: absolute;
          left: 0;
          top: 2px;
          background: url('../img/kth-style/icons/check-mark.svg');
          background-repeat: no-repeat;
          background-position: center;
          background-size: 17px 17px;
          width: 22px;
          height: 22px;
          opacity: 1;
          transition: opacity 0.25s linear;
        }
      }

      & ~ label {
        margin: 0;
        font-size: 0.875rem;
        font-family: $open-sans;
        font-weight: 600;

        &:before {
          content: '';
          position: absolute;
          left: 0;
          top: 2px;
          border: 1px solid $borderGrey;
          background-color: $lightGrey;
          width: 22px;
          height: 22px;
        }

        &:after {
          content: '';
          display: block;
          position: absolute;
          opacity: 0;
        }
      }
    }
  }
}

.form-check-inline {
  &.form-check {
    padding-left: 1.8rem;
  }
}

.form-select {
  .select-wrapper {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 0.25em;
    font-size: 0.875rem;
    font-family: $open-sans;

    &::after {
      content: '';
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      padding: 0 1em;
      pointer-events: none;
      background: $blue url('../img/kth-style/icons/arrow-white-down.svg') no-repeat center;
      background-size: 14px 7px;
      display: inline-block;
    }

    select {
      -webkit-appearance: none;
      -moz-appearance: none;
      appearance: none;
      outline: 0;
      box-shadow: none;
      cursor: pointer;
    }
  }
}

{'fraction_non_alphanumeric': 0.13228754940711462, 'fraction_numerical': 0.034708498023715416, 'mean_word_length': 1.575381679389313, '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': '6794619', 'n_tokens_mistral': 2981, 'n_tokens_neox': 2701, 'n_words': 607}