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.

183 lines
4.0 KiB

11 years ago
11 years ago
11 years ago
  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. .ui.dimmed.dimmable > :not(.dimmer) {
  104. -webkit-filter: blur(5px) grayscale(0.7);
  105. -moz-filter: blur(5px) grayscale(0.7);
  106. }
  107. .ui.dimmed.dimmable > .ui.dimmer,
  108. .ui.active.dimmer {
  109. display: block;
  110. width: 100%;
  111. height: 100%;
  112. opacity: 1;
  113. }
  114. .ui.disabled.dimmer {
  115. width: 0em !important;
  116. height: 0em !important;
  117. }
  118. /*******************************
  119. Variations
  120. *******************************/
  121. /*--------------
  122. Page
  123. ---------------*/
  124. .ui.page.dimmer {
  125. position: fixed;
  126. -webkit-perspective: 2000px;
  127. -moz-perspective: 2000px;
  128. perspective: 2000px;
  129. -webkit-transform-origin: top center;
  130. -moz-transform-origin: top center;
  131. -o-transform-origin: top center;
  132. -ms-transform-origin: top center;
  133. transform-origin: top center;
  134. }
  135. /*
  136. body.ui.dimmed.dimmable > :not(.dimmer){
  137. -webkit-filter: ~"blur(15px) grayscale(0.7)";
  138. -moz-filter: ~"blur(15px) grayscale(0.7)";
  139. }
  140. */
  141. /*--------------
  142. Aligned
  143. ---------------*/
  144. .ui.dimmer > .top.aligned.content > * {
  145. vertical-align: top;
  146. }
  147. .ui.dimmer > .bottom.aligned.content > * {
  148. vertical-align: bottom;
  149. }
  150. /*--------------
  151. Inverted
  152. ---------------*/
  153. .ui.inverted.dimmer {
  154. background-color: rgba(255, 255, 255, 0.85);
  155. }
  156. .ui.inverted.dimmer > .content > * {
  157. color: rgba(0, 0, 0, 0.8);
  158. }
  159. /*--------------
  160. Simple
  161. ---------------*/
  162. /* Displays without javascript */
  163. .ui.simple.dimmer {
  164. display: block;
  165. overflow: hidden;
  166. opacity: 1;
  167. z-index: -100;
  168. background-color: rgba(0, 0, 0, 0);
  169. }
  170. .ui.dimmed.dimmable > .ui.simple.dimmer {
  171. overflow: visible;
  172. opacity: 1;
  173. width: 100%;
  174. height: 100%;
  175. background-color: rgba(0, 0, 0, 0.85);
  176. z-index: 1;
  177. }
  178. .ui.simple.inverted.dimmer {
  179. background-color: rgba(255, 255, 255, 0);
  180. }
  181. .ui.dimmed.dimmable > .ui.simple.inverted.dimmer {
  182. background-color: rgba(255, 255, 255, 0.85);
  183. }