Sha256: 798ce28a765804308fb6f59e46352a38e4d3a7872dc669da0462398a00876afe

Contents?: true

Size: 1.38 KB

Versions: 7

Compression:

Stored size: 1.38 KB

Contents

input,
textarea {
  display: inline-block;
  padding: 5px 0;
  width: 100%;
  border: 0;
  border-bottom: 2px solid $border;
  outline: none;
  font-family: $font-stack;
  background: transparent;

  &:focus {
    border-color: $primary;
    transition: border-color .25s;
  }
}

.form__input {
  position: relative;
  display: inline-block;
  width: 100%;
  margin-bottom: 35px;

  &::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: $primary;
    z-index: 5;
    transition: width .45s cubic-bezier(.694, .048, .335, 1);
    transition-delay: .1s;
  }

  &::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: $secondary;
    z-index: 4;
    transition: width .45s cubic-bezier(.694, .048, .335, 1);
  }

  &:hover::after,
  :focus::after,
  :active::after {
    width: 100%;
  }

  &:hover::before,
  :focus::before,
  :active::after {
    width: 100%;
  }

  &.error {
    &:hover::after,
    :focus::after,
    :active::after {
      width: 0%;
    }

    &:hover::before,
    :focus::before,
    :active::after {
      width: 0%;
    }
  }
}

.error {
  input {
    border-bottom-color: $error;
  }

  textarea {
    border-bottom-color: $error;
  }
}

.error-data {
  color: $error;
  font-size: 14px;
  position: absolute;
  left: 0;
  bottom: -21px;
}

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
jekyll-sleek-0.1.9 _sass/components/_form.scss
jekyll-sleek-0.1.8 _sass/components/_form.scss
jekyll-thenerdlife-0.1.3 _sass/components/_form.scss
jekyll-sleek-0.1.7 _sass/components/_form.scss
jekyll-sleek-0.1.6 _sass/components/_form.scss
jekyll-sleek-0.1.5 _sass/components/_form.scss
jekyll-sleek-0.1.3 _sass/components/_form.scss