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.

257 lines
4.9 KiB

11 years ago
11 years ago
11 years ago
  1. /*
  2. * # Semantic Dimmer
  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: April 17 2013
  11. */
  12. /*******************************
  13. Dimmer
  14. *******************************/
  15. .ui.dimmable {
  16. position: relative;
  17. }
  18. .ui.dimmer {
  19. position: absolute;
  20. top: 0em !important;
  21. left: 0em !important;
  22. text-align: center;
  23. vertical-align: middle;
  24. background-color: rgba(0, 0, 0, 0.85);
  25. opacity: 0;
  26. line-height: 1;
  27. -webkit-animation-fill-mode: both;
  28. -moz-animation-fill-mode: both;
  29. -o-animation-fill-mode: both;
  30. -ms-animation-fill-mode: both;
  31. animation-fill-mode: both;
  32. -webkit-animation-duration: 0.5s;
  33. -moz-animation-duration: 0.5s;
  34. -o-animation-duration: 0.5s;
  35. -ms-animation-duration: 0.5s;
  36. animation-duration: 0.5s;
  37. -webkit-transition: background-color 0.5s linear;
  38. -moz-transition: background-color 0.5s linear;
  39. -o-transition: background-color 0.5s linear;
  40. -ms-transition: background-color 0.5s linear;
  41. transition: background-color 0.5s linear;
  42. -webkit-user-select: none;
  43. -moz-user-select: none;
  44. -ms-user-select: none;
  45. user-select: none;
  46. -webkit-box-sizing: border-box;
  47. -moz-box-sizing: border-box;
  48. -ms-box-sizing: border-box;
  49. box-sizing: border-box;
  50. z-index: 1000;
  51. }
  52. .ui.dimmable.dimmed > :not(.dimmer) {
  53. /*
  54. -webkit-transition:
  55. filter 0.5s ease
  56. ;
  57. -moz-transition:
  58. filter 0.5s ease
  59. ;
  60. -o-transition:
  61. filter 0.5s ease
  62. ;
  63. -ms-transition:
  64. filter 0.5s ease
  65. ;
  66. transition:
  67. filter 0.5s ease
  68. ;
  69. */
  70. }
  71. /* Dimmer Content */.ui.dimmer .content {
  72. width: 100%;
  73. height: 100%;
  74. display: table;
  75. -webkit-user-select: text;
  76. -moz-user-select: text;
  77. -ms-user-select: text;
  78. user-select: text;
  79. }
  80. .ui.dimmer .content > * {
  81. display: table-cell;
  82. vertical-align: middle;
  83. color: #FFFFFF;
  84. }
  85. /* Loose Coupling */
  86. .ui.segment > .ui.dimmer {
  87. -webkit-border-radius: 5px;
  88. -moz-border-radius: 5px;
  89. border-radius: 5px;
  90. }
  91. .ui.horizontal.segment > .ui.dimmer,
  92. .ui.vertical.segment > .ui.dimmer {
  93. -webkit-border-radius: 5px;
  94. -moz-border-radius: 5px;
  95. border-radius: 5px;
  96. }
  97. /*******************************
  98. States
  99. *******************************/
  100. .ui.dimmable.dimmed > :not(.dimmer) {
  101. -webkit-filter: blur(5px) grayscale(0.7);
  102. -moz-filter: blur(5px) grayscale(0.7);
  103. }
  104. body.dimmable.dimmed {
  105. overflow: hidden;
  106. }
  107. .ui.dimmable.dimmed > .ui.dimmer,
  108. .ui.dimmer.active {
  109. width: 100%;
  110. height: 100%;
  111. opacity: 1;
  112. }
  113. .ui.disabled.dimmer {
  114. width: 0em !important;
  115. height: 0em !important;
  116. }
  117. /*******************************
  118. Variations
  119. *******************************/
  120. /*--------------
  121. Page
  122. ---------------*/
  123. .ui.page.dimmer {
  124. position: fixed;
  125. }
  126. body.ui.dimmable.dimmed > :not(.dimmer) {
  127. -webkit-filter: blur(15px) grayscale(0.7);
  128. -moz-filter: blur(15px) grayscale(0.7);
  129. }
  130. /*--------------
  131. Aligned
  132. ---------------*/
  133. .ui.dimmer .top.aligned.content > * {
  134. vertical-align: top;
  135. }
  136. .ui.dimmer .bottom.aligned.content > * {
  137. vertical-align: bottom;
  138. }
  139. /*--------------
  140. Inverted
  141. ---------------*/
  142. .ui.inverted.dimmer {
  143. background-color: rgba(255, 255, 255, 0.85);
  144. }
  145. .ui.inverted.dimmer .content > * {
  146. color: rgba(0, 0, 0, 0.8);
  147. }
  148. /*--------------
  149. Simple
  150. ---------------*/
  151. /* Displays without javascript */
  152. .ui.simple.dimmer {
  153. display: block;
  154. overflow: hidden;
  155. opacity: 1;
  156. z-index: -100;
  157. background-color: rgba(0, 0, 0, 0);
  158. }
  159. .ui.dimmable.dimmed > .ui.simple.dimmer {
  160. overflow: visible;
  161. opacity: 1;
  162. width: 100%;
  163. height: 100%;
  164. background-color: rgba(0, 0, 0, 0.85);
  165. z-index: 1;
  166. }
  167. .ui.simple.inverted.dimmer {
  168. background-color: rgba(255, 255, 255, 0);
  169. }
  170. .ui.dimmable.dimmed > .ui.simple.inverted.dimmer {
  171. background-color: rgba(255, 255, 255, 0.85);
  172. }
  173. /*******************************
  174. Animations
  175. *******************************/
  176. .ui.dimmer.show {
  177. width: 100%;
  178. height: 100%;
  179. -webkit-animation-name: dimmer-show;
  180. -moz-animation-name: dimmer-show;
  181. animation-name: dimmer-show;
  182. }
  183. @-webkit-keyframes dimmer-show {
  184. 0% {
  185. opacity: 0;
  186. }
  187. 100% {
  188. opacity: 1;
  189. }
  190. }
  191. @-moz-keyframes dimmer-show {
  192. 0% {
  193. opacity: 0;
  194. }
  195. 100% {
  196. opacity: 1;
  197. }
  198. }
  199. @keyframes dimmer-show {
  200. 0% {
  201. opacity: 0;
  202. }
  203. 100% {
  204. opacity: 1;
  205. }
  206. }
  207. .ui.dimmer.hide {
  208. -webkit-animation-name: dimmer-hide;
  209. -moz-animation-name: dimmer-hide;
  210. animation-name: dimmer-hide;
  211. }
  212. @-webkit-keyframes dimmer-hide {
  213. 0% {
  214. opacity: 1;
  215. }
  216. 99% {
  217. width: 100%;
  218. height: 100%;
  219. opacity: 0;
  220. }
  221. 100% {
  222. opacity: 0;
  223. height: 0em;
  224. width: 0em;
  225. }
  226. }
  227. @-moz-keyframes dimmer-hide {
  228. 0% {
  229. opacity: 1;
  230. }
  231. 99% {
  232. width: 100%;
  233. height: 100%;
  234. opacity: 0;
  235. }
  236. 100% {
  237. opacity: 0;
  238. height: 0em;
  239. width: 0em;
  240. }
  241. }
  242. @keyframes dimmer-hide {
  243. 0% {
  244. opacity: 1;
  245. }
  246. 99% {
  247. width: 100%;
  248. height: 100%;
  249. opacity: 0;
  250. }
  251. 100% {
  252. opacity: 0;
  253. height: 0em;
  254. width: 0em;
  255. }
  256. }