1
0

shape.css 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. /*!
  2. * # Fomantic-UI - Shape
  3. * http://github.com/fomantic/Fomantic-UI/
  4. *
  5. *
  6. * Released under the MIT license
  7. * http://opensource.org/licenses/MIT
  8. *
  9. */
  10. /*******************************
  11. Shape
  12. *******************************/
  13. .ui.shape {
  14. position: relative;
  15. vertical-align: top;
  16. display: inline-block;
  17. -webkit-perspective: 2000px;
  18. perspective: 2000px;
  19. -webkit-transition: left 0.6s ease-in-out, width 0.6s ease-in-out, height 0.6s ease-in-out, -webkit-transform 0.6s ease-in-out;
  20. transition: left 0.6s ease-in-out, width 0.6s ease-in-out, height 0.6s ease-in-out, -webkit-transform 0.6s ease-in-out;
  21. transition: transform 0.6s ease-in-out, left 0.6s ease-in-out, width 0.6s ease-in-out, height 0.6s ease-in-out;
  22. transition: transform 0.6s ease-in-out, left 0.6s ease-in-out, width 0.6s ease-in-out, height 0.6s ease-in-out, -webkit-transform 0.6s ease-in-out;
  23. }
  24. .ui.shape .sides {
  25. -webkit-transform-style: preserve-3d;
  26. transform-style: preserve-3d;
  27. }
  28. .ui.shape .side {
  29. display: none;
  30. opacity: 1;
  31. width: 100%;
  32. margin: 0 !important;
  33. -webkit-backface-visibility: hidden;
  34. backface-visibility: hidden;
  35. }
  36. .ui.shape .side * {
  37. -webkit-backface-visibility: visible !important;
  38. backface-visibility: visible !important;
  39. }
  40. /*******************************
  41. Types
  42. *******************************/
  43. .ui.cube.shape .side {
  44. min-width: 15em;
  45. height: 15em;
  46. padding: 2em;
  47. background-color: #E6E6E6;
  48. color: #AAAAAA;
  49. -webkit-box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
  50. box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
  51. }
  52. .ui.cube.shape .side > .content {
  53. width: 100%;
  54. height: 100%;
  55. display: table;
  56. text-align: center;
  57. -webkit-user-select: text;
  58. -moz-user-select: text;
  59. -ms-user-select: text;
  60. user-select: text;
  61. }
  62. .ui.cube.shape .side > .content > div {
  63. display: table-cell;
  64. vertical-align: middle;
  65. font-size: 2em;
  66. }
  67. /*******************************
  68. Variations
  69. *******************************/
  70. .ui.text.shape.animating .sides {
  71. position: static;
  72. }
  73. .ui.text.shape .side {
  74. white-space: nowrap;
  75. }
  76. .ui.text.shape .side > * {
  77. white-space: normal;
  78. }
  79. /*******************************
  80. States
  81. *******************************/
  82. /*--------------
  83. Loading
  84. ---------------*/
  85. .ui.loading.shape {
  86. position: absolute;
  87. top: -9999px;
  88. left: -9999px;
  89. }
  90. /*--------------
  91. Animating
  92. ---------------*/
  93. .ui.shape .animating.side {
  94. position: absolute;
  95. top: 0;
  96. left: 0;
  97. display: block;
  98. z-index: 100;
  99. }
  100. .ui.shape .hidden.side {
  101. opacity: 0.6;
  102. }
  103. /*--------------
  104. CSS
  105. ---------------*/
  106. .ui.shape.animating .sides {
  107. position: absolute;
  108. -webkit-transition: left 0.6s ease-in-out, width 0.6s ease-in-out, height 0.6s ease-in-out, -webkit-transform 0.6s ease-in-out;
  109. transition: left 0.6s ease-in-out, width 0.6s ease-in-out, height 0.6s ease-in-out, -webkit-transform 0.6s ease-in-out;
  110. transition: transform 0.6s ease-in-out, left 0.6s ease-in-out, width 0.6s ease-in-out, height 0.6s ease-in-out;
  111. transition: transform 0.6s ease-in-out, left 0.6s ease-in-out, width 0.6s ease-in-out, height 0.6s ease-in-out, -webkit-transform 0.6s ease-in-out;
  112. }
  113. .ui.shape.animating .side {
  114. -webkit-transition: opacity 0.6s ease-in-out;
  115. transition: opacity 0.6s ease-in-out;
  116. }
  117. .ui.shape .animating.side *,
  118. .ui.shape.animating .side * {
  119. -webkit-transition: none;
  120. transition: none;
  121. }
  122. /*--------------
  123. Active
  124. ---------------*/
  125. .ui.shape .active.side {
  126. display: block;
  127. }
  128. /*******************************
  129. Theme Overrides
  130. *******************************/
  131. /*******************************
  132. User Overrides
  133. *******************************/