Sha256: a9db32eba437a0fb503a488d854909b35be85260c97f017d776f3b1d3dd5241d
Contents?: true
Size: 1.56 KB
Versions: 47
Compression:
Stored size: 1.56 KB
Contents
// https://github.com/thoughtbot/bourbon/blob/master/core/bourbon/utilities/_assign-inputs.scss /// Append pseudo-classes to a selector(s). /// /// @argument {list | string} $inputs /// A selector, or list of selectors, to apply the pseudo-class to. /// /// @argument {pseudo-class} $pseudo [null] /// The pseudo-class to be appended. /// /// @return {list} /// /// @access private @function assign-inputs($inputs, $pseudo: null) $list: () @each $input in $inputs $input: unquote($input) $input: if($pseudo, $input + ":" + $pseudo, $input) $list: append($list, $input, comma) @return $list ///////////////// // text-inputs //////////////// $text-inputs-list: 'input[type="color"]','input[type="date"]','input[type="datetime"]','input[type="datetime-local"]','input[type="email"]','input[type="month"]','input[type="number"]','input[type="password"]','input[type="search"]','input[type="tel"]','input[type="text"]','input[type="time"]','input[type="url"]','input[type="week"]','input:not([type])','textarea' !default $all-text-inputs: assign-inputs($text-inputs-list) $all-text-inputs-active: assign-inputs($text-inputs-list, active) $all-text-inputs-focus: assign-inputs($text-inputs-list, focus) $all-text-inputs-hover: assign-inputs($text-inputs-list, hover) $inputs-en-list: 'input[type="email"]', 'input[type="number"]', 'input[type="search"]', 'input[type="tel"]', 'input[type="url"]', 'input[type="color"]', 'input[type="date"]', 'input[type="datetime"]', 'input[type="datetime-local"]', 'input[type="time"]' $all-en-text-inputs: assign-inputs($inputs-en-list)
Version data entries
47 entries across 47 versions & 1 rubygems