dimmer.css 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. /*!
  2. * # Semantic UI 2.4.2 - Dimmer
  3. * http://github.com/semantic-org/semantic-ui/
  4. *
  5. *
  6. * Released under the MIT license
  7. * http://opensource.org/licenses/MIT
  8. *
  9. */
  10. /*******************************
  11. Dimmer
  12. *******************************/
  13. .dimmable:not(body) {
  14. position: relative;
  15. }
  16. .ui.dimmer {
  17. display: none;
  18. position: absolute;
  19. top: 0em !important;
  20. left: 0em !important;
  21. width: 100%;
  22. height: 100%;
  23. text-align: center;
  24. vertical-align: middle;
  25. padding: 1em;
  26. background-color: rgba(0, 0, 0, 0.85);
  27. opacity: 0;
  28. line-height: 1;
  29. -webkit-animation-fill-mode: both;
  30. animation-fill-mode: both;
  31. -webkit-animation-duration: 0.5s;
  32. animation-duration: 0.5s;
  33. -webkit-transition: background-color 0.5s linear;
  34. transition: background-color 0.5s linear;
  35. -webkit-box-orient: vertical;
  36. -webkit-box-direction: normal;
  37. -ms-flex-direction: column;
  38. flex-direction: column;
  39. -webkit-box-align: center;
  40. -ms-flex-align: center;
  41. align-items: center;
  42. -webkit-box-pack: center;
  43. -ms-flex-pack: center;
  44. justify-content: center;
  45. -webkit-user-select: none;
  46. -moz-user-select: none;
  47. -ms-user-select: none;
  48. user-select: none;
  49. will-change: opacity;
  50. z-index: 1000;
  51. }
  52. /* Dimmer Content */
  53. .ui.dimmer > .content {
  54. -webkit-user-select: text;
  55. -moz-user-select: text;
  56. -ms-user-select: text;
  57. user-select: text;
  58. color: #FFFFFF;
  59. }
  60. /* Loose Coupling */
  61. .ui.segment > .ui.dimmer {
  62. border-radius: inherit !important;
  63. }
  64. /* Scrollbars */
  65. .ui.dimmer:not(.inverted)::-webkit-scrollbar-track {
  66. background: rgba(255, 255, 255, 0.1);
  67. }
  68. .ui.dimmer:not(.inverted)::-webkit-scrollbar-thumb {
  69. background: rgba(255, 255, 255, 0.25);
  70. }
  71. .ui.dimmer:not(.inverted)::-webkit-scrollbar-thumb:window-inactive {
  72. background: rgba(255, 255, 255, 0.15);
  73. }
  74. .ui.dimmer:not(.inverted)::-webkit-scrollbar-thumb:hover {
  75. background: rgba(255, 255, 255, 0.35);
  76. }
  77. /*******************************
  78. States
  79. *******************************/
  80. /* Animating */
  81. .animating.dimmable:not(body),
  82. .dimmed.dimmable:not(body) {
  83. overflow: hidden;
  84. }
  85. /* Animating / Active / Visible */
  86. .dimmed.dimmable > .ui.animating.dimmer,
  87. .dimmed.dimmable > .ui.visible.dimmer,
  88. .ui.active.dimmer {
  89. display: -webkit-box;
  90. display: -ms-flexbox;
  91. display: flex;
  92. opacity: 1;
  93. }
  94. /* Disabled */
  95. .ui.disabled.dimmer {
  96. width: 0 !important;
  97. height: 0 !important;
  98. }
  99. /*******************************
  100. Variations
  101. *******************************/
  102. /*--------------
  103. Legacy
  104. ---------------*/
  105. /* Animating / Active / Visible */
  106. .dimmed.dimmable > .ui.animating.legacy.dimmer,
  107. .dimmed.dimmable > .ui.visible.legacy.dimmer,
  108. .ui.active.legacy.dimmer {
  109. display: block;
  110. }
  111. /*--------------
  112. Alignment
  113. ---------------*/
  114. .ui[class*="top aligned"].dimmer {
  115. -webkit-box-pack: start;
  116. -ms-flex-pack: start;
  117. justify-content: flex-start;
  118. }
  119. .ui[class*="bottom aligned"].dimmer {
  120. -webkit-box-pack: end;
  121. -ms-flex-pack: end;
  122. justify-content: flex-end;
  123. }
  124. /*--------------
  125. Page
  126. ---------------*/
  127. .ui.page.dimmer {
  128. position: fixed;
  129. -webkit-transform-style: '';
  130. transform-style: '';
  131. -webkit-perspective: 2000px;
  132. perspective: 2000px;
  133. -webkit-transform-origin: center center;
  134. transform-origin: center center;
  135. }
  136. body.animating.in.dimmable,
  137. body.dimmed.dimmable {
  138. overflow: hidden;
  139. }
  140. body.dimmable > .dimmer {
  141. position: fixed;
  142. }
  143. /*--------------
  144. Blurring
  145. ---------------*/
  146. .blurring.dimmable > :not(.dimmer) {
  147. -webkit-filter: blur(0px) grayscale(0);
  148. filter: blur(0px) grayscale(0);
  149. -webkit-transition: 800ms -webkit-filter ease;
  150. transition: 800ms -webkit-filter ease;
  151. transition: 800ms filter ease;
  152. transition: 800ms filter ease, 800ms -webkit-filter ease;
  153. }
  154. .blurring.dimmed.dimmable > :not(.dimmer) {
  155. -webkit-filter: blur(5px) grayscale(0.7);
  156. filter: blur(5px) grayscale(0.7);
  157. }
  158. /* Dimmer Color */
  159. .blurring.dimmable > .dimmer {
  160. background-color: rgba(0, 0, 0, 0.6);
  161. }
  162. .blurring.dimmable > .inverted.dimmer {
  163. background-color: rgba(255, 255, 255, 0.6);
  164. }
  165. /*--------------
  166. Aligned
  167. ---------------*/
  168. .ui.dimmer > .top.aligned.content > * {
  169. vertical-align: top;
  170. }
  171. .ui.dimmer > .bottom.aligned.content > * {
  172. vertical-align: bottom;
  173. }
  174. /*--------------
  175. Inverted
  176. ---------------*/
  177. .ui.inverted.dimmer {
  178. background-color: rgba(255, 255, 255, 0.85);
  179. }
  180. .ui.inverted.dimmer > .content > * {
  181. color: #FFFFFF;
  182. }
  183. /*--------------
  184. Simple
  185. ---------------*/
  186. /* Displays without javascript */
  187. .ui.simple.dimmer {
  188. display: block;
  189. overflow: hidden;
  190. opacity: 1;
  191. width: 0%;
  192. height: 0%;
  193. z-index: -100;
  194. background-color: rgba(0, 0, 0, 0);
  195. }
  196. .dimmed.dimmable > .ui.simple.dimmer {
  197. overflow: visible;
  198. opacity: 1;
  199. width: 100%;
  200. height: 100%;
  201. background-color: rgba(0, 0, 0, 0.85);
  202. z-index: 1;
  203. }
  204. .ui.simple.inverted.dimmer {
  205. background-color: rgba(255, 255, 255, 0);
  206. }
  207. .dimmed.dimmable > .ui.simple.inverted.dimmer {
  208. background-color: rgba(255, 255, 255, 0.85);
  209. }
  210. /*******************************
  211. Theme Overrides
  212. *******************************/
  213. /*******************************
  214. User Overrides
  215. *******************************/