Sha256: 1e0dd327d07dfd278490afcdf51a52f0460a941e6f73c69ffe30b22aad4e66a1

Contents?: true

Size: 1.7 KB

Versions: 11

Compression:

Stored size: 1.7 KB

Contents

@import "blocky/imports";

$form-border-color: $base-border-color;
$form-border-color-hover: darken($base-border-color, 10);
$form-border-color-focus: $base-accent-color;
$form-border-radius: $base-border-radius;
$form-box-shadow: inset 0 1px 3px hsla(0, 0%, 0%, 0.06);
$form-box-shadow-focus: $form-box-shadow, 0 0 5px rgba(darken($form-border-color-focus, 5), 0.7);
$form-font-size: $base-font-size;
$form-font-family: $base-font-family;

fieldset {
  background: lighten($base-border-color, 10);
  border: 1px solid $base-border-color;
  margin: 0 0 ($base-line-height / 2) 0;
  padding: $base-line-height;
}

input,
label,
select {
  font-family: $form-font-family;
  font-size: $form-font-size;
}

label {
  cursor: pointer;
  font-weight: bold;
  margin-bottom: $base-line-height / 4;

  &.required:after {
    content: "*";
  }

  abbr {
    display: none;
  }
}

textarea,
#{$all-text-inputs} {
  @include box-sizing(border-box);
  @include transition(border-color);
  background-color: white;
  border-radius: $form-border-radius;
  border: 1px solid $form-border-color;
  box-shadow: $form-box-shadow;
  font-family: $form-font-family;
  font-size: $form-font-size;
  margin-bottom: $base-line-height / 2;
  padding: ($base-line-height / 3) ($base-line-height / 3);
  width: 100%;

  &:hover {
    border-color: $form-border-color-hover;
  }

  &:focus {
    border-color: $form-border-color-focus;
    box-shadow: $form-box-shadow-focus;
    outline: none;
  }
}

input[type="search"] {
  @include appearance(none);
}

input[type="checkbox"], input[type="radio"] {
  display: inline;
  margin-right: $base-line-height / 4;
}

input[type="file"] {
  width: 100%;
}

select {
  width: auto;
  margin-bottom: $base-line-height;
}

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
blocky-0.0.11 app/assets/stylesheets/blocky/shared/typography/forms.scss
blocky-0.0.10 app/assets/stylesheets/blocky/shared/typography/forms.scss
blocky-0.0.9 app/assets/stylesheets/blocky/shared/typography/forms.scss
blocky-0.0.8 app/assets/stylesheets/blocky/shared/typography/forms.scss
blocky-0.0.7 app/assets/stylesheets/blocky/shared/typography/forms.scss
blocky-0.0.6 app/assets/stylesheets/blocky/shared/typography/forms.scss
blocky-0.0.5 app/assets/stylesheets/blocky/shared/typography/forms.scss
blocky-0.0.4 app/assets/stylesheets/blocky/shared/typography/forms.scss
blocky-0.0.3 app/assets/stylesheets/blocky/shared/typography/forms.scss
blocky-0.0.2 app/assets/stylesheets/blocky/shared/typography/forms.scss
blocky-0.0.1 app/assets/stylesheets/blocky/shared/typography/forms.scss