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.

160 lines
3.6 KiB

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