Sha256: 7034e9cc900e877ba7471c61d73966b6eb83f6aaf12355013d31e1ca8c293664

Contents?: true

Size: 1.52 KB

Versions: 19

Compression:

Stored size: 1.52 KB

Contents

fieldset {
  background-color: transparent;
  border: 0;
  margin: 0;
  padding: 0;
}

legend {
  font-weight: $bold-font-weight;
  margin: 0;
  padding: 0;
}

label {
  display: block;
  font-weight: $bold-font-weight;
  margin: 0;
}

input,
select {
  display: block;
  font-family: $base-font-family;
  font-size: $base-font-size;
}

input,
select,
textarea {
  display: block;
  font-family: $base-font-family;
  font-size: 16px;
}

[type="color"],
[type="date"],
[type="datetime-local"],
[type="email"],
[type="month"],
[type="number"],
[type="password"],
[type="search"],
[type="tel"],
[type="text"],
[type="time"],
[type="url"],
[type="week"],
input:not([type]),
textarea {
  appearance: none;
  background-color: $white;
  border: $base-border;
  border-radius: $base-border-radius;
  padding: 0.5em;
  transition: border-color $base-duration $base-timing;
  width: 100%;

  &:hover {
    border-color: mix($black, $base-border-color, 20%);
  }

  &:focus {
    border-color: $action-color;
    outline: none;
  }

  &:disabled {
    background-color: mix($black, $white, 5%);
    cursor: not-allowed;

    &:hover {
      border: $base-border;
    }
  }

  &::placeholder {
    font-style: italic;
  }
}

textarea {
  resize: vertical;
}

[type="checkbox"],
[type="radio"] {
  display: inline;
  margin-right: $small-spacing / 2;
}

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

select {
  width: 100%;
}

[type="checkbox"],
[type="radio"],
[type="file"],
select {
  &:focus {
    outline: $focus-outline;
    outline-offset: $focus-outline-offset;
  }
}

Version data entries

19 entries across 19 versions & 3 rubygems

Version Path
administrate-0.17.0 app/assets/stylesheets/administrate/base/_forms.scss
administrate-0.16.0 app/assets/stylesheets/administrate/base/_forms.scss
administrate-0.15.0 app/assets/stylesheets/administrate/base/_forms.scss
administrate-0.14.0 app/assets/stylesheets/administrate/base/_forms.scss
viniBaxterDesk-22.0.0 app/assets/stylesheets/administrate/base/_forms.scss
viniBaxter-desk_front-0.4.0 lib/viniBaxter/sass/desk_front/administrate/base/_forms.scss
viniBaxter-desk_front-0.3.1 lib/viniBaxter/sass/desk_front/administrate/base/_forms.scss
viniBaxter-desk_front-0.3.0 lib/viniBaxter/sass/desk_front/administrate/base/_forms.scss
viniBaxterDesk-0.21.0 app/assets/stylesheets/administrate/base/_forms.scss
viniBaxterDesk-0.13.2 app/assets/stylesheets/administrate/base/_forms.scss
viniBaxter-desk_front-0.2.0 lib/viniBaxter/sass/desk_front/administrate/base/_forms.scss
viniBaxterDesk-0.13.1 app/assets/stylesheets/administrate/base/_forms.scss
administrate-0.13.0 app/assets/stylesheets/administrate/base/_forms.scss
administrate-0.12.0 app/assets/stylesheets/administrate/base/_forms.scss
administrate-0.11.0 app/assets/stylesheets/administrate/base/_forms.scss
administrate-0.10.0 app/assets/stylesheets/administrate/base/_forms.scss
administrate-0.9.0 app/assets/stylesheets/administrate/base/_forms.scss
administrate-0.8.1 app/assets/stylesheets/administrate/base/_forms.scss
administrate-0.8.0 app/assets/stylesheets/administrate/base/_forms.scss