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.

149 lines
2.3 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
  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. /*******************************
  38. Types
  39. *******************************/
  40. .ui.cube.shape .side {
  41. min-width: @cubeSize;
  42. height: @cubeSize;
  43. padding: @cubePadding;
  44. background-color: @cubeBackground;
  45. color: @cubeTextColor;
  46. box-shadow: @cubeBoxShadow;
  47. }
  48. .ui.cube.shape .side > .content {
  49. width: 100%;
  50. height: 100%;
  51. display: table;
  52. text-align: @cubeTextAlign;
  53. user-select: text;
  54. }
  55. .ui.cube.shape .side > .content > div {
  56. display: table-cell;
  57. vertical-align: middle;
  58. font-size: @cubeFontSize;
  59. }
  60. /*******************************
  61. Variations
  62. *******************************/
  63. .ui.text.shape.animating .sides {
  64. position: static;
  65. }
  66. .ui.text.shape .side {
  67. white-space: nowrap;
  68. }
  69. .ui.text.shape .side > * {
  70. white-space: normal;
  71. }
  72. /*******************************
  73. States
  74. *******************************/
  75. /*--------------
  76. Loading
  77. ---------------*/
  78. .ui.loading.shape {
  79. position: absolute;
  80. top: -9999px;
  81. left: -9999px;
  82. }
  83. /*--------------
  84. Animating
  85. ---------------*/
  86. .ui.shape .animating.side {
  87. position: absolute;
  88. top: 0px;
  89. left: 0px;
  90. z-index: @animatingZIndex;
  91. }
  92. .ui.shape .hidden.side {
  93. opacity: @hiddenSideOpacity;
  94. }
  95. /*--------------
  96. CSS
  97. ---------------*/
  98. .ui.shape.animating {
  99. transition: @transition;
  100. }
  101. .ui.shape.animating .sides {
  102. position: absolute;
  103. }
  104. .ui.shape.animating .sides {
  105. transition: @transition;
  106. }
  107. .ui.shape.animating .side {
  108. transition: @sideTransition;
  109. }
  110. /*--------------
  111. Active
  112. ---------------*/
  113. .ui.shape .active.side {
  114. display: block;
  115. }
  116. .loadUIOverrides();