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.

247 lines
4.7 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: 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. }
  157. .ui.simple.inverted.dimmer {
  158. background-color: rgba(255, 255, 255, 0);
  159. }
  160. .ui.dimmable.dimmed > .ui.simple.inverted.dimmer {
  161. background-color: rgba(255, 255, 255, 0.85);
  162. }
  163. /*******************************
  164. Animations
  165. *******************************/
  166. .ui.dimmer.show {
  167. width: 100%;
  168. height: 100%;
  169. -webkit-animation: dimmer-show 0.5s;
  170. -moz-animation: dimmer-show 0.5s;
  171. animation: dimmer-show 0.5s;
  172. }
  173. @-webkit-keyframes dimmer-show {
  174. 0% {
  175. opacity: 0;
  176. }
  177. 100% {
  178. opacity: 1;
  179. }
  180. }
  181. @-moz-keyframes dimmer-show {
  182. 0% {
  183. opacity: 0;
  184. }
  185. 100% {
  186. opacity: 1;
  187. }
  188. }
  189. @keyframes dimmer-show {
  190. 0% {
  191. opacity: 0;
  192. }
  193. 100% {
  194. opacity: 1;
  195. }
  196. }
  197. .ui.dimmer.hide {
  198. -webkit-animation: dimmer-hide 0.5s;
  199. -moz-animation: dimmer-hide 0.5s;
  200. animation: dimmer-hide 0.5s;
  201. }
  202. @-webkit-keyframes dimmer-hide {
  203. 0% {
  204. opacity: 1;
  205. }
  206. 99% {
  207. width: 100%;
  208. height: 100%;
  209. opacity: 0;
  210. }
  211. 100% {
  212. opacity: 0;
  213. height: 0em;
  214. width: 0em;
  215. }
  216. }
  217. @-moz-keyframes dimmer-hide {
  218. 0% {
  219. opacity: 1;
  220. }
  221. 99% {
  222. width: 100%;
  223. height: 100%;
  224. opacity: 0;
  225. }
  226. 100% {
  227. opacity: 0;
  228. height: 0em;
  229. width: 0em;
  230. }
  231. }
  232. @keyframes dimmer-hide {
  233. 0% {
  234. opacity: 1;
  235. }
  236. 99% {
  237. width: 100%;
  238. height: 100%;
  239. opacity: 0;
  240. }
  241. 100% {
  242. opacity: 0;
  243. height: 0em;
  244. width: 0em;
  245. }
  246. }