Sha256: 25f8428e394252d1c66446a5b5632106d8aecd94358592465b33f36bc0ef5cfe

Contents?: true

Size: 1.6 KB

Versions: 29

Compression:

Stored size: 1.6 KB

Contents

@import "colors";

// Mixin for producing Blueprint "inline" forms. Should be used with the blueprint-form mixin.
@mixin blueprint-inline-form {
  line-height: 3;
  p {
    margin-bottom: 0;
  }
}

@mixin blueprint-form {
  @include blueprint-form-layout;
  @include blueprint-form-borders;
  @include blueprint-form-sizes;
}

@mixin blueprint-form-layout {
  label              { font-weight: bold; }
  fieldset           { padding: 1.4em; margin: 0 0 1.5em 0; }
  legend             { font-weight: bold; font-size: 1.2em; }
  input {
    &.text,
    &.title,
    &[type=email],
    &[type=text],
    &[type=password]   { margin: 0.5em 0; background-color: white; padding: 5px; }
    &.title            { font-size: 1.5em; }
  }
  textarea           { margin: 0.5em 0; padding: 5px; }
  select             { margin: 0.5em 0; }
}

@mixin blueprint-form-sizes
(
  $input-width: 300px,
  $textarea-width: 390px,
  $textarea-height: 250px
) {
  input {
    &.text,
    &.title,
    &[type=email],
    &[type=text],
    &[type=password] { width: $input-width; }
  }
  textarea { width: $textarea-width; height: $textarea-height; }
}

@mixin blueprint-form-borders
(
  $unfocused-border-color: #bbbbbb,
  $focus-border-color: #666666,
  $fieldset-border-color: #cccccc
) {
  fieldset {
    border: 1px solid $fieldset-border-color; }
  input.text, input.title, input[type=email], input[type=text], input[type=password],
  textarea {
    background-color:#fff;
    border: 1px solid $unfocused-border-color;
    &:focus {
      border-color: $focus-border-color;
    }
  }
  select { background-color:#fff; border-width:1px; border-style:solid; }
}

Version data entries

29 entries across 28 versions & 6 rubygems

Version Path
compass-blueprint-1.0.0 framework/blueprint/stylesheets/blueprint/_form.scss
compass-0.12.7 frameworks/blueprint/stylesheets/blueprint/_form.scss
sadui-0.0.4 vendor/bundle/ruby/2.1.0/gems/compass-0.12.3/frameworks/blueprint/stylesheets/blueprint/_form.scss
sadui-0.0.4 vendor/bundle/ruby/2.0.0/gems/compass-0.12.3/frameworks/blueprint/stylesheets/blueprint/_form.scss
compass-0.12.6 frameworks/blueprint/stylesheets/blueprint/_form.scss
compass-0.12.5 frameworks/blueprint/stylesheets/blueprint/_form.scss
compass-0.12.4 frameworks/blueprint/stylesheets/blueprint/_form.scss
compass-0.12.3 frameworks/blueprint/stylesheets/blueprint/_form.scss
compass-sourcemaps-0.12.4.sourcemaps.a4836f1 frameworks/blueprint/stylesheets/blueprint/_form.scss
compass-blueprint-0.0.1 framework/blueprint/stylesheets/blueprint/_form.scss
compass-0.12.2 frameworks/blueprint/stylesheets/blueprint/_form.scss
compass-0.12.2.rc.1 frameworks/blueprint/stylesheets/blueprint/_form.scss
compass-0.12.2.rc.0 frameworks/blueprint/stylesheets/blueprint/_form.scss
compass-0.13.alpha.0 frameworks/blueprint/stylesheets/blueprint/_form.scss
compass-0.12.1 frameworks/blueprint/stylesheets/blueprint/_form.scss
compass-0.12.0 frameworks/blueprint/stylesheets/blueprint/_form.scss
radiant-1.0.0 ruby-debug/ruby/1.8/gems/compass-0.11.7/frameworks/blueprint/stylesheets/blueprint/_form.scss
compass-0.12.rc.1 frameworks/blueprint/stylesheets/blueprint/_form.scss
compass-0.12.rc.0 frameworks/blueprint/stylesheets/blueprint/_form.scss
compass-0.11.7 frameworks/blueprint/stylesheets/blueprint/_form.scss