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.

214 lines
4.0 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. right: 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. /* Dimmer Content */;
  65. .ui.dimmer > .content {
  66. width: 100%;
  67. height: 100%;
  68. display: table;
  69. -webkit-user-select: text;
  70. -moz-user-select: text;
  71. -ms-user-select: text;
  72. user-select: text;
  73. }
  74. .ui.dimmer > .content > div {
  75. display: table-cell;
  76. vertical-align: middle;
  77. color: #FFFFFF;
  78. }
  79. /* Loose Coupling */
  80. .ui.segment > .ui.dimmer {
  81. -webkit-border-radius: 5px;
  82. -moz-border-radius: 5px;
  83. border-radius: 5px;
  84. }
  85. .ui.horizontal.segment > .ui.dimmer,
  86. .ui.vertical.segment > .ui.dimmer {
  87. -webkit-border-radius: 5px;
  88. -moz-border-radius: 5px;
  89. border-radius: 5px;
  90. }
  91. /*******************************
  92. States
  93. *******************************/
  94. .ui.dimmed.dimmable:not(body) {
  95. overflow: hidden;
  96. }
  97. .ui.dimmed.dimmable > .ui.dimmer,
  98. .ui.active.dimmer {
  99. display: block;
  100. width: 100%;
  101. height: 100%;
  102. opacity: 1;
  103. }
  104. .ui.disabled.dimmer {
  105. width: 0em !important;
  106. height: 0em !important;
  107. }
  108. /*******************************
  109. Variations
  110. *******************************/
  111. /*--------------
  112. Page
  113. ---------------*/
  114. .ui.page.dimmer {
  115. position: fixed;
  116. -webkit-transform-style: preserve-3d;
  117. -moz-transform-style: preserve-3d;
  118. -ms-transform-style: preserve-3d;
  119. transform-style: preserve-3d;
  120. -webkit-perspective: 2000px;
  121. -moz-perspective: 2000px;
  122. perspective: 2000px;
  123. -webkit-transform-origin: center center;
  124. -moz-transform-origin: center center;
  125. -o-transform-origin: center center;
  126. -ms-transform-origin: center center;
  127. transform-origin: center center;
  128. }
  129. .ui.scrolling.dimmable > .dimmer,
  130. .ui.scrolling.page.dimmer {
  131. position: absolute;
  132. }
  133. /*
  134. body.ui.dimmed.dimmable > :not(.dimmer){
  135. -webkit-filter: ~"blur(15px) grayscale(0.7)";
  136. -moz-filter: ~"blur(15px) grayscale(0.7)";
  137. }
  138. */
  139. /*--------------
  140. Aligned
  141. ---------------*/
  142. .ui.dimmer > .top.aligned.content > * {
  143. vertical-align: top;
  144. }
  145. .ui.dimmer > .bottom.aligned.content > * {
  146. vertical-align: bottom;
  147. }
  148. /*--------------
  149. Inverted
  150. ---------------*/
  151. .ui.inverted.dimmer {
  152. background-color: rgba(255, 255, 255, 0.85);
  153. }
  154. .ui.inverted.dimmer > .content > * {
  155. color: rgba(0, 0, 0, 0.8);
  156. }
  157. /*--------------
  158. Simple
  159. ---------------*/
  160. /* Displays without javascript */
  161. .ui.simple.dimmer {
  162. display: block;
  163. overflow: hidden;
  164. opacity: 1;
  165. z-index: -100;
  166. background-color: rgba(0, 0, 0, 0);
  167. }
  168. .ui.dimmed.dimmable > .ui.simple.dimmer {
  169. overflow: visible;
  170. opacity: 1;
  171. width: 100%;
  172. height: 100%;
  173. background-color: rgba(0, 0, 0, 0.85);
  174. z-index: 1;
  175. }
  176. .ui.simple.inverted.dimmer {
  177. background-color: rgba(255, 255, 255, 0);
  178. }
  179. .ui.dimmed.dimmable > .ui.simple.inverted.dimmer {
  180. background-color: rgba(255, 255, 255, 0.85)
  181. }