igakim/mcs-ui

View on GitHub
src/assets/scss/_form.scss

Summary

Maintainability
Test Coverage
.mcs-form {
  &-input {
    padding: .75em 1.2em;
    font-size: 16px;
    border: 1px solid $borderColor;
    border-radius: 45px;
    box-shadow: 0px 5px 23px rgba(0, 0, 0, .08);
    &:focus {
      outline: none;
    }
  }

  &-search {
    height: 90px;
    display: -webkit-flex;
    display: -ms-flex;
    display: flex;
    box-sizing: border-box;
    &-input {
      border-top-left-radius: 45px;
      border-bottom-left-radius: 45px;
      padding: 1.8615em 2.2em;
      font-size: 18px;
      border: 1px solid $borderColor;
      box-sizing: border-box;
      width: 77.4%;
      height: 100%;
      display: inline-block;
      &:focus {
        outline: none;
      }
      &::placeholder {
        color: #cdd0dc
      }
      &-prefix {
        // padding: 1.8615em 1.2em 1.8615em .2em;
        font-size: 18px;
        height: 100%;
        border: 1px solid $borderColor;
        box-sizing: border-box;
        border-left: none;
        width: 70.4%;
        display: inline-block;
        &:focus {
          outline: none;
        }
        &::placeholder {
          color: #cdd0dc
        }
      }
    }
    &-prefix {
      display: inline-block;
      border-top-left-radius: 45px;
      border-bottom-left-radius: 45px;
      text-align: center;
      height: 100%;
      box-sizing: border-box;
      // padding: 1.8615em .2em 1.8615em 1.2em;
      font-size: 18px;
      line-height: 21px;
      box-shadow: none;
      border: 1px solid $borderColor;
      background-color: #fff;
      border-right: 0;
      width: 8%;
      &:focus {
        outline: none;
      }
    }
    &-submit {
      border-top-right-radius: 45px;
      border-bottom-right-radius: 45px;
      // padding: 1.8615em 1.2em;
      display: inline-block;
      font-size: 18px;
      border: 1px solid $borderColor;
      border-left: 0;
      width: 22.5%;
      height: 100%;
      text-transform: uppercase;
      background-color: #fff;
      &:focus {
        outline: none;
      }
    }
  }
}