2016-10-12 00:08:24 +00:00
|
|
|
/**
|
|
|
|
* Project animations
|
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
2016-10-25 11:55:43 +00:00
|
|
|
* Slide in animation for extended toolbar.
|
2016-10-12 00:08:24 +00:00
|
|
|
*/
|
|
|
|
@include keyframes(slideInX) {
|
|
|
|
0% { transform: translateX(-100%); }
|
|
|
|
100% { transform: translateX(0%); }
|
|
|
|
}
|
|
|
|
|
|
|
|
@include keyframes(slideOutX) {
|
|
|
|
0% { transform: translateX(0%); }
|
|
|
|
100% { transform: translateX(-100%); }
|
|
|
|
}
|
|
|
|
|
|
|
|
@include keyframes(slideInExtX) {
|
|
|
|
0% { transform: translateX(-500%); }
|
|
|
|
100% { transform: translateX(0%); }
|
|
|
|
}
|
|
|
|
|
|
|
|
@include keyframes(slideOutExtX) {
|
|
|
|
0% { transform: translateX(0%); }
|
|
|
|
100% { transform: translateX(-500%); }
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2016-10-25 11:55:43 +00:00
|
|
|
* Slide in / out animation for main toolbar.
|
2016-10-12 00:08:24 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
@include keyframes(slideInY) {
|
|
|
|
100% { transform: translateY(0%); }
|
|
|
|
}
|
|
|
|
|
|
|
|
@include keyframes(slideOutY) {
|
|
|
|
0% { transform: translateY(0%); }
|
|
|
|
100% { transform: translateY(-100%); }
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2016-10-25 11:55:43 +00:00
|
|
|
* Slide in animation for extended toolbar (inner) panel.
|
2016-10-12 00:08:24 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
// FIX: Can't use percentage because of breaking animation when width is changed
|
|
|
|
// (100% of 0 is also zero) Extracted this to config variable.
|
|
|
|
@include keyframes(slideInExt) {
|
|
|
|
from { left: -$sidebarWidth; }
|
|
|
|
to { left: 0; }
|
|
|
|
}
|
|
|
|
|
|
|
|
@include keyframes(slideOutExt) {
|
|
|
|
from { left: 0; }
|
|
|
|
to { left: -$sidebarWidth; }
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2016-10-25 11:55:43 +00:00
|
|
|
* Slide in animation for extended toolbar container
|
2016-10-12 00:08:24 +00:00
|
|
|
**/
|
|
|
|
|
|
|
|
@include keyframes(slideOutExtContainer) {
|
|
|
|
from { width: $sidebarWidth; }
|
|
|
|
to { width: 0; }
|
|
|
|
}
|
|
|
|
|
|
|
|
@include keyframes(slideInExtContainer) {
|
|
|
|
from { width: 0; }
|
|
|
|
to { width: $sidebarWidth; }
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2016-10-25 11:55:43 +00:00
|
|
|
* Fade in / out animations
|
|
|
|
**/
|
|
|
|
|
|
|
|
@include keyframes(fadeIn) {
|
|
|
|
from { opacity: 0; }
|
|
|
|
to { opacity: 1; }
|
|
|
|
}
|
|
|
|
|
|
|
|
@include keyframes(fadeOut) {
|
|
|
|
from { opacity: 1; }
|
|
|
|
to { opacity: 0; }
|
|
|
|
}
|