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

  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. .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.dimmer,
  77. .ui.active.dimmer {
  78. display: block;
  79. width: 100%;
  80. height: 100%;
  81. opacity: 1;
  82. }
  83. .ui.disabled.dimmer {
  84. width: 0em !important;
  85. height: 0em !important;
  86. }
  87. /*******************************
  88. Variations
  89. *******************************/
  90. /*--------------
  91. Page
  92. ---------------*/
  93. .ui.page.dimmer {
  94. position: fixed;
  95. -webkit-transform-style: preserve-3d;
  96. -ms-transform-style: preserve-3d;
  97. transform-style: preserve-3d;
  98. -webkit-perspective: 2000px;
  99. -ms-perspective: 2000px;
  100. perspective: 2000px;
  101. -webkit-transform-origin: center center;
  102. -ms-transform-origin: center center;
  103. transform-origin: center center;
  104. }
  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. }