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.

158 lines
3.6 KiB

11 years ago
10 years ago
10 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. 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. 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. transform-style: preserve-3d;
  99. -webkit-perspective: 2000px;
  100. -moz-perspective: 2000px;
  101. perspective: 2000px;
  102. -webkit-transform-origin: center center;
  103. -moz-transform-origin: center center;
  104. -ms-transform-origin: center center;
  105. transform-origin: center center;
  106. }
  107. .ui.scrolling.dimmable > .dimmer,
  108. .ui.scrolling.page.dimmer {
  109. position: absolute;
  110. }
  111. /* Blurred Background
  112. body.ui.dimmed.dimmable > :not(.dimmer){
  113. filter: ~"blur(15px) grayscale(0.7)";
  114. }
  115. */
  116. /*--------------
  117. Aligned
  118. ---------------*/
  119. .ui.dimmer > .top.aligned.content > * {
  120. vertical-align: top;
  121. }
  122. .ui.dimmer > .bottom.aligned.content > * {
  123. vertical-align: bottom;
  124. }
  125. /*--------------
  126. Inverted
  127. ---------------*/
  128. .ui.inverted.dimmer {
  129. background-color: rgba(255, 255, 255, 0.85);
  130. }
  131. .ui.inverted.dimmer > .content > * {
  132. color: rgba(0, 0, 0, 0.8);
  133. }
  134. /*--------------
  135. Simple
  136. ---------------*/
  137. /* Displays without javascript */
  138. .ui.simple.dimmer {
  139. display: block;
  140. overflow: hidden;
  141. opacity: 1;
  142. z-index: -100;
  143. background-color: rgba(0, 0, 0, 0);
  144. }
  145. .ui.dimmed.dimmable > .ui.simple.dimmer {
  146. overflow: visible;
  147. opacity: 1;
  148. width: 100%;
  149. height: 100%;
  150. background-color: rgba(0, 0, 0, 0.85);
  151. z-index: 1;
  152. }
  153. .ui.simple.inverted.dimmer {
  154. background-color: rgba(255, 255, 255, 0);
  155. }
  156. .ui.dimmed.dimmable > .ui.simple.inverted.dimmer {
  157. background-color: rgba(255, 255, 255, 0.85);
  158. }