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.

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