Sha256: 8201e115d578945ad7722bc80bd9728a8ee90e0625b6fc7e4fb90807ff8551ae

Contents?: true

Size: 1.15 KB

Versions: 4

Compression:

Stored size: 1.15 KB

Contents

// - - - - - - - - - - - - - - - - - - - - - - - - -
// Base Input Styles
// ================
// These are the very basic input styles.
// - - - - - - - - - - - - - - - - - - - - - - - - -

@mixin base-input() {
  @extend %font-family-secondary;
  background: transparent;
  border-radius: $border-radius;
  border: 1px solid $color-smoke;
  color: $color-black;
  font-size: rem-calc(15px);
  font-weight: 400;
  height: 40px;
  line-height: 2em;
  padding: 4px 20px;
  transition: border 200ms ease-in-out;
  width: 100%;
  text-transform: none;
  appearance: none !important;
  -webkit-appearance: none !important;

  &:focus {
    border: 1px solid $color-primary;
    outline: 0;
  }

  &.error {
    border-color: $color-danger;
    border-width: 1px;
  }

  &.valid {
    border-color: $color-success;
    border-width: 1px;
  }

  &:disabled {
    cursor: not-allowed;
    opacity: .7;
    background: #d4d4d4;
    border: 1px solid darken(#d4d4d4, 10%);
    color: #444444;
  }

  &.input--light {
    color: #fff;
  }

  &.input--light:not(.error):not(.valid) {
    border: 1px solid rgba(#ddd, .2);

    &:focus {
      border: 1px solid $color-primary;
    }
  }
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pusher-chameleon-1.4.6 stylesheets/forms/_base.scss
pusher-chameleon-1.4.5 stylesheets/forms/_base.scss
pusher-chameleon-1.4.4 stylesheets/forms/_base.scss
pusher-chameleon-1.4.3 stylesheets/forms/_base.scss