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.

193 lines
3.8 KiB

  1. /*!
  2. * # Semantic UI 2.1.6 - Dimmer
  3. * http://github.com/semantic-org/semantic-ui/
  4. *
  5. *
  6. * Copyright 2015 Contributors
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. */
  11. /*******************************
  12. Dimmer
  13. *******************************/
  14. .dimmable {
  15. position: relative;
  16. }
  17. .ui.dimmer {
  18. display: none;
  19. position: absolute;
  20. top: 0em !important;
  21. left: 0em !important;
  22. width: 100%;
  23. height: 100%;
  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. 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-user-select: none;
  36. -moz-user-select: none;
  37. -ms-user-select: none;
  38. user-select: none;
  39. will-change: opacity;
  40. z-index: 1000;
  41. }
  42. /* Dimmer Content */
  43. .ui.dimmer > .content {
  44. width: 100%;
  45. height: 100%;
  46. display: table;
  47. -webkit-user-select: text;
  48. -moz-user-select: text;
  49. -ms-user-select: text;
  50. user-select: text;
  51. }
  52. .ui.dimmer > .content > * {
  53. display: table-cell;
  54. vertical-align: middle;
  55. color: #FFFFFF;
  56. }
  57. /* Loose Coupling */
  58. .ui.segment > .ui.dimmer {
  59. border-radius: inherit !important;
  60. }
  61. /*******************************
  62. States
  63. *******************************/
  64. .animating.dimmable:not(body),
  65. .dimmed.dimmable:not(body) {
  66. overflow: hidden;
  67. }
  68. .dimmed.dimmable > .ui.animating.dimmer,
  69. .dimmed.dimmable > .ui.visible.dimmer,
  70. .ui.active.dimmer {
  71. display: block;
  72. opacity: 1;
  73. }
  74. .ui.disabled.dimmer {
  75. width: 0 !important;
  76. height: 0 !important;
  77. }
  78. /*******************************
  79. Variations
  80. *******************************/
  81. /*--------------
  82. Page
  83. ---------------*/
  84. .ui.page.dimmer {
  85. position: fixed;
  86. -webkit-transform-style: '';
  87. transform-style: '';
  88. -webkit-perspective: 2000px;
  89. perspective: 2000px;
  90. -webkit-transform-origin: center center;
  91. transform-origin: center center;
  92. }
  93. body.animating.in.dimmable,
  94. body.dimmed.dimmable {
  95. overflow: hidden;
  96. }
  97. body.dimmable > .dimmer {
  98. position: fixed;
  99. }
  100. /*--------------
  101. Blurring
  102. ---------------*/
  103. .blurring.dimmable > :not(.dimmer) {
  104. -webkit-filter: blur(0px) grayscale(0);
  105. filter: blur(0px) grayscale(0);
  106. -webkit-transition: 800ms -webkit-filter ease, 800ms filter ease;
  107. transition: 800ms filter ease;
  108. }
  109. .blurring.dimmed.dimmable > :not(.dimmer) {
  110. -webkit-filter: blur(5px) grayscale(0.7);
  111. filter: blur(5px) grayscale(0.7);
  112. }
  113. /* Dimmer Color */
  114. .blurring.dimmable > .dimmer {
  115. background-color: rgba(0, 0, 0, 0.6);
  116. }
  117. .blurring.dimmable > .inverted.dimmer {
  118. background-color: rgba(255, 255, 255, 0.6);
  119. }
  120. /*--------------
  121. Aligned
  122. ---------------*/
  123. .ui.dimmer > .top.aligned.content > * {
  124. vertical-align: top;
  125. }
  126. .ui.dimmer > .bottom.aligned.content > * {
  127. vertical-align: bottom;
  128. }
  129. /*--------------
  130. Inverted
  131. ---------------*/
  132. .ui.inverted.dimmer {
  133. background-color: rgba(255, 255, 255, 0.85);
  134. }
  135. .ui.inverted.dimmer > .content > * {
  136. color: #FFFFFF;
  137. }
  138. /*--------------
  139. Simple
  140. ---------------*/
  141. /* Displays without javascript */
  142. .ui.simple.dimmer {
  143. display: block;
  144. overflow: hidden;
  145. opacity: 1;
  146. width: 0%;
  147. height: 0%;
  148. z-index: -100;
  149. background-color: rgba(0, 0, 0, 0);
  150. }
  151. .dimmed.dimmable > .ui.simple.dimmer {
  152. overflow: visible;
  153. opacity: 1;
  154. width: 100%;
  155. height: 100%;
  156. background-color: rgba(0, 0, 0, 0.85);
  157. z-index: 1;
  158. }
  159. .ui.simple.inverted.dimmer {
  160. background-color: rgba(255, 255, 255, 0);
  161. }
  162. .dimmed.dimmable > .ui.simple.inverted.dimmer {
  163. background-color: rgba(255, 255, 255, 0.85);
  164. }
  165. /*******************************
  166. User Overrides
  167. *******************************/