This repository has been archived by the owner on Sep 13, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 873
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Phil LaPier
committed
Jan 9, 2014
1 parent
dfbe574
commit 676efde
Showing
6 changed files
with
43 additions
and
76 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,8 @@ | ||
$placeholders: '-webkit-input-placeholder', | ||
'-moz-placeholder', | ||
'-ms-input-placeholder'; | ||
|
||
@mixin placeholder { | ||
$placeholders: ":-webkit-input" ":-moz" "-moz" "-ms-input"; | ||
@each $placeholder in $placeholders { | ||
@if $placeholder == "-webkit-input-placeholder" { | ||
&::#{$placeholder} { | ||
@content; | ||
} | ||
} | ||
@else if $placeholder == "-moz-placeholder" { | ||
// FF 18- | ||
&:#{$placeholder} { | ||
@content; | ||
} | ||
|
||
// FF 19+ | ||
&::#{$placeholder} { | ||
@content; | ||
} | ||
} | ||
@else { | ||
&:#{$placeholder} { | ||
@content; | ||
} | ||
&:#{$placeholder}-placeholder { | ||
@content; | ||
} | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
@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; | ||
} |