dimmer.css 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. /*!
  2. * # Semantic UI 2.3.3 - 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. Alignment
  104. ---------------*/
  105. .ui[class*="top aligned"].dimmer {
  106. -webkit-box-pack: start;
  107. -ms-flex-pack: start;
  108. justify-content: flex-start;
  109. }
  110. .ui[class*="bottom aligned"].dimmer {
  111. -webkit-box-pack: end;
  112. -ms-flex-pack: end;
  113. justify-content: flex-end;
  114. }
  115. /*--------------
  116. Page
  117. ---------------*/
  118. .ui.page.dimmer {
  119. position: fixed;
  120. -webkit-transform-style: '';
  121. transform-style: '';
  122. -webkit-perspective: 2000px;
  123. perspective: 2000px;
  124. -webkit-transform-origin: center center;
  125. transform-origin: center center;
  126. }
  127. body.animating.in.dimmable,
  128. body.dimmed.dimmable {
  129. overflow: hidden;
  130. }
  131. body.dimmable > .dimmer {
  132. position: fixed;
  133. }
  134. /*--------------
  135. Blurring
  136. ---------------*/
  137. .blurring.dimmable > :not(.dimmer) {
  138. -webkit-filter: blur(0px) grayscale(0);
  139. filter: blur(0px) grayscale(0);
  140. -webkit-transition: 800ms -webkit-filter ease;
  141. transition: 800ms -webkit-filter ease;
  142. transition: 800ms filter ease;
  143. transition: 800ms filter ease, 800ms -webkit-filter ease;
  144. }
  145. .blurring.dimmed.dimmable > :not(.dimmer) {
  146. -webkit-filter: blur(5px) grayscale(0.7);
  147. filter: blur(5px) grayscale(0.7);
  148. }
  149. /* Dimmer Color */
  150. .blurring.dimmable > .dimmer {
  151. background-color: rgba(0, 0, 0, 0.6);
  152. }
  153. .blurring.dimmable > .inverted.dimmer {
  154. background-color: rgba(255, 255, 255, 0.6);
  155. }
  156. /*--------------
  157. Aligned
  158. ---------------*/
  159. .ui.dimmer > .top.aligned.content > * {
  160. vertical-align: top;
  161. }
  162. .ui.dimmer > .bottom.aligned.content > * {
  163. vertical-align: bottom;
  164. }
  165. /*--------------
  166. Inverted
  167. ---------------*/
  168. .ui.inverted.dimmer {
  169. background-color: rgba(255, 255, 255, 0.85);
  170. }
  171. .ui.inverted.dimmer > .content > * {
  172. color: #FFFFFF;
  173. }
  174. /*--------------
  175. Simple
  176. ---------------*/
  177. /* Displays without javascript */
  178. .ui.simple.dimmer {
  179. display: block;
  180. overflow: hidden;
  181. opacity: 1;
  182. width: 0%;
  183. height: 0%;
  184. z-index: -100;
  185. background-color: rgba(0, 0, 0, 0);
  186. }
  187. .dimmed.dimmable > .ui.simple.dimmer {
  188. overflow: visible;
  189. opacity: 1;
  190. width: 100%;
  191. height: 100%;
  192. background-color: rgba(0, 0, 0, 0.85);
  193. z-index: 1;
  194. }
  195. .ui.simple.inverted.dimmer {
  196. background-color: rgba(255, 255, 255, 0);
  197. }
  198. .dimmed.dimmable > .ui.simple.inverted.dimmer {
  199. background-color: rgba(255, 255, 255, 0.85);
  200. }
  201. /*******************************
  202. Theme Overrides
  203. *******************************/
  204. /*******************************
  205. User Overrides
  206. *******************************/