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.

366 lines
8.2 KiB

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