MidnightRiders/MemberPortal

View on GitHub
app/assets/stylesheets/vendor/foundation/components/_forms.scss

Summary

Maintainability
Test Coverage

$bg-lightness > 70% or $bg == yellow should be written with a single space on each side of the operator: $bg-lightness > 70% or $bg == yellow
Open

    @if $bg-lightness > 70%  or $bg == yellow { color: $input-prefix-font-color; }

Use // comments everywhere
Open

      /* Styles for required inputs */

Rule declaration should be preceded by an empty line
Open

      &.radius {

Rule declaration should be followed by an empty line
Open

        }

Rule declaration should be followed by an empty line
Open

          button { @include radius(0); @include side-radius($default-float, $button-radius); }

Rule declaration should be followed by an empty line
Open

        }

Rule declaration should be followed by an empty line
Open

          button { @include radius(0); @include side-radius($opposite-direction, $button-round); }

0.75 should be written without a leading zero as .75
Open

$input-font-color: rgba(0,0,0,0.75) !default;

Property 'padding' should be placed on separate line from selector
Open

      .columns { padding: 0; }

Properties should be ordered color, style, width
Open

    style: $input-border-style;

Color yellow should be written in hexadecimal form as #ffff00
Open

  @if $bg-lightness < 70% or $bg == yellow { color: $input-error-message-font-color; }

Rule declaration should be followed by an empty line
Open

    .postfix.button { @include button-size(false, false); @include postfix(false, false, false, true); }

Expected item on line 423 to appear before line 420. Rule sets should be ordered as follows: @extends, @includes without @content, properties, @includes with @content, nested rule sets
Open

      @include form-element;

Selector should have depth of applicability no greater than 3, but was 4
Open

          input,

Selector should have depth of applicability no greater than 3, but was 4
Open

          input,

Avoid qualifying attribute selectors with an element.
Open

    input[type="file"],

Use // comments everywhere
Open

    /* HTML5 Number spinners settings */

0.15 should be written without a leading zero as .15
Open

$input-transition-fade-time: 0.15s !default;

Property 'padding-#<:script::tree::interpolation:0x000055d4f5deb320>' should be placed on separate line from selector</:script::tree::interpolation:0x000055d4f5deb320>
Open

  textarea.columns { padding-#{$default-float}: ($form-spacing / 2); }

Rule declaration should be followed by an empty line
Open

    .prefix.button.round { @include radius(0); @include side-radius($default-float, $button-round); }

Rule declaration should be followed by an empty line
Open

        }

Avoid qualifying attribute selectors with an element.
Open

    textarea[rows] {

Shorthand form for property margin should be written more concisely as 0 0 $form-spacing instead of 0 0 $form-spacing 0
Open

  margin: 0 0 $form-spacing 0;

Begin pseudo elements with double colons: ::
Open

    :-moz-placeholder { /* Firefox 18- */

Avoid qualifying attribute selectors with an element.
Open

    input[type="file"],

Avoid qualifying attribute selectors with an element.
Open

    input[type=number] {

Rule declaration should be followed by an empty line
Open

    }

Commas in function arguments should be followed by one space
Open

$input-font-color: rgba(0,0,0,0.75) !default;

0.1 should be written without a leading zero as .1
Open

$input-box-shadow: inset 0 1px 2px rgba(0,0,0,0.1) !default;

Each selector in a comma sequence should be on its own single line
Open

    span.prefix, label.prefix { @include prefix(); }

Each selector in a comma sequence should be on its own single line
Open

      .error small.error, .error span.error, span.error, small.error {

Use // comments everywhere
Open

    /* Attach elements to the beginning or end of an input */

Each selector in a comma sequence should be on its own single line
Open

    span.postfix, label.postfix { @include postfix(); }

Avoid vendor prefixes.
Open

        -webkit-transition: border-color $input-transition-fade-time $input-transition-fade-timing-function, background $input-transition-fade-time $input-transition-fade-timing-function;

Selector should have depth of applicability no greater than 3, but was 4
Open

          .prefix { @include radius(0); @include side-radius($default-float, $button-radius); }

Use // comments everywhere
Open

    /* Add height value for select elements to match text input height */

Use // comments everywhere
Open

    /* Normalize file input width */

Use // comments everywhere
Open

    /* We add basic fieldset styling */

Each selector in a comma sequence should be on its own single line
Open

      .error small.error, .error span.error, span.error, small.error {

Shorthand form for property margin should be written more concisely as 0 0 $form-spacing instead of 0 0 $form-spacing 0
Open

    margin: 0 0 $form-spacing 0;

Color yellow should be written in hexadecimal form as #ffff00
Open

    @if $bg-lightness > 70%  or $bg == yellow { color: $input-prefix-font-color; }

@else should be placed on same line as previous curly brace
Open

    @else { color: $input-prefix-font-color-alt; }

Use // comments everywhere
Open

    /* Using forms within rows, we need to set some defaults */

Use // comments everywhere
Open

    /* Label Styles */

Rule declaration should be followed by an empty line
Open

    .prefix.button.radius { @include radius(0); @include side-radius($default-float, $button-radius); }

Use // comments everywhere
Open

    /* We use this to get basic styling on all basic form elements */

Selector should have depth of applicability no greater than 3, but was 4
Open

          .postfix { @include radius(0); @include side-radius($opposite-direction, $button-round); }

Rule declaration should be preceded by an empty line
Open

      &[multiple] {

Avoid qualifying attribute selectors with an element.
Open

    input[type="checkbox"] + label,

Avoid qualifying attribute selectors with an element.
Open

    input[type="number"]::-webkit-inner-spin-button,

Rule declaration should be followed by an empty line
Open

      }

Commas in function arguments should be followed by one space
Open

$input-font-color: rgba(0,0,0,0.75) !default;

@else should be placed on same line as previous curly brace
Open

  @else if $alignment == inline {

Properties should be ordered color, style, width
Open

    style: $input-border-style;

Properties should be ordered -moz-transition, -ms-transition, -o-transition, -webkit-transition, transition
Open

        -webkit-transition: border-color $input-transition-fade-time $input-transition-fade-timing-function, background $input-transition-fade-time $input-transition-fade-timing-function;

Use // comments everywhere
Open

    /* Respect enforced amount of rows for textarea */

Avoid vendor prefixes.
Open

    :-moz-placeholder { /* Firefox 18- */

Use // comments everywhere
Open

    ::-moz-placeholder {  /* Firefox 19+ */

Avoid qualifying attribute selectors with an element.
Open

      input[type="checkbox"],

Commas in function arguments should be followed by one space
Open

$input-box-shadow: inset 0 1px 2px rgba(0,0,0,0.1) !default;

Rule declaration should be followed by an empty line
Open

      .columns { padding: 0; }

Use // comments everywhere
Open

    /* Standard Forms */

Rule declaration should be followed by an empty line
Open

    span.prefix, label.prefix { @include prefix(); }

Shorthand form for property margin should be written more concisely as 0 0 $form-spacing instead of 0 0 $form-spacing 0
Open

      margin: 0 0 $form-spacing 0;

Avoid qualifying attribute selectors with an element.
Open

    input[type="checkbox"] + label,

Rule declaration should be followed by an empty line
Open

    }

Commas in function arguments should be followed by one space
Open

$input-font-color: rgba(0,0,0,0.75) !default;

Color yellow should be written in hexadecimal form as #ffff00
Open

    @if $bg-lightness > 70% or $bg == yellow { color: $input-prefix-font-color; }

@else should be placed on same line as previous curly brace
Open

    @else { color: $input-prefix-font-color-alt; }

border: 0 is preferred over border: none
Open

    border: none;

border: 0 is preferred over border: none
Open

    border: none;

Prefer single quoted strings
Open

@include exports("form") {

Selector should have depth of applicability no greater than 3, but was 4
Open

          .postfix { @include radius(0); @include side-radius($opposite-direction, $button-radius); }

Avoid vendor prefixes.
Open

    ::-moz-placeholder {  /* Firefox 19+ */

Use // comments everywhere
Open

    /* Error Handling */

Each selector in a comma sequence should be on its own single line
Open

      span.error, small.error { display: none; }

Each selector in a comma sequence should be on its own single line
Open

    span.error, small.error {

Commas in function arguments should be followed by one space
Open

$input-box-shadow: inset 0 1px 2px rgba(0,0,0,0.1) !default;

Rule declaration should be followed by an empty line
Open

  }

Opening curly brace { should be preceded by one space
Open

@mixin form-select  {

Properties should be ordered -moz-appearance, -webkit-appearance, border-radius
Open

      -webkit-appearance: none;

Selector should have depth of applicability no greater than 3, but was 4
Open

          input,

Rule declaration should be followed by an empty line
Open

          button { @include radius(0); @include side-radius($opposite-direction, $button-radius); }

Avoid qualifying attribute selectors with an element.
Open

    input[type="submit"] {

Each selector in a comma sequence should be on its own single line
Open

      .error small.error, .error span.error, span.error, small.error {

Declaration should be terminated by a semicolon
Open

        margin-bottom: $form-spacing

Property 'padding' should be placed on separate line from selector
Open

    .columns { padding: 0 ($form-spacing / 2); }

Avoid qualifying attribute selectors with an element.
Open

  &[disabled],

Property 'margin' should be placed on separate line from selector
Open

    form { margin: 0 0 $form-spacing; }

Rule declaration should be followed by an empty line
Open

      &.right { @include form-label(right, false); }

Use // comments everywhere
Open

    /* Adjust padding, alignment and radius if pre/post element is a button */

Avoid vendor prefixes.
Open

        -ms-transition: border-color $input-transition-fade-time $input-transition-fade-timing-function, background $input-transition-fade-time $input-transition-fade-timing-function;

Properties should be ordered -moz-appearance, -webkit-appearance, border-radius
Open

      -webkit-appearance: none;

Property 'display' should be placed on separate line from selector
Open

      span.error, small.error { display: none; }

Rule declaration should be followed by an empty line
Open

    .postfix.button.radius { @include radius(0); @include side-radius($opposite-direction, $button-radius); }

Avoid vendor prefixes.
Open

        -moz-transition: border-color $input-transition-fade-time $input-transition-fade-timing-function, background $input-transition-fade-time $input-transition-fade-timing-function;

Selector should have depth of applicability no greater than 3, but was 4
Open

          input,

Rule declaration should be followed by an empty line
Open

          button { @include radius(0); @include side-radius($default-float, $button-round); }

Use // comments everywhere
Open

    /* Adjust margin for form elements below */

Avoid qualifying attribute selectors with an element.
Open

    input[type="file"],

Avoid qualifying attribute selectors with an element.
Open

      input[type="checkbox"],

@else should be placed on same line as previous curly brace
Open

  @else { color: $input-error-message-font-color-alt; }

Rule declaration should be followed by an empty line
Open

  &.radius { @include radius($global-radius); }

Properties should be ordered color, text-transform
Open

        text-transform: $form-label-small-transform;

Avoid vendor prefixes.
Open

        -o-transition: border-color $input-transition-fade-time $input-transition-fade-timing-function, background $input-transition-fade-time $input-transition-fade-timing-function;

Selector should have depth of applicability no greater than 3, but was 4
Open

          .prefix { @include radius(0); @include side-radius($default-float, $button-round); }

Colon after property should be followed by one space
Open

      width:100%;

Avoid qualifying attribute selectors with an element.
Open

    input[type="number"]::-webkit-inner-spin-button,

Commas in function arguments should be followed by one space
Open

$input-box-shadow: inset 0 1px 2px rgba(0,0,0,0.1) !default;

Use // comments everywhere
Open

    /* Separate prefix and postfix styles when on span or label so buttons keep their own */

Use // comments everywhere
Open

    /* Not allow resize out of parent */

Use // comments everywhere
Open

    :-moz-placeholder { /* Firefox 18- */

Avoid qualifying attribute selectors with an element.
Open

    input[type="file"] {

There are no issues that match your filters.

Category
Status