zui
Version:
一个基于 Bootstrap 深度定制开源前端实践方案,帮助你快速构建现代跨屏应用。
57 lines (49 loc) • 1.32 kB
text/less
/// ========================================================================
/// Bootstrap: animations.less
/// https://github.com/twbs/bootstrap/blob/master/less/component-animations.less
///
/// ZUI: The file has been changed in ZUI. It will not keep update with the
/// Bootsrap version in the future.
/// http://openzui.com
/// ========================================================================
/// Bootrap: Copyright 2011-2016 Twitter, Inc. Licensed under MIT
/// ========================================================================
// Component animations
// Heads up!
//
// We don't use the `.opacity()` mixin here since it causes a bug with text
// fields in IE7-8. Source: https://github.com/twitter/bootstrap/pull/3552.
.no-animation,
.no-animation:before,
.no-animation:after,
.no-animation *,
.no-animation *:before,
.no-animation *:after {
transition: none;
}
.fade {
opacity: 0;
.transition(opacity .15s linear);
&.in {
opacity: 1;
}
}
.scale {
.scale(0.8);
.transition(all .15s ease);
&.in {
.scale(1);
}
}
.collapse {
display: none;
&.in { display: block; }
tr&.in { display: table-row; }
tbody&.in { display: table-row-group; }
}
.collapsing {
position: relative;
height: 0;
overflow: hidden;
.transition(height .35s ease);
}