bootstrap/less/component-animations.less

35 lines
709 B
Plaintext
Raw Normal View History

2012-06-29 12:46:45 +08:00
//
// Component animations
// --------------------------------------------------
// Heads up!
//
// We don't use the `.opacity()` mixin here since it causes a bug with text
2014-02-26 02:17:44 +08:00
// fields in IE7-8. Source: https://github.com/twbs/bootstrap/pull/3552.
.fade {
2012-05-21 08:56:57 +08:00
opacity: 0;
2012-04-17 07:34:08 +08:00
.transition(opacity .15s linear);
&.in {
2012-05-21 08:56:57 +08:00
opacity: 1;
}
}
.collapse {
display: none;
visibility: hidden;
&.in { display: block; visibility: visible; }
tr&.in { display: table-row; }
tbody&.in { display: table-row-group; }
}
.collapsing {
position: relative;
height: 0;
overflow: hidden;
.transition-property(~"height, visibility");
.transition-duration(.35s);
.transition-timing-function(ease);
2012-05-21 08:56:57 +08:00
}