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.

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