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.

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