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.

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