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.

181 lines
3.4 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. 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. -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.animating.dimmer,
  78. .ui.dimmed.dimmable > .ui.visible.dimmer,
  79. .ui.active.dimmer {
  80. display: block;
  81. width: 100%;
  82. height: 100%;
  83. opacity: 1;
  84. }
  85. .ui.disabled.dimmer {
  86. width: 0em !important;
  87. height: 0em !important;
  88. }
  89. /*******************************
  90. Variations
  91. *******************************/
  92. /*--------------
  93. Page
  94. ---------------*/
  95. .ui.page.dimmer {
  96. position: fixed;
  97. -webkit-transform-style: preserve-3d;
  98. -ms-transform-style: preserve-3d;
  99. transform-style: preserve-3d;
  100. -webkit-perspective: 2000px;
  101. -ms-perspective: 2000px;
  102. perspective: 2000px;
  103. -webkit-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. /*--------------
  112. Aligned
  113. ---------------*/
  114. .ui.dimmer > .top.aligned.content > * {
  115. vertical-align: top;
  116. }
  117. .ui.dimmer > .bottom.aligned.content > * {
  118. vertical-align: bottom;
  119. }
  120. /*--------------
  121. Inverted
  122. ---------------*/
  123. .ui.inverted.dimmer {
  124. background-color: rgba(255, 255, 255, 0.85);
  125. }
  126. .ui.inverted.dimmer > .content > * {
  127. color: rgba(0, 0, 0, 0.8);
  128. }
  129. /*--------------
  130. Simple
  131. ---------------*/
  132. /* Displays without javascript */
  133. .ui.simple.dimmer {
  134. display: block;
  135. overflow: hidden;
  136. opacity: 1;
  137. z-index: -100;
  138. background-color: rgba(0, 0, 0, 0);
  139. }
  140. .ui.dimmed.dimmable > .ui.simple.dimmer {
  141. overflow: visible;
  142. opacity: 1;
  143. width: 100%;
  144. height: 100%;
  145. background-color: rgba(0, 0, 0, 0.85);
  146. z-index: 1;
  147. }
  148. .ui.simple.inverted.dimmer {
  149. background-color: rgba(255, 255, 255, 0);
  150. }
  151. .ui.dimmed.dimmable > .ui.simple.inverted.dimmer {
  152. background-color: rgba(255, 255, 255, 0.85);
  153. }