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.

227 lines
4.1 KiB

  1. /*
  2. * # Semantic - Dimmer
  3. * http://github.com/jlukic/semantic-ui/
  4. *
  5. *
  6. * Copyright 2013 Contributors
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. */
  11. /*******************************
  12. Dimmer
  13. *******************************/
  14. .ui.dimmable {
  15. position: relative;
  16. }
  17. .ui.dimmer {
  18. display: none;
  19. position: absolute;
  20. top: 0em !important;
  21. left: 0em !important;
  22. width: 0%;
  23. height: 0%;
  24. text-align: center;
  25. vertical-align: middle;
  26. background-color: rgba(0, 0, 0, 0.85);
  27. opacity: 0;
  28. line-height: 1;
  29. -webkit-animation-fill-mode: both;
  30. -moz-animation-fill-mode: both;
  31. -o-animation-fill-mode: both;
  32. -ms-animation-fill-mode: both;
  33. animation-fill-mode: both;
  34. -webkit-animation-duration: 0.5s;
  35. -moz-animation-duration: 0.5s;
  36. -o-animation-duration: 0.5s;
  37. -ms-animation-duration: 0.5s;
  38. animation-duration: 0.5s;
  39. -webkit-transition:
  40. background-color 0.5s linear
  41. ;
  42. -moz-transition:
  43. background-color 0.5s linear
  44. ;
  45. -o-transition:
  46. background-color 0.5s linear
  47. ;
  48. -ms-transition:
  49. background-color 0.5s linear
  50. ;
  51. transition:
  52. background-color 0.5s linear
  53. ;
  54. -webkit-user-select: none;
  55. -moz-user-select: none;
  56. -ms-user-select: none;
  57. user-select: none;
  58. -webkit-box-sizing: border-box;
  59. -moz-box-sizing: border-box;
  60. -ms-box-sizing: border-box;
  61. box-sizing: border-box;
  62. z-index: 1000;
  63. }
  64. /*
  65. .ui.dimmed.dimmable > :not(.dimmer) {
  66. -webkit-transition:
  67. filter 0.5s ease
  68. ;
  69. -moz-transition:
  70. filter 0.5s ease
  71. ;
  72. -o-transition:
  73. filter 0.5s ease
  74. ;
  75. -ms-transition:
  76. filter 0.5s ease
  77. ;
  78. transition:
  79. filter 0.5s ease
  80. ;
  81. }
  82. */
  83. /* Dimmer Content */;
  84. .ui.dimmer > .content {
  85. width: 100%;
  86. height: 100%;
  87. display: table;
  88. -webkit-user-select: text;
  89. -moz-user-select: text;
  90. -ms-user-select: text;
  91. user-select: text;
  92. }
  93. .ui.dimmer > .content > div {
  94. display: table-cell;
  95. vertical-align: middle;
  96. color: #FFFFFF;
  97. }
  98. /* Loose Coupling */
  99. .ui.segment > .ui.dimmer {
  100. -webkit-border-radius: 5px;
  101. -moz-border-radius: 5px;
  102. border-radius: 5px;
  103. }
  104. .ui.horizontal.segment > .ui.dimmer,
  105. .ui.vertical.segment > .ui.dimmer {
  106. -webkit-border-radius: 5px;
  107. -moz-border-radius: 5px;
  108. border-radius: 5px;
  109. }
  110. /*******************************
  111. States
  112. *******************************/
  113. /*
  114. .ui.dimmed.dimmable > :not(.dimmer) {
  115. -webkit-filter: ~"blur(5px) grayscale(0.7)";
  116. -moz-filter: ~"blur(5px) grayscale(0.7)";
  117. }
  118. */
  119. .ui.dimmed.dimmable > .ui.dimmer,
  120. .ui.active.dimmer {
  121. display: block;
  122. width: 100%;
  123. height: 100%;
  124. opacity: 1;
  125. }
  126. .ui.disabled.dimmer {
  127. width: 0em !important;
  128. height: 0em !important;
  129. }
  130. /*******************************
  131. Variations
  132. *******************************/
  133. /*--------------
  134. Page
  135. ---------------*/
  136. .ui.page.dimmer {
  137. position: fixed;
  138. -webkit-perspective: 2000px;
  139. -moz-perspective: 2000px;
  140. perspective: 2000px;
  141. -webkit-transform-origin: top center;
  142. -moz-transform-origin: top center;
  143. -o-transform-origin: top center;
  144. -ms-transform-origin: top center;
  145. transform-origin: top center;
  146. }
  147. /*
  148. body.ui.dimmed.dimmable > :not(.dimmer){
  149. -webkit-filter: ~"blur(15px) grayscale(0.7)";
  150. -moz-filter: ~"blur(15px) grayscale(0.7)";
  151. }
  152. */
  153. /*--------------
  154. Aligned
  155. ---------------*/
  156. .ui.dimmer > .top.aligned.content > * {
  157. vertical-align: top;
  158. }
  159. .ui.dimmer > .bottom.aligned.content > * {
  160. vertical-align: bottom;
  161. }
  162. /*--------------
  163. Inverted
  164. ---------------*/
  165. .ui.inverted.dimmer {
  166. background-color: rgba(255, 255, 255, 0.85);
  167. }
  168. .ui.inverted.dimmer > .content > * {
  169. color: rgba(0, 0, 0, 0.8);
  170. }
  171. /*--------------
  172. Simple
  173. ---------------*/
  174. /* Displays without javascript */
  175. .ui.simple.dimmer {
  176. display: block;
  177. overflow: hidden;
  178. opacity: 1;
  179. z-index: -100;
  180. background-color: rgba(0, 0, 0, 0);
  181. }
  182. .ui.dimmed.dimmable > .ui.simple.dimmer {
  183. overflow: visible;
  184. opacity: 1;
  185. width: 100%;
  186. height: 100%;
  187. background-color: rgba(0, 0, 0, 0.85);
  188. z-index: 1;
  189. }
  190. .ui.simple.inverted.dimmer {
  191. background-color: rgba(255, 255, 255, 0);
  192. }
  193. .ui.dimmed.dimmable > .ui.simple.inverted.dimmer {
  194. background-color: rgba(255, 255, 255, 0.85)
  195. }