-
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
Black Mirror
committed
Feb 28, 2018
1 parent
f45c1c3
commit 9773b02
Showing
8 changed files
with
101 additions
and
117 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
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,36 +1,20 @@ | ||
// TODO: refactorization | ||
|
||
@mixin transition($transition...) { | ||
-moz-transition: $transition; | ||
-o-transition: $transition; | ||
-webkit-transition: $transition; | ||
transition: $transition; | ||
// TODO: refactorize | ||
@mixin transition($transitions...) { | ||
@include prefixer(transition, $transitions); | ||
} | ||
|
||
@mixin transition-property($property...) { | ||
-moz-transition-property: $property; | ||
-o-transition-property: $property; | ||
-webkit-transition-property: $property; | ||
transition-property: $property; | ||
@mixin transition-property($tp...) { | ||
@include prefixer(transition-protperty, $tp); | ||
} | ||
|
||
@mixin transition-duration($duration...) { | ||
-moz-transition-property: $duration; | ||
-o-transition-property: $duration; | ||
-webkit-transition-property: $duration; | ||
transition-property: $duration; | ||
@mixin transition-duration($td...) { | ||
@include prefixer(transition-duration, $td); | ||
} | ||
|
||
@mixin transition-timing-function($timing...) { | ||
-moz-transition-timing-function: $timing; | ||
-o-transition-timing-function: $timing; | ||
-webkit-transition-timing-function: $timing; | ||
transition-timing-function: $timing; | ||
@mixin transition-timing-function($tf...) { | ||
@include prefixer(transition-timing-function, $tf); | ||
} | ||
|
||
@mixin transition-delay($delay...) { | ||
-moz-transition-delay: $delay; | ||
-o-transition-delay: $delay; | ||
-webkit-transition-delay: $delay; | ||
transition-delay: $delay; | ||
@mixin transition-delay($td...) { | ||
@include prefixer(transition-delay, $td); | ||
} |
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,52 @@ | ||
@charset "UTF-8"; | ||
|
||
/// A mixin for generating vendor prefixes on non-standardized properties. | ||
/// | ||
/// @param {String} $property | ||
/// Property to prefix | ||
/// | ||
/// @param {*} $value | ||
/// Value to use | ||
/// | ||
/// @param {List} $prefixes | ||
/// Prefixes to define | ||
/// | ||
/// @example scss - Usage | ||
/// .element { | ||
/// @include prefixer(border-radius, 10px, webkit ms spec); | ||
/// } | ||
/// | ||
/// @example css - CSS Output | ||
/// .element { | ||
/// -webkit-border-radius: 10px; | ||
/// -moz-border-radius: 10px; | ||
/// border-radius: 10px; | ||
/// } | ||
/// | ||
/// @require {variable} $prefix-for-webkit | ||
/// @require {variable} $prefix-for-mozilla | ||
/// @require {variable} $prefix-for-microsoft | ||
/// @require {variable} $prefix-for-opera | ||
/// @require {variable} $prefix-for-spec | ||
@mixin prefixer($property, $values..., $prefixes: webkit moz ms o spec) { | ||
@each $prefix in $prefixes { | ||
@if $prefix==webkit { | ||
-webkit-#{$property}: $values; | ||
} | ||
@else if $prefix==moz { | ||
-moz-#{$property}: $values; | ||
} | ||
@else if $prefix==ms { | ||
-ms-#{$property}: $values; | ||
} | ||
@else if $prefix==o { | ||
-o-#{$property}: $values; | ||
} | ||
@else if $prefix==spec { | ||
#{$property}: $values; | ||
} | ||
@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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
@import 'utils'; | ||
@import 'box'; | ||
@import 'background'; | ||
@import 'text'; | ||
|