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.

152 lines
2.6 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. -ms-perspective: 2000px;
  19. perspective: 2000px;
  20. -moz-box-sizing: border-box;
  21. -ms-box-sizing: border-box;
  22. box-sizing: border-box;
  23. }
  24. .ui.shape .sides {
  25. -webkit-transform-style: preserve-3d;
  26. -ms-transform-style: preserve-3d;
  27. transform-style: preserve-3d;
  28. }
  29. .ui.shape .side {
  30. opacity: 1;
  31. width: 100%;
  32. margin: 0em !important;
  33. -webkit-backface-visibility: hidden;
  34. -ms-backface-visibility: hidden;
  35. backface-visibility: hidden;
  36. -moz-box-sizing: border-box;
  37. -ms-box-sizing: border-box;
  38. box-sizing: border-box;
  39. }
  40. .ui.shape .side {
  41. display: none;
  42. }
  43. /*******************************
  44. Types
  45. *******************************/
  46. .ui.cube.shape .side {
  47. min-width: 15em;
  48. height: 15em;
  49. padding: 2em;
  50. background-color: #E6E6E6;
  51. color: rgba(0, 0, 0, 0.6);
  52. box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.3);
  53. }
  54. .ui.cube.shape .side > .content {
  55. width: 100%;
  56. height: 100%;
  57. display: table;
  58. text-align: center;
  59. -webkit-user-select: text;
  60. -moz-user-select: text;
  61. -ms-user-select: text;
  62. user-select: text;
  63. }
  64. .ui.cube.shape .side > .content > div {
  65. display: table-cell;
  66. vertical-align: middle;
  67. font-size: 2em;
  68. }
  69. /*******************************
  70. Variations
  71. *******************************/
  72. .ui.text.shape.animating .sides {
  73. position: static;
  74. }
  75. .ui.text.shape .side {
  76. white-space: nowrap;
  77. }
  78. .ui.text.shape .side > * {
  79. white-space: normal;
  80. }
  81. /*******************************
  82. States
  83. *******************************/
  84. /*--------------
  85. Loading
  86. ---------------*/
  87. .ui.loading.shape {
  88. position: absolute;
  89. top: -9999px;
  90. left: -9999px;
  91. }
  92. /*--------------
  93. Animating
  94. ---------------*/
  95. .ui.shape .animating.side {
  96. position: absolute;
  97. top: 0px;
  98. left: 0px;
  99. z-index: 100;
  100. }
  101. .ui.shape .hidden.side {
  102. opacity: 0.4;
  103. }
  104. /*--------------
  105. CSS
  106. ---------------*/
  107. .ui.shape.animating {
  108. -webkit-transition: all 0.6s ease-in-out;
  109. transition: all 0.6s ease-in-out;
  110. }
  111. .ui.shape.animating .sides {
  112. position: absolute;
  113. }
  114. .ui.shape.animating .sides {
  115. -webkit-transition: all 0.6s ease-in-out;
  116. transition: all 0.6s ease-in-out;
  117. }
  118. .ui.shape.animating .side {
  119. -webkit-transition: opacity 0.6s ease-in-out;
  120. transition: opacity 0.6s ease-in-out;
  121. }
  122. /*--------------
  123. Active
  124. ---------------*/
  125. .ui.shape .active.side {
  126. display: block;
  127. }