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.

253 lines
4.8 KiB

  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. }
  84. /* Loose Coupling */
  85. .ui.segment > .ui.dimmer {
  86. -webkit-border-radius: 5px;
  87. -moz-border-radius: 5px;
  88. border-radius: 5px;
  89. }
  90. .ui.horizontal.segment > .ui.dimmer,
  91. .ui.vertical.segment > .ui.dimmer {
  92. -webkit-border-radius: 5px;
  93. -moz-border-radius: 5px;
  94. border-radius: 5px;
  95. }
  96. /*******************************
  97. States
  98. *******************************/
  99. .ui.dimmable.dimmed > :not(.dimmer) {
  100. -webkit-filter: blur(5px) grayscale(0.7);
  101. -moz-filter: blur(5px) grayscale(0.7);
  102. }
  103. body.dimmable.dimmed {
  104. overflow: hidden;
  105. }
  106. .ui.dimmable.dimmed > .ui.dimmer,
  107. .ui.dimmer.active {
  108. width: 100%;
  109. height: 100%;
  110. opacity: 1;
  111. }
  112. .ui.disabled.dimmer {
  113. width: 0em !important;
  114. height: 0em !important;
  115. }
  116. /*******************************
  117. Variations
  118. *******************************/
  119. /*--------------
  120. Page
  121. ---------------*/
  122. .ui.page.dimmer {
  123. position: fixed;
  124. }
  125. body.ui.dimmable.dimmed > :not(.dimmer) {
  126. -webkit-filter: blur(15px) grayscale(0.7);
  127. -moz-filter: blur(15px) grayscale(0.7);
  128. }
  129. /*--------------
  130. Aligned
  131. ---------------*/
  132. .ui.dimmer .top.aligned.content > * {
  133. vertical-align: top;
  134. }
  135. .ui.dimmer .bottom.aligned.content > * {
  136. vertical-align: bottom;
  137. }
  138. /*--------------
  139. Inverted
  140. ---------------*/
  141. .ui.inverted.dimmer {
  142. background-color: rgba(255, 255, 255, 0.85);
  143. }
  144. /*--------------
  145. Simple
  146. ---------------*/
  147. /* Displays without javascript */
  148. .ui.simple.dimmer {
  149. display: block;
  150. overflow: hidden;
  151. opacity: 1;
  152. z-index: -100;
  153. background-color: rgba(0, 0, 0, 0);
  154. }
  155. .ui.dimmable.dimmed > .ui.simple.dimmer {
  156. overflow: visible;
  157. opacity: 1;
  158. width: 100%;
  159. height: 100%;
  160. background-color: rgba(0, 0, 0, 0.85);
  161. z-index: 1;
  162. }
  163. .ui.simple.inverted.dimmer {
  164. background-color: rgba(255, 255, 255, 0);
  165. }
  166. .ui.dimmable.dimmed > .ui.simple.inverted.dimmer {
  167. background-color: rgba(255, 255, 255, 0.85);
  168. }
  169. /*******************************
  170. Animations
  171. *******************************/
  172. .ui.dimmer.show {
  173. width: 100%;
  174. height: 100%;
  175. -webkit-animation-name: dimmer-show;
  176. -moz-animation-name: dimmer-show;
  177. animation-name: dimmer-show;
  178. }
  179. @-webkit-keyframes dimmer-show {
  180. 0% {
  181. opacity: 0;
  182. }
  183. 100% {
  184. opacity: 1;
  185. }
  186. }
  187. @-moz-keyframes dimmer-show {
  188. 0% {
  189. opacity: 0;
  190. }
  191. 100% {
  192. opacity: 1;
  193. }
  194. }
  195. @keyframes dimmer-show {
  196. 0% {
  197. opacity: 0;
  198. }
  199. 100% {
  200. opacity: 1;
  201. }
  202. }
  203. .ui.dimmer.hide {
  204. -webkit-animation-name: dimmer-hide;
  205. -moz-animation-name: dimmer-hide;
  206. animation-name: dimmer-hide;
  207. }
  208. @-webkit-keyframes dimmer-hide {
  209. 0% {
  210. opacity: 1;
  211. }
  212. 99% {
  213. width: 100%;
  214. height: 100%;
  215. opacity: 0;
  216. }
  217. 100% {
  218. opacity: 0;
  219. height: 0em;
  220. width: 0em;
  221. }
  222. }
  223. @-moz-keyframes dimmer-hide {
  224. 0% {
  225. opacity: 1;
  226. }
  227. 99% {
  228. width: 100%;
  229. height: 100%;
  230. opacity: 0;
  231. }
  232. 100% {
  233. opacity: 0;
  234. height: 0em;
  235. width: 0em;
  236. }
  237. }
  238. @keyframes dimmer-hide {
  239. 0% {
  240. opacity: 1;
  241. }
  242. 99% {
  243. width: 100%;
  244. height: 100%;
  245. opacity: 0;
  246. }
  247. 100% {
  248. opacity: 0;
  249. height: 0em;
  250. width: 0em;
  251. }
  252. }