vendor/assets/scss/forms/_text.scss in foundation-rails-6.2.4.0 vs vendor/assets/scss/forms/_text.scss in foundation-rails-6.3.0.0

- old
+ new

@@ -20,10 +20,14 @@ /// Font size of text inputs. /// @type Number $input-font-size: rem-calc(16) !default; +/// Font weight of text inputs. +/// @type Keyword +$input-font-weight: $global-weight-normal !default; + /// Background color of text inputs. /// @type Color $input-background: $white !default; /// Background color of focused of text inputs. @@ -64,41 +68,43 @@ /// Radius for text inputs. /// @type Border $input-radius: $global-radius !default; -/// Border radius for buttons, defaulted to global-radius. +/// Border radius for form buttons, defaulted to global-radius. /// @type Number -$button-radius: $global-radius !default; +$form-button-radius: $global-radius !default; @mixin form-element { $height: ($input-font-size + ($form-spacing * 1.5) - rem-calc(1)); display: block; box-sizing: border-box; width: 100%; height: $height; + margin: 0 0 $form-spacing; padding: $form-spacing / 2; + border: $input-border; - margin: 0 0 $form-spacing; + border-radius: $input-radius; + background-color: $input-background; + box-shadow: $input-shadow; font-family: $input-font-family; font-size: $input-font-size; + font-weight: $input-font-weight; color: $input-color; - background-color: $input-background; - box-shadow: $input-shadow; - border-radius: $input-radius; @if has-value($input-transition) { transition: $input-transition; } // Focus state &:focus { + outline: none; border: $input-border-focus; background-color: $input-background-focus; - outline: none; box-shadow: $input-shadow-focus; @if has-value($input-transition) { transition: $input-transition; } @@ -108,12 +114,11 @@ @mixin foundation-form-text { // Text inputs #{text-inputs()}, textarea { @include form-element; - -webkit-appearance: none; - -moz-appearance: none; + appearance: none; } // Text areas textarea { max-width: 100%; @@ -139,28 +144,26 @@ } // Reset styles on button-like inputs [type='submit'], [type='button'] { - border-radius: $button-radius; - -webkit-appearance: none; - -moz-appearance: none; + appearance: none; + border-radius: $form-button-radius; } // Reset Normalize setting content-box to search elements - // scss-lint:disable QualifyingElement - input[type='search'] { + input[type='search'] { // sass-lint:disable-line no-qualifying-elements box-sizing: border-box; } // Number input styles [type='number'] { @if not $input-number-spinners { - -moz-appearance: textfield; + -moz-appearance: textfield; // sass-lint:disable-line no-vendor-prefix &::-webkit-inner-spin-button, &::-webkit-outer-spin-button { - -webkit-appearance: none; + -webkit-appearance: none; // sass-lint:disable-line no-vendor-prefix margin: 0; } } } }