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.

136 lines
3.0 KiB

10 years ago
10 years ago
  1. /*
  2. * # Semantic - Shape
  3. * http://github.com/jlukic/semantic-ui/
  4. *
  5. *
  6. * Copyright 2014 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. -webkit-box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.3);
  58. box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.3);
  59. }
  60. .ui.cube.shape .side > .content {
  61. width: 100%;
  62. height: 100%;
  63. display: table;
  64. text-align: center;
  65. -webkit-user-select: text;
  66. -moz-user-select: text;
  67. -ms-user-select: text;
  68. user-select: text;
  69. }
  70. .ui.cube.shape .side > .content > div {
  71. display: table-cell;
  72. vertical-align: middle;
  73. font-size: 2em;
  74. }
  75. /*******************************
  76. Variations
  77. *******************************/
  78. .ui.text.shape.animating .sides {
  79. position: static;
  80. }
  81. .ui.text.shape .side {
  82. white-space: nowrap;
  83. }
  84. .ui.text.shape .side > * {
  85. white-space: normal;
  86. }
  87. /*******************************
  88. States
  89. *******************************/
  90. /*--------------
  91. Loading
  92. ---------------*/
  93. .ui.loading.shape {
  94. position: absolute;
  95. top: -9999px;
  96. left: -9999px;
  97. }
  98. /*--------------
  99. Animating
  100. ---------------*/
  101. .ui.shape .animating.side {
  102. position: absolute;
  103. top: 0px;
  104. left: 0px;
  105. z-index: 100;
  106. }
  107. .ui.shape .hidden.side {
  108. opacity: 0.4;
  109. }
  110. /*--------------
  111. CSS
  112. ---------------*/
  113. .ui.shape.animating {
  114. -webkit-transition: all 0.6s ease-in-out;
  115. -moz-transition: all 0.6s ease-in-out;
  116. transition: all 0.6s ease-in-out;
  117. }
  118. .ui.shape.animating .sides {
  119. position: absolute;
  120. }
  121. .ui.shape.animating .sides {
  122. -webkit-transition: all 0.6s ease-in-out;
  123. -moz-transition: all 0.6s ease-in-out;
  124. transition: all 0.6s ease-in-out;
  125. }
  126. .ui.shape.animating .side {
  127. -webkit-transition: opacity 0.6s ease-in-out;
  128. -moz-transition: opacity 0.6s ease-in-out;
  129. transition: opacity 0.6s ease-in-out;
  130. }
  131. /*--------------
  132. Active
  133. ---------------*/
  134. .ui.shape .active.side {
  135. display: block;
  136. }