Sha256: 60c0ae40a115101c9f81ad4f92948bd4f9467e1029a191cecfb7ffb0cd3294bd

Contents?: true

Size: 750 Bytes

Versions: 8

Compression:

Stored size: 750 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.
@function text-inputs($types: ()) {
  $return: ();

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

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

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

  @return $return;
}

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
locomotivecms_wagon-2.4.0.rc2 generators/foundation/public/stylesheets/foundation6/util/_selector.scss
locomotivecms_wagon-2.4.0.rc1 generators/foundation/public/stylesheets/foundation6/util/_selector.scss
locomotivecms_wagon-2.3.0 generators/foundation/public/stylesheets/foundation6/util/_selector.scss
locomotivecms_wagon-2.3.0.rc1 generators/foundation/public/stylesheets/foundation6/util/_selector.scss
locomotivecms_wagon-2.2.0 generators/foundation/public/stylesheets/foundation6/util/_selector.scss
locomotivecms_wagon-2.2.0.rc3 generators/foundation/public/stylesheets/foundation6/util/_selector.scss
locomotivecms_wagon-2.2.0.rc2 generators/foundation/public/stylesheets/foundation6/util/_selector.scss
locomotivecms_wagon-2.2.0.rc1 generators/foundation/public/stylesheets/foundation6/util/_selector.scss