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.

201 lines
3.7 KiB

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