Sha256: 55f7a6e28712bf38f09ed6cbbf8a3290b84a567ce81190e9b7172020d7af4a47
Contents?: true
Size: 1.32 KB
Versions: 26
Compression:
Stored size: 1.32 KB
Contents
//************************************************************************// // Generate a variable ($all-text-inputs) with a list of all html5 // input types that have a text-based input, excluding textarea. // http://diveintohtml5.org/forms.html //************************************************************************// $inputs-list: 'input[type="email"]', 'input[type="number"]', 'input[type="password"]', 'input[type="search"]', 'input[type="tel"]', 'input[type="text"]', 'input[type="url"]', // Webkit & Gecko may change the display of these in the future 'input[type="color"]', 'input[type="date"]', 'input[type="datetime"]', 'input[type="datetime-local"]', 'input[type="month"]', 'input[type="time"]', 'input[type="week"]'; $unquoted-inputs-list: (); @each $input-type in $inputs-list { $unquoted-inputs-list: append($unquoted-inputs-list, unquote($input-type), comma); } $all-text-inputs: $unquoted-inputs-list; // You must use interpolation on the variable: // #{$all-text-inputs} //************************************************************************// // #{$all-text-inputs}, textarea { // border: 1px solid red; // }
Version data entries
26 entries across 26 versions & 3 rubygems