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.

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