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
3.0 KiB

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