You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

88 lines
1.6 KiB

10 years ago
  1. /*
  2. * # Semantic - Transition
  3. * http://github.com/semantic-org/semantic-ui/
  4. *
  5. *
  6. * Copyright 2014 Contributors
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. */
  11. /*******************************
  12. Theme
  13. *******************************/
  14. @type : 'module';
  15. @element : 'transition';
  16. @import '../../semantic.config';
  17. /*******************************
  18. Transitions
  19. *******************************/
  20. /*
  21. Some transitions adapted from Animate CSS
  22. https://github.com/daneden/animate.css
  23. */
  24. .ui.transition {
  25. animation-iteration-count: 1;
  26. animation-duration: @transitionDefaultDuration;
  27. animation-timing-function: @transitionDefaultEasing;
  28. animation-fill-mode: @transitionDefaultFill;
  29. will-change: opacity, transform;
  30. }
  31. /*******************************
  32. States
  33. *******************************/
  34. .ui.animating.transition {
  35. display: block !important;
  36. backface-visibility: @backfaceVisibility;
  37. transform: @use3DAcceleration;
  38. }
  39. /* Loading */
  40. .ui.loading.transition {
  41. position: absolute;
  42. top: -999999px;
  43. left: -99999px;
  44. }
  45. /* Hidden */
  46. .ui.hidden.transition {
  47. display: none;
  48. }
  49. /* Visible */
  50. .ui.visible.transition {
  51. display: block !important;
  52. visibility: visible;
  53. backface-visibility: @backfaceVisibility;
  54. transform: @use3DAcceleration;
  55. }
  56. /* Disabled */
  57. .ui.disabled.transition {
  58. animation-play-state: paused;
  59. }
  60. /*******************************
  61. Variations
  62. *******************************/
  63. .ui.looping.transition {
  64. animation-iteration-count: infinite;
  65. }
  66. /*******************************
  67. Types
  68. *******************************/
  69. .loadUIOverrides();