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.4 KiB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  1. /*
  2. * # Semantic - Shape
  3. * http://github.com/semantic-org/semantic-ui/
  4. *
  5. *
  6. * Copyright 2014 Contributor
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. */
  11. /*******************************
  12. Theme
  13. *******************************/
  14. @type : 'module';
  15. @element : 'shape';
  16. @import '../../semantic.config';
  17. /*******************************
  18. Shape
  19. *******************************/
  20. .ui.shape {
  21. position: relative;
  22. display: @display;
  23. perspective: @perspective;
  24. }
  25. .ui.shape .sides {
  26. transform-style: preserve-3d;
  27. }
  28. .ui.shape .side {
  29. opacity: 1;
  30. width: 100%;
  31. margin: @sideMargin !important;
  32. backface-visibility: @backfaceVisibility;
  33. }
  34. .ui.shape .side {
  35. display: none;
  36. }
  37. .ui.shape .side > * {
  38. backface-visibility: visible !important;
  39. }
  40. /*******************************
  41. Types
  42. *******************************/
  43. .ui.cube.shape .side {
  44. min-width: @cubeSize;
  45. height: @cubeSize;
  46. padding: @cubePadding;
  47. background-color: @cubeBackground;
  48. color: @cubeTextColor;
  49. box-shadow: @cubeBoxShadow;
  50. }
  51. .ui.cube.shape .side > .content {
  52. width: 100%;
  53. height: 100%;
  54. display: table;
  55. text-align: @cubeTextAlign;
  56. user-select: text;
  57. }
  58. .ui.cube.shape .side > .content > div {
  59. display: table-cell;
  60. vertical-align: middle;
  61. font-size: @cubeFontSize;
  62. }
  63. /*******************************
  64. Variations
  65. *******************************/
  66. .ui.text.shape.animating .sides {
  67. position: static;
  68. }
  69. .ui.text.shape .side {
  70. white-space: nowrap;
  71. }
  72. .ui.text.shape .side > * {
  73. white-space: normal;
  74. }
  75. /*******************************
  76. States
  77. *******************************/
  78. /*--------------
  79. Loading
  80. ---------------*/
  81. .ui.loading.shape {
  82. position: absolute;
  83. top: -9999px;
  84. left: -9999px;
  85. }
  86. /*--------------
  87. Animating
  88. ---------------*/
  89. .ui.shape .animating.side {
  90. position: absolute;
  91. top: 0px;
  92. left: 0px;
  93. z-index: @animatingZIndex;
  94. }
  95. .ui.shape .hidden.side {
  96. opacity: @hiddenSideOpacity;
  97. }
  98. /*--------------
  99. CSS
  100. ---------------*/
  101. .ui.shape.animating {
  102. transition: @transition;
  103. }
  104. .ui.shape.animating .sides {
  105. position: absolute;
  106. }
  107. .ui.shape.animating .sides {
  108. transition: @transition;
  109. }
  110. .ui.shape.animating .side {
  111. transition: @sideTransition;
  112. }
  113. /*--------------
  114. Active
  115. ---------------*/
  116. .ui.shape .active.side {
  117. display: block;
  118. }
  119. .loadUIOverrides();