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.

333 lines
7.5 KiB

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