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.

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