Sha256: f70f0947e91c4735cdc18c9b7504c62a2c6e635c963d378b2f3440575dfb3c2b

Contents?: true

Size: 1.27 KB

Versions: 5

Compression:

Stored size: 1.27 KB

Contents

@import colors.sass

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

=blueprint-form
  +blueprint-form-layout
  +blueprint-form-borders
  +blueprint-form-sizes

=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=text]
      margin: 0.5em 0
      background-color: #fff
      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

=blueprint-form-sizes(!input_width = 300px, !textarea_width = 390px, !textarea_height = 250px)
  input.text, input.title
    width= !input_width
  textarea
    width= !textarea_width
    height= !textarea_height

=blueprint-form-borders(!unfocused_border_color = #bbb, !focus_border_color = #666, !fieldset_border_color = #ccc)
  fieldset
    border= 1px "solid" !fieldset_border_color
  input.text, input.title,
  textarea,
  select
    border= 1px "solid" !unfocused_border_color
    &:focus
      border= 1px "solid" !focus_border_color

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
compass-edge-0.9.4 lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_form.sass
compass-edge-0.9.3 lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_form.sass
compass-edge-0.9.2 lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_form.sass
compass-edge-0.9.1 lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_form.sass
compass-edge-0.10.0.pre lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_form.sass