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.

186 lines
3.3 KiB

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