Sha256: 0a6dfbf6e517621eb4261f59054d4c3776f1a655ccb18c46261671b55e71384b

Contents?: true

Size: 927 Bytes

Versions: 35

Compression:

Stored size: 927 Bytes

Contents

// Foundation for Sites by ZURB
// foundation.zurb.com
// Licensed under MIT Open Source

////
/// @group functions
////

/// Generates a selector with every text input type. You can also filter the list to only output a subset of those selectors.
///
/// @param {List|Keyword} $types [()] - A list of text input types to use. Leave blank to use all of them.
/// @param {Keyword} $modifier [''] - A modifier to be applied to each text input type (e.g. a class or a pseudo-class). Leave blank to ignore.
@function text-inputs($types: (), $modifier: '') {
  $return: ();

  $all-types:
    text
    password
    date
    datetime
    datetime-local
    month
    week
    email
    number
    search
    tel
    time
    url
    color;

  @if not has-value($types) {
    $types: $all-types;
  }

  @each $type in $types {
    $return: append($return, unquote('[type=\'#{$type}\']#{$modifier}'), comma);
  }

  @return $return;
}

Version data entries

35 entries across 35 versions & 7 rubygems

Version Path
bedrock_sass-0.2.2 assets/_vendor/foundation/scss/util/_selector.scss
foundation-rails-6.6.1.0 vendor/assets/scss/util/_selector.scss
foundation-rails-6.5.3.0 vendor/assets/scss/util/_selector.scss
bedrock_sass-0.2.1 assets/_vendor/foundation/scss/util/_selector.scss
foundation-rails-6.5.1.0 vendor/assets/scss/util/_selector.scss
locomotivecms_wagon-2.4.1 generators/foundation/public/stylesheets/foundation6/util/_selector.scss
bedrock_sass-0.2.0 assets/_vendor/foundation/scss/util/_selector.scss
locomotivecms_wagon-2.4.0 generators/foundation/public/stylesheets/foundation6/util/_selector.scss
foundation-rails-6.4.3.0 vendor/assets/scss/util/_selector.scss
bedrock_sass-0.1.9 assets/_vendor/foundation/scss/util/_selector.scss
bedrock_sass-0.1.8 assets/_vendor/foundation/scss/util/_selector.scss
bedrock_sass-0.1.7 assets/_vendor/foundation/scss/util/_selector.scss
bedrock_sass-0.1.6 assets/_vendor/foundation/scss/util/_selector.scss
bedrock_sass-0.1.5 assets/_vendor/foundation/scss/util/_selector.scss
bedrock_sass-0.1.4 assets/_vendor/foundation/scss/util/_selector.scss
bedrock_sass-0.1.3 assets/_vendor/foundation/scss/util/_selector.scss
bedrock_sass-0.1.2 assets/_vendor/foundation/scss/util/_selector.scss
foundation-rails-6.4.1.3 vendor/assets/scss/util/_selector.scss
aacinfo-theme-2.0.1 _sass/foundation-sites/scss/util/_selector.scss
jekyll-theme-foundation-0.3.6 _sass/scss/util/_selector.scss