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.

212 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.page.dimmer {
  130. position: absolute;
  131. }
  132. /*
  133. body.ui.dimmed.dimmable > :not(.dimmer){
  134. -webkit-filter: ~"blur(15px) grayscale(0.7)";
  135. -moz-filter: ~"blur(15px) grayscale(0.7)";
  136. }
  137. */
  138. /*--------------
  139. Aligned
  140. ---------------*/
  141. .ui.dimmer > .top.aligned.content > * {
  142. vertical-align: top;
  143. }
  144. .ui.dimmer > .bottom.aligned.content > * {
  145. vertical-align: bottom;
  146. }
  147. /*--------------
  148. Inverted
  149. ---------------*/
  150. .ui.inverted.dimmer {
  151. background-color: rgba(255, 255, 255, 0.85);
  152. }
  153. .ui.inverted.dimmer > .content > * {
  154. color: rgba(0, 0, 0, 0.8);
  155. }
  156. /*--------------
  157. Simple
  158. ---------------*/
  159. /* Displays without javascript */
  160. .ui.simple.dimmer {
  161. display: block;
  162. overflow: hidden;
  163. opacity: 1;
  164. z-index: -100;
  165. background-color: rgba(0, 0, 0, 0);
  166. }
  167. .ui.dimmed.dimmable > .ui.simple.dimmer {
  168. overflow: visible;
  169. opacity: 1;
  170. width: 100%;
  171. height: 100%;
  172. background-color: rgba(0, 0, 0, 0.85);
  173. z-index: 1;
  174. }
  175. .ui.simple.inverted.dimmer {
  176. background-color: rgba(255, 255, 255, 0);
  177. }
  178. .ui.dimmed.dimmable > .ui.simple.inverted.dimmer {
  179. background-color: rgba(255, 255, 255, 0.85)
  180. }