Sha256: 50d512755559d6ae6fea7ccc70b14ddd71b027f634c693793fc0cf5dc63cabbe

Contents?: true

Size: 1.36 KB

Versions: 7

Compression:

Stored size: 1.36 KB

Contents

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

// USE FORMALIZE TO EVEN FORMS ACROSS BROWSERS
// @import _formalize

// aditional form styles

fieldset
  +trailer
  +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
  +adjust-font-size-to($base-font-size, 1)
  +rhythm-borders(1px, 0.25, $base-font-size)
  border-width: 1px
  +trailer(0.5)
  width: ($kit-col-width * 2) + ($kit-gutter * 1)
  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
  width: ($kit-col-width * 2) + ($kit-gutter * 1)

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

7 entries across 5 versions & 1 rubygems

Version Path
survivalkit-0.3.4 templates/project/partials/04-defaults/forms/_form-defaults.sass
survivalkit-0.3.4 templates/drupal/partials/04-defaults/forms/_form-defaults.sass
survivalkit-0.3.3 templates/project/partials/04-defaults/forms/_form-defaults.sass
survivalkit-0.3.3 templates/drupal/partials/04-defaults/forms/_form-defaults.sass
survivalkit-0.3.2 templates/project/partials/04-defaults/forms/_form-defaults.sass
survivalkit-0.3.1 templates/project/partials/04-defaults/forms/_form-defaults.sass
survivalkit-0.3 templates/project/partials/04-defaults/forms/_form-defaults.sass