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.

229 lines
4.1 KiB

  1. /*
  2. * # Semantic Dimmer
  3. * http://github.com/quirkyinc/semantic
  4. *
  5. *
  6. * Copyright 2013 Contributors
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. * Released: April 17 2013
  11. */
  12. /*******************************
  13. Dimmer
  14. *******************************/
  15. .ui.dimmable {
  16. position: relative;
  17. }
  18. .ui.dimmer {
  19. display: none;
  20. position: absolute;
  21. top: 0em !important;
  22. left: 0em !important;
  23. width: 0%;
  24. height: 0%;
  25. text-align: center;
  26. vertical-align: middle;
  27. background-color: rgba(0, 0, 0, 0.85);
  28. opacity: 0;
  29. line-height: 1;
  30. -webkit-animation-fill-mode: both;
  31. -moz-animation-fill-mode: both;
  32. -o-animation-fill-mode: both;
  33. -ms-animation-fill-mode: both;
  34. animation-fill-mode: both;
  35. -webkit-animation-duration: 0.5s;
  36. -moz-animation-duration: 0.5s;
  37. -o-animation-duration: 0.5s;
  38. -ms-animation-duration: 0.5s;
  39. animation-duration: 0.5s;
  40. -webkit-transition:
  41. background-color 0.5s linear
  42. ;
  43. -moz-transition:
  44. background-color 0.5s linear
  45. ;
  46. -o-transition:
  47. background-color 0.5s linear
  48. ;
  49. -ms-transition:
  50. background-color 0.5s linear
  51. ;
  52. transition:
  53. background-color 0.5s linear
  54. ;
  55. -webkit-user-select: none;
  56. -moz-user-select: none;
  57. -ms-user-select: none;
  58. user-select: none;
  59. -webkit-box-sizing: border-box;
  60. -moz-box-sizing: border-box;
  61. -ms-box-sizing: border-box;
  62. box-sizing: border-box;
  63. z-index: 1000;
  64. }
  65. /*
  66. .ui.dimmed.dimmable > :not(.dimmer) {
  67. -webkit-transition:
  68. filter 0.5s ease
  69. ;
  70. -moz-transition:
  71. filter 0.5s ease
  72. ;
  73. -o-transition:
  74. filter 0.5s ease
  75. ;
  76. -ms-transition:
  77. filter 0.5s ease
  78. ;
  79. transition:
  80. filter 0.5s ease
  81. ;
  82. }
  83. */
  84. /* Dimmer Content */;
  85. .ui.dimmer > .content {
  86. width: 100%;
  87. height: 100%;
  88. display: table;
  89. -webkit-user-select: text;
  90. -moz-user-select: text;
  91. -ms-user-select: text;
  92. user-select: text;
  93. }
  94. .ui.dimmer > .content > div {
  95. display: table-cell;
  96. vertical-align: middle;
  97. color: #FFFFFF;
  98. }
  99. /* Loose Coupling */
  100. .ui.segment > .ui.dimmer {
  101. -webkit-border-radius: 5px;
  102. -moz-border-radius: 5px;
  103. border-radius: 5px;
  104. }
  105. .ui.horizontal.segment > .ui.dimmer,
  106. .ui.vertical.segment > .ui.dimmer {
  107. -webkit-border-radius: 5px;
  108. -moz-border-radius: 5px;
  109. border-radius: 5px;
  110. }
  111. /*******************************
  112. States
  113. *******************************/
  114. /*
  115. .ui.dimmed.dimmable > :not(.dimmer) {
  116. -webkit-filter: ~"blur(5px) grayscale(0.7)";
  117. -moz-filter: ~"blur(5px) grayscale(0.7)";
  118. }
  119. */
  120. .ui.dimmed.dimmable > .ui.dimmer,
  121. .ui.active.dimmer {
  122. display: block;
  123. width: 100%;
  124. height: 100%;
  125. opacity: 1;
  126. }
  127. .ui.disabled.dimmer {
  128. width: 0em !important;
  129. height: 0em !important;
  130. }
  131. /*******************************
  132. Variations
  133. *******************************/
  134. /*--------------
  135. Page
  136. ---------------*/
  137. .ui.page.dimmer {
  138. position: fixed;
  139. -webkit-perspective: 2000px;
  140. -moz-perspective: 2000px;
  141. perspective: 2000px;
  142. -webkit-transform-origin: top center;
  143. -moz-transform-origin: top center;
  144. -o-transform-origin: top center;
  145. -ms-transform-origin: top center;
  146. transform-origin: top center;
  147. }
  148. /*
  149. body.ui.dimmed.dimmable > :not(.dimmer){
  150. -webkit-filter: ~"blur(15px) grayscale(0.7)";
  151. -moz-filter: ~"blur(15px) grayscale(0.7)";
  152. }
  153. */
  154. /*--------------
  155. Aligned
  156. ---------------*/
  157. .ui.dimmer > .top.aligned.content > * {
  158. vertical-align: top;
  159. }
  160. .ui.dimmer > .bottom.aligned.content > * {
  161. vertical-align: bottom;
  162. }
  163. /*--------------
  164. Inverted
  165. ---------------*/
  166. .ui.inverted.dimmer {
  167. background-color: rgba(255, 255, 255, 0.85);
  168. }
  169. .ui.inverted.dimmer > .content > * {
  170. color: rgba(0, 0, 0, 0.8);
  171. }
  172. /*--------------
  173. Simple
  174. ---------------*/
  175. /* Displays without javascript */
  176. .ui.simple.dimmer {
  177. display: block;
  178. overflow: hidden;
  179. opacity: 1;
  180. z-index: -100;
  181. background-color: rgba(0, 0, 0, 0);
  182. }
  183. .ui.dimmed.dimmable > .ui.simple.dimmer {
  184. overflow: visible;
  185. opacity: 1;
  186. width: 100%;
  187. height: 100%;
  188. background-color: rgba(0, 0, 0, 0.85);
  189. z-index: 1;
  190. }
  191. .ui.simple.inverted.dimmer {
  192. background-color: rgba(255, 255, 255, 0);
  193. }
  194. .ui.dimmed.dimmable > .ui.simple.inverted.dimmer {
  195. background-color: rgba(255, 255, 255, 0.85)
  196. }