Created
June 12, 2017 12:36
-
-
Save obedparla/e5f804d9ed744b123cb87e739bcd5e9d to your computer and use it in GitHub Desktop.
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
| @mixin transitions($applyTo, $duration) { | |
| -webkit-transition: $applyTo $duration; | |
| -moz-transition: $applyTo $duration; | |
| -o-transition: $applyTo $duration; | |
| transition: $applyTo $duration; | |
| } | |
| @mixin transition-duration($duration) { | |
| -webkit-transition-duration: $duration; | |
| -moz-transition-duration: $duration; | |
| -o-transition-duration: $duration; | |
| transition-duration: $duration; | |
| } | |
| @mixin transition-property() { | |
| -webkit-transition-property: -webkit-transform; | |
| -moz-transition-property: -moz-transform; | |
| -o-transition-property: -o-transform; | |
| transition-property: transform; | |
| } | |
| @mixin absolute-vertical-align(){ | |
| position: absolute; | |
| top: 50%; | |
| transform: translateY(-50%); | |
| } | |
| @mixin css-triangle($direction, $size, $color) { | |
| width: 0; | |
| height: 0; | |
| @if $direction == 'up' { | |
| border-left: $size solid transparent; | |
| border-right: $size solid transparent; | |
| border-bottom: $size solid $color; | |
| } | |
| @else if $direction == 'down' { | |
| border-left: $size solid transparent; | |
| border-right: $size solid transparent; | |
| border-top: $size solid $color; | |
| } | |
| @else if $direction == 'right' { | |
| border-top: $size solid transparent; | |
| border-bottom: $size solid transparent; | |
| border-left: $size solid $color; | |
| } | |
| @else if $direction == 'left' { | |
| border-top: $size solid transparent; | |
| border-bottom: $size solid transparent; | |
| border-right: $size solid $color; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment