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.

287 lines
5.8 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
  1. /*
  2. * # Semantic - Reveal
  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 : 'element';
  15. @element : 'reveal';
  16. @import '../../semantic.config';
  17. /*******************************
  18. Reveal
  19. *******************************/
  20. .ui.reveal {
  21. display: inline-block;
  22. position: relative !important;
  23. z-index: @bottomZIndex !important;
  24. font-size: 0em !important;
  25. }
  26. .ui.reveal > .visible.content {
  27. position: absolute !important;
  28. top: 0em !important;
  29. left: 0em !important;
  30. z-index: @topZIndex !important;
  31. transition: all @transitionDuration @transitionEasing @transitionDelay;
  32. }
  33. .ui.reveal > .hidden.content {
  34. position: relative !important;
  35. z-index: @bottomZIndex !important;
  36. }
  37. /*******************************
  38. Types
  39. *******************************/
  40. /*--------------
  41. Slide
  42. ---------------*/
  43. .ui.slide.reveal {
  44. position: relative !important;
  45. display: block;
  46. overflow: hidden !important;
  47. white-space: nowrap;
  48. }
  49. .ui.slide.reveal > .content {
  50. display: block;
  51. float: left;
  52. margin: 0em;
  53. transition:
  54. top @transitionDuration @transitionEasing @transitionDelay,
  55. left @transitionDuration @transitionEasing @transitionDelay,
  56. right @transitionDuration @transitionEasing @transitionDelay,
  57. bottom @transitionDuration @transitionEasing @transitionDelay
  58. ;
  59. }
  60. .ui.slide.reveal > .visible.content {
  61. position: relative !important;
  62. }
  63. .ui.slide.reveal > .hidden.content {
  64. position: absolute !important;
  65. left: 100% !important;
  66. width: 100% !important;
  67. }
  68. .ui.slide.reveal:hover > .visible.content {
  69. left: -100% !important;
  70. }
  71. .ui.slide.reveal:hover > .hidden.content {
  72. left: 0% !important;
  73. }
  74. .ui.right.slide.reveal > .visible.content {
  75. left: 0%;
  76. }
  77. .ui.right.slide.reveal > .hidden.content {
  78. left: auto !important;
  79. right: 100% !important;
  80. }
  81. .ui.right.slide.reveal:hover > .visible.content {
  82. left: 100% !important;
  83. right: auto !important;
  84. }
  85. .ui.right.slide.reveal:hover > .hidden.content {
  86. left: auto !important;
  87. right: 0% !important;
  88. }
  89. .ui.up.slide.reveal > .visible.content {
  90. top: 0% !important;
  91. left: 0% !important;
  92. right: auto !important;
  93. bottom: auto !important;
  94. }
  95. .ui.up.slide.reveal > .hidden.content {
  96. top: 100% !important;
  97. left: 0% !important;
  98. right: auto !important;
  99. bottom: auto !important;
  100. }
  101. .ui.slide.up.reveal:hover > .visible.content {
  102. top: -100% !important;
  103. left: 0% !important;
  104. }
  105. .ui.slide.up.reveal:hover > .hidden.content {
  106. top: 0% !important;
  107. left: 0% !important;
  108. }
  109. .ui.down.slide.reveal > .visible.content {
  110. top: auto !important;
  111. right: auto !important;
  112. bottom: auto !important;
  113. bottom: 0% !important;
  114. }
  115. .ui.down.slide.reveal > .hidden.content {
  116. top: auto !important;
  117. right: auto !important;
  118. bottom: 100% !important;
  119. left: 0% !important;
  120. }
  121. .ui.slide.down.reveal:hover > .visible.content {
  122. left: 0% !important;
  123. bottom: -100% !important;
  124. }
  125. .ui.slide.down.reveal:hover > .hidden.content {
  126. left: 0% !important;
  127. bottom: 0% !important;
  128. }
  129. /*--------------
  130. Fade
  131. ---------------*/
  132. .ui.fade.reveal > .visible.content {
  133. opacity: 1;
  134. }
  135. .ui.fade.reveal:hover > .visible.content {
  136. opacity: 0;
  137. }
  138. /*--------------
  139. Move
  140. ---------------*/
  141. .ui.move.reveal > .visible.content,
  142. .ui.move.left.reveal > .visible.content {
  143. left: auto !important;
  144. top: auto !important;
  145. bottom: auto !important;
  146. right: 0% !important;
  147. }
  148. .ui.move.reveal:hover > .visible.content,
  149. .ui.move.left.reveal:hover > .visible.content {
  150. right: 100% !important;
  151. }
  152. .ui.move.right.reveal > .visible.content {
  153. right: auto !important;
  154. top: auto !important;
  155. bottom: auto !important;
  156. left: 0% !important;
  157. }
  158. .ui.move.right.reveal:hover > .visible.content {
  159. left: 100% !important;
  160. }
  161. .ui.move.up.reveal > .visible.content {
  162. right: auto !important;
  163. left: auto !important;
  164. top: auto !important;
  165. bottom: 0% !important;
  166. }
  167. .ui.move.up.reveal:hover > .visible.content {
  168. bottom: 100% !important;
  169. }
  170. .ui.move.down.reveal > .visible.content {
  171. right: auto !important;
  172. left: auto !important;
  173. bottom: auto !important;
  174. top: 0% !important;
  175. bottom: auto !important;
  176. }
  177. .ui.move.down.reveal:hover > .visible.content {
  178. top: 100% !important;
  179. }
  180. /*--------------
  181. Rotate
  182. ---------------*/
  183. .ui.rotate.reveal > .visible.content {
  184. transition-duration: @transitionDuration;
  185. transform: rotate(0deg);
  186. }
  187. .ui.rotate.reveal > .visible.content,
  188. .ui.rotate.right.reveal > .visible.content {
  189. transform-origin: bottom right;
  190. }
  191. .ui.rotate.reveal:hover > .visible.content,
  192. .ui.rotate.right.reveal:hover > .visible.content {
  193. transform: rotate(@rotateDegrees);
  194. }
  195. .ui.rotate.left.reveal > .visible.content {
  196. transform-origin: bottom left;
  197. }
  198. .ui.rotate.left.reveal:hover > .visible.content {
  199. transform: rotate(-@rotateDegrees);
  200. }
  201. /*******************************
  202. States
  203. *******************************/
  204. .ui.disabled.reveal {
  205. opacity: 1 !important;
  206. }
  207. .ui.disabled.reveal > .content {
  208. transition: none !important;
  209. }
  210. .ui.disabled.reveal:hover > .visible.content {
  211. position: static !important;
  212. display: block !important;
  213. opacity: 1 !important;
  214. top: 0 !important;
  215. left: 0 !important;
  216. right: auto !important;
  217. bottom: auto !important;
  218. transform: none !important;
  219. }
  220. .ui.disabled.reveal:hover > .hidden.content {
  221. display: none !important;
  222. }
  223. /*******************************
  224. Variations
  225. *******************************/
  226. /*--------------
  227. Masked
  228. ---------------*/
  229. .ui.masked.reveal {
  230. overflow: hidden;
  231. }
  232. /*--------------
  233. Instant
  234. ---------------*/
  235. .ui.instant.reveal > .content {
  236. transition-delay: 0s !important;
  237. }
  238. /*--------------
  239. Sizing
  240. ---------------*/
  241. .ui.reveal > .content {
  242. font-size: @medium !important;
  243. }