2016-04-26 20:14:37 -04:00
|
|
|
// This file is based off animate.css 3.5.1, available here:
|
|
|
|
// https://github.com/daneden/animate.css/blob/3.5.1/animate.css
|
2016-10-24 15:23:40 -04:00
|
|
|
//
|
2016-04-26 20:14:37 -04:00
|
|
|
// animate.css - http://daneden.me/animate
|
|
|
|
// Version - 3.5.1
|
|
|
|
// Licensed under the MIT license - http://opensource.org/licenses/MIT
|
2016-10-24 15:23:40 -04:00
|
|
|
//
|
2016-04-26 20:14:37 -04:00
|
|
|
// Copyright (c) 2016 Daniel Eden
|
|
|
|
|
|
|
|
.animated {
|
2016-08-05 17:42:25 -04:00
|
|
|
@include webkit-prefix(animation-duration, 1s);
|
|
|
|
@include webkit-prefix(animation-fill-mode, both);
|
2016-04-26 20:14:37 -04:00
|
|
|
|
2016-08-05 17:42:25 -04:00
|
|
|
&.infinite {
|
|
|
|
@include webkit-prefix(animation-iteration-count, infinite);
|
|
|
|
}
|
2016-04-26 20:14:37 -04:00
|
|
|
|
2016-08-05 17:42:25 -04:00
|
|
|
&.once {
|
|
|
|
@include webkit-prefix(animation-iteration-count, 1);
|
|
|
|
}
|
2016-04-26 20:14:37 -04:00
|
|
|
|
2016-08-05 17:42:25 -04:00
|
|
|
&.hinge {
|
|
|
|
@include webkit-prefix(animation-duration, 2s);
|
2016-04-26 20:14:37 -04:00
|
|
|
}
|
|
|
|
|
2016-08-05 17:42:25 -04:00
|
|
|
&.flipOutX,
|
|
|
|
&.flipOutY,
|
|
|
|
&.bounceIn,
|
|
|
|
&.bounceOut {
|
|
|
|
@include webkit-prefix(animation-duration, .75s);
|
2016-04-26 20:14:37 -04:00
|
|
|
}
|
|
|
|
|
2016-08-05 17:42:25 -04:00
|
|
|
&.short {
|
|
|
|
@include webkit-prefix(animation-duration, 321ms);
|
|
|
|
@include webkit-prefix(animation-fill-mode, none);
|
2016-04-26 20:14:37 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-08-05 17:42:25 -04:00
|
|
|
@include keyframes(pulse) {
|
2016-10-24 16:22:06 -04:00
|
|
|
from,
|
|
|
|
to {
|
2016-08-05 17:42:25 -04:00
|
|
|
@include webkit-prefix(transform, scale3d(1, 1, 1));
|
2016-04-26 20:14:37 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
50% {
|
2016-08-05 17:42:25 -04:00
|
|
|
@include webkit-prefix(transform, scale3d(1.05, 1.05, 1.05));
|
2016-04-26 20:14:37 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.pulse {
|
2016-08-05 17:42:25 -04:00
|
|
|
@include webkit-prefix(animation-name, pulse);
|
2016-04-26 20:14:37 -04:00
|
|
|
}
|
2017-01-03 07:07:08 -05:00
|
|
|
|
|
|
|
/*
|
|
|
|
* General hover animations
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
// Sass multiple transitions mixin | https://gist.github.com/tobiasahlin/7a421fb9306a4f518aab
|
|
|
|
// Usage: @include transition(width, height 0.3s ease-in-out);
|
|
|
|
// Output: -webkit-transition(width 0.2s, height 0.3s ease-in-out);
|
|
|
|
// transition(width 0.2s, height 0.3s ease-in-out);
|
|
|
|
//
|
|
|
|
// Pass in any number of transitions
|
|
|
|
@mixin transition($transitions...) {
|
|
|
|
$unfoldedTransitions: ();
|
|
|
|
@each $transition in $transitions {
|
|
|
|
$unfoldedTransitions: append($unfoldedTransitions, unfoldTransition($transition), comma);
|
|
|
|
}
|
|
|
|
|
|
|
|
transition: $unfoldedTransitions;
|
|
|
|
}
|
|
|
|
|
2017-02-03 03:44:12 -05:00
|
|
|
@mixin disableAllAnimation {
|
|
|
|
/*CSS transitions*/
|
|
|
|
-o-transition-property: none !important;
|
|
|
|
-moz-transition-property: none !important;
|
|
|
|
-ms-transition-property: none !important;
|
|
|
|
-webkit-transition-property: none !important;
|
|
|
|
transition-property: none !important;
|
|
|
|
/*CSS transforms*/
|
|
|
|
-o-transform: none !important;
|
|
|
|
-moz-transform: none !important;
|
|
|
|
-ms-transform: none !important;
|
|
|
|
-webkit-transform: none !important;
|
|
|
|
transform: none !important;
|
|
|
|
/*CSS animations*/
|
|
|
|
-webkit-animation: none !important;
|
|
|
|
-moz-animation: none !important;
|
|
|
|
-o-animation: none !important;
|
|
|
|
-ms-animation: none !important;
|
|
|
|
animation: none !important;
|
|
|
|
}
|
|
|
|
|
2017-01-03 07:07:08 -05:00
|
|
|
@function unfoldTransition ($transition) {
|
|
|
|
// Default values
|
|
|
|
$property: all;
|
|
|
|
$duration: $general-hover-transition-duration;
|
|
|
|
$easing: $general-hover-transition-curve; // Browser default is ease, which is what we want
|
|
|
|
$delay: null; // Browser default is 0, which is what we want
|
|
|
|
$defaultProperties: ($property, $duration, $easing, $delay);
|
|
|
|
|
|
|
|
// Grab transition properties if they exist
|
|
|
|
$unfoldedTransition: ();
|
|
|
|
@for $i from 1 through length($defaultProperties) {
|
|
|
|
$p: null;
|
|
|
|
@if $i <= length($transition) {
|
2017-01-03 09:45:11 -05:00
|
|
|
$p: nth($transition, $i);
|
2017-01-03 07:07:08 -05:00
|
|
|
} @else {
|
2017-01-03 09:45:11 -05:00
|
|
|
$p: nth($defaultProperties, $i);
|
2017-01-03 07:07:08 -05:00
|
|
|
}
|
|
|
|
$unfoldedTransition: append($unfoldedTransition, $p);
|
|
|
|
}
|
|
|
|
|
|
|
|
@return $unfoldedTransition;
|
|
|
|
}
|
|
|
|
|
2017-01-03 08:51:19 -05:00
|
|
|
.btn,
|
2017-02-13 11:34:01 -05:00
|
|
|
.global-dropdown-toggle {
|
2017-01-03 07:07:08 -05:00
|
|
|
@include transition(background-color, border-color, color, box-shadow);
|
|
|
|
}
|
|
|
|
|
2017-01-03 08:51:19 -05:00
|
|
|
.dropdown-menu-toggle,
|
2017-01-04 18:51:09 -05:00
|
|
|
.avatar-circle,
|
|
|
|
.header-user-avatar {
|
2017-01-03 08:51:19 -05:00
|
|
|
@include transition(border-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
.note-action-button .link-highlight,
|
|
|
|
.toolbar-btn,
|
2017-02-10 20:20:57 -05:00
|
|
|
.dropdown-toggle-caret {
|
2017-01-03 08:51:19 -05:00
|
|
|
@include transition(color);
|
|
|
|
}
|
|
|
|
|
2017-01-03 07:07:08 -05:00
|
|
|
a {
|
|
|
|
@include transition(background-color, color, border);
|
|
|
|
}
|
|
|
|
|
2017-01-03 08:51:19 -05:00
|
|
|
.stage-nav-item {
|
|
|
|
@include transition(background-color, box-shadow);
|
|
|
|
}
|
2017-01-27 10:45:43 -05:00
|
|
|
|
2017-02-06 07:00:31 -05:00
|
|
|
.dropdown-menu a,
|
|
|
|
.dropdown-menu button,
|
|
|
|
.dropdown-menu-nav a {
|
2017-01-27 10:45:43 -05:00
|
|
|
transition: none;
|
|
|
|
}
|
2017-04-19 15:48:48 -04:00
|
|
|
|
|
|
|
@keyframes fadeIn {
|
|
|
|
0% {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
100% {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.fade-in {
|
|
|
|
animation: fadeIn $fade-in-duration 1;
|
|
|
|
}
|
2017-05-05 06:57:29 -04:00
|
|
|
|
|
|
|
@keyframes fadeInHalf {
|
|
|
|
0% {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
100% {
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.fade-in-half {
|
|
|
|
animation: fadeInHalf $fade-in-duration 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes fadeInFull {
|
|
|
|
0% {
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
|
|
|
|
100% {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.fade-in-full {
|
|
|
|
animation: fadeInFull $fade-in-duration 1;
|
|
|
|
}
|