Created
March 28, 2014 20:57
-
-
Save illarionvk/9842859 to your computer and use it in GitHub Desktop.
Sass 3.3 deprecation warning trigger
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//************************************************************************// | |
// 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; | |
// Hover Pseudo-class | |
//************************************************************************// | |
$all-text-inputs-hover: (); | |
@each $input-type in $unquoted-inputs-list { | |
$input-type-hover: $input-type + ":hover"; | |
$all-text-inputs-hover: append($all-text-inputs-hover, $input-type-hover, comma); | |
} | |
// Focus Pseudo-class | |
//************************************************************************// | |
$all-text-inputs-focus: (); | |
@each $input-type in $unquoted-inputs-list { | |
$input-type-focus: $input-type + ":focus"; | |
$all-text-inputs-focus: append($all-text-inputs-focus, $input-type-focus, comma); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment