component-animations.less 709 B

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // Component animations
  3. // --------------------------------------------------
  4. // Heads up!
  5. //
  6. // We don't use the `.opacity()` mixin here since it causes a bug with text
  7. // fields in IE7-8. Source: https://github.com/twbs/bootstrap/pull/3552.
  8. .fade {
  9. opacity: 0;
  10. .transition(opacity .15s linear);
  11. &.in {
  12. opacity: 1;
  13. }
  14. }
  15. .collapse {
  16. display: none;
  17. visibility: hidden;
  18. &.in { display: block; visibility: visible; }
  19. tr&.in { display: table-row; }
  20. tbody&.in { display: table-row-group; }
  21. }
  22. .collapsing {
  23. position: relative;
  24. height: 0;
  25. overflow: hidden;
  26. .transition-property(~"height, visibility");
  27. .transition-duration(.35s);
  28. .transition-timing-function(ease);
  29. }