-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
27 changed files
with
170 additions
and
351 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
//************************************************************************// | ||
// These mixins/functions will be deprecated in the next MAJOR version release | ||
//************************************************************************// |
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,16 +1,27 @@ | ||
//************************************************************************// | ||
// Default: Webkit, moz, spec | ||
// Example: @include prefixer(border-radius, $radii, $o: true); | ||
// Example: @include prefixer(border-radius, $radii, webkit ms spec); | ||
//************************************************************************// | ||
@mixin prefixer ($property, $value, | ||
$webkit: true, | ||
$moz: true, | ||
$ms: false, | ||
$o: false, | ||
$spec: true) { | ||
@if $webkit { -webkit-#{$property}: $value; } | ||
@if $moz { -moz-#{$property}: $value; } | ||
@if $ms { -ms-#{$property}: $value; } | ||
@if $o { -o-#{$property}: $value; } | ||
@if $spec { #{$property}: $value; } | ||
@mixin prefixer ($property, $value, $prefixes) { | ||
|
||
@each $prefix in $prefixes { | ||
|
||
@if $prefix == webkit { | ||
-webkit-#{$property}: $value; | ||
} | ||
@else if $prefix == moz { | ||
-moz-#{$property}: $value; | ||
} | ||
@else if $prefix == ms { | ||
-ms-#{$property}: $value; | ||
} | ||
@else if $prefix == o { | ||
-o-#{$property}: $value; | ||
} | ||
@else if $prefix == spec { | ||
#{$property}: $value; | ||
} | ||
@else { | ||
@warn "Unrecognized prefix: #{$prefix}"; | ||
} | ||
} | ||
} |
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,3 +1,3 @@ | ||
@mixin appearance ($value) { | ||
@include prefixer(appearance, $value, webkit, moz, ms, o); | ||
@include prefixer(appearance, $value, webkit moz ms o spec); | ||
} |
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,11 +1,3 @@ | ||
@mixin background-size ($length-1, | ||
$length-2: false, $length-3: false, | ||
$length-4: false, $length-5: false, | ||
$length-6: false, $length-7: false, | ||
$length-8: false, $length-9: false) | ||
{ | ||
$full: compact($length-1, $length-2, $length-3, $length-4, | ||
$length-5, $length-6, $length-7, $length-8, $length-9); | ||
|
||
@include prefixer(background-size, $full, webkit, moz, ms, o); | ||
@mixin background-size ($lengths...) { | ||
@include prefixer(background-size, $lengths, webkit moz ms o spec); | ||
} |
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,44 +1,22 @@ | ||
@mixin border-radius ($radii) { | ||
@include prefixer(border-radius, $radii, webkit, not moz); | ||
@warn "border-radius mixin is deprecated and will be removed in the next major version release."; | ||
} | ||
|
||
@mixin border-top-left-radius($radii) { | ||
@include prefixer(border-top-left-radius, $radii, webkit, not moz); | ||
@warn "border-top-left-radius mixin is deprecated and will be removed in the next major version release."; | ||
} | ||
|
||
@mixin border-top-right-radius($radii) { | ||
@include prefixer(border-top-right-radius, $radii, webkit, not moz); | ||
@warn "border-top-right-radius mixin is deprecated and will be removed in the next major version release."; | ||
} | ||
|
||
@mixin border-bottom-left-radius($radii) { | ||
@include prefixer(border-bottom-left-radius, $radii, webkit, not moz); | ||
@warn "border-bottom-left-radius mixin is deprecated and will be removed in the next major version release."; | ||
} | ||
|
||
@mixin border-bottom-right-radius($radii) { | ||
@include prefixer(border-bottom-right-radius, $radii, webkit, not moz); | ||
@warn "border-bottom-right-radius mixin is deprecated and will be removed in the next major version release."; | ||
} | ||
|
||
//************************************************************************// | ||
// Shorthand Border-radius mixins | ||
//************************************************************************// | ||
@mixin border-top-radius($radii) { | ||
@include border-top-left-radius($radii); | ||
@include border-top-right-radius($radii); | ||
} | ||
|
||
@mixin border-right-radius($radii) { | ||
@include border-top-right-radius($radii); | ||
@include border-bottom-right-radius($radii); | ||
@include prefixer(border-top-left-radius, $radii, spec); | ||
@include prefixer(border-top-right-radius, $radii, spec); | ||
} | ||
|
||
@mixin border-bottom-radius($radii) { | ||
@include border-bottom-left-radius($radii); | ||
@include border-bottom-right-radius($radii); | ||
@include prefixer(border-bottom-left-radius, $radii, spec); | ||
@include prefixer(border-bottom-right-radius, $radii, spec); | ||
} | ||
|
||
@mixin border-left-radius($radii) { | ||
@include border-top-left-radius($radii); | ||
@include border-bottom-left-radius($radii); | ||
@include prefixer(border-top-left-radius, $radii, spec); | ||
@include prefixer(border-bottom-left-radius, $radii, spec); | ||
} | ||
|
||
@mixin border-right-radius($radii) { | ||
@include prefixer(border-top-right-radius, $radii, spec); | ||
@include prefixer(border-bottom-right-radius, $radii, spec); | ||
} |
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,12 +1,3 @@ | ||
// Box-Shadow Mixin Requires Sass v3.1.1+ | ||
@mixin box-shadow ($shadow-1, | ||
$shadow-2: false, $shadow-3: false, | ||
$shadow-4: false, $shadow-5: false, | ||
$shadow-6: false, $shadow-7: false, | ||
$shadow-8: false, $shadow-9: false) | ||
{ | ||
$full: compact($shadow-1, $shadow-2, $shadow-3, $shadow-4, | ||
$shadow-5, $shadow-6, $shadow-7, $shadow-8, $shadow-9); | ||
|
||
@include prefixer(box-shadow, $full, webkit, not moz); | ||
@mixin box-shadow ($shadows...) { | ||
@include prefixer(box-shadow, $shadows, webkit spec); | ||
} |
Oops, something went wrong.