Sha256: d3b4b1f96ce1e142479c62e0fa069109a27cc617b19ede42483c8c63d1c56e9f

Contents?: true

Size: 1.48 KB

Versions: 14

Compression:

Stored size: 1.48 KB

Contents

// Forms -------------------------------------------------------------- */

@if $kit-form-defaults == true {
  fieldset {
    @include trailer;
    @include rhythm-borders(1px);
    border-color: $border-color;
    border-style: dotted;
  }

  legend {
    padding: 0 0.25em;
  }

  label {
    cursor: pointer;
  }

  label {
    font-weight: bold;
    margin-right: 0.5em;
  }

  %textinput {
    @extend %constrain-to-parent;
    @include adjust-font-size-to($base-font-size, 1);
    @include rhythm-borders(1px, 0.25, $base-font-size);
    border-width: 1px;
    @include trailer(0.5);
    margin-top: 0;
    border-color: $border-color;
    height: $base-line-height / $base-font-size * 1.5em;
  }

  textarea {
    @extend %textinput;
    height: $base-line-height / $base-font-size * 6.5;
  }

  input {
    &[type=text], &[type=password], &[type=email], &[type=url], &[type=tel],
    &[type=date], &[type=datetime], &[type=datetime-local], &[type=month], &[type=week], &[type=time],
    &[type=number], &[type=range], &[type=search], &[type=color] {
      @extend %textinput;
    }
    // reset webkit search styles
    &[type=search] {
      -webkit-appearance: none;
      &::-webkit-search-decoration {
        display: none;
      }
    }
  }

  textarea {
    // add your own styles, if you like
  }

  input {
    &[type="radio"], &[type="checkbox"] {
      margin-left: 0.25em;
      margin-right: 0.25em;
    }
  }

  textarea, input:not([type="radio"]) {
    @extend %constrain-to-parent;
  }

}

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
survivalkit-1.0.beta.15 templates/shared/partials/04-base/_form-defaults.scss
survivalkit-1.0.beta.14 templates/shared/partials/04-base/_form-defaults.scss
survivalkit-1.0.beta.13 templates/shared/partials/04-base/_form-defaults.scss
survivalkit-1.0.beta.12 templates/shared/partials/04-base/_form-defaults.scss
survivalkit-1.0.beta.11 templates/shared/partials/04-base/_form-defaults.scss
survivalkit-1.0.beta.10 templates/shared/partials/04-base/_form-defaults.scss
survivalkit-1.0.beta.9 templates/shared/partials/04-base/_form-defaults.scss
survivalkit-1.0.beta.8 templates/shared/partials/04-base/_form-defaults.scss
survivalkit-1.0.beta.7 templates/shared/partials/04-base/_form-defaults.scss
survivalkit-1.0.beta.6 templates/shared/partials/04-base/_form-defaults.scss
survivalkit-1.0.beta.5 templates/shared/partials/04-base/_form-defaults.scss
survivalkit-1.0.beta.4 templates/shared/partials/04-base/_form-defaults.scss
survivalkit-1.0.beta.3 templates/shared/partials/04-base/_form-defaults.scss
survivalkit-1.0.beta.2 templates/shared/partials/04-base/_form-defaults.scss