Sha256: c0defb1fd21e6774df3c433758e13738566872b888f331228f64011cd4c09db9

Contents?: true

Size: 1.63 KB

Versions: 13

Compression:

Stored size: 1.63 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; }
    &[type=checkbox],
    &.checkbox,
    &[type=radio],
    &.radio            { position: relative; top: 0.25em; }
  }
  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, select {
    border: 1px solid $unfocused_border_color;
    &:focus {
      border: 1px solid $focus_border_color;
    }
  }
}

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
frontsau-0.0.3 lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_form.scss
frontsau-0.0.2 lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_form.scss
frontsau-0.0.1 lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_form.scss
compass-0.10.6 frameworks/blueprint/stylesheets/blueprint/_form.scss
compass-0.10.6.pre.1 frameworks/blueprint/stylesheets/blueprint/_form.scss
compass-0.10.5 frameworks/blueprint/stylesheets/blueprint/_form.scss
compass-0.10.5.pre.1 frameworks/blueprint/stylesheets/blueprint/_form.scss
compass-0.10.4 frameworks/blueprint/stylesheets/blueprint/_form.scss
compass-0.10.4.pre.4 frameworks/blueprint/stylesheets/blueprint/_form.scss
compass-0.10.4.pre.3 frameworks/blueprint/stylesheets/blueprint/_form.scss
compass-0.10.4.pre.2 frameworks/blueprint/stylesheets/blueprint/_form.scss
compass-0.10.3 frameworks/blueprint/stylesheets/blueprint/_form.scss
compass-0.10.3.pre.1 frameworks/blueprint/stylesheets/blueprint/_form.scss