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.

177 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. -moz-box-sizing: border-box;
  42. -ms-box-sizing: border-box;
  43. box-sizing: border-box;
  44. z-index: 1000;
  45. }
  46. /* Dimmer Content */
  47. .ui.dimmer > .content {
  48. width: 100%;
  49. height: 100%;
  50. display: table;
  51. -webkit-user-select: text;
  52. -moz-user-select: text;
  53. -ms-user-select: text;
  54. user-select: text;
  55. }
  56. .ui.dimmer > .content > div {
  57. display: table-cell;
  58. vertical-align: middle;
  59. color: #FFFFFF;
  60. }
  61. /* Loose Coupling */
  62. .ui.segment > .ui.dimmer {
  63. border-radius: 5px;
  64. }
  65. .ui.horizontal.segment > .ui.dimmer,
  66. .ui.vertical.segment > .ui.dimmer {
  67. border-radius: 5px;
  68. }
  69. /*******************************
  70. States
  71. *******************************/
  72. .ui.dimmed.dimmable:not(body) {
  73. overflow: hidden;
  74. }
  75. .ui.dimmed.dimmable > .ui.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.page.dimmer {
  105. position: absolute;
  106. }
  107. /*--------------
  108. Aligned
  109. ---------------*/
  110. .ui.dimmer > .top.aligned.content > * {
  111. vertical-align: top;
  112. }
  113. .ui.dimmer > .bottom.aligned.content > * {
  114. vertical-align: bottom;
  115. }
  116. /*--------------
  117. Inverted
  118. ---------------*/
  119. .ui.inverted.dimmer {
  120. background-color: rgba(255, 255, 255, 0.85);
  121. }
  122. .ui.inverted.dimmer > .content > * {
  123. color: rgba(0, 0, 0, 0.8);
  124. }
  125. /*--------------
  126. Simple
  127. ---------------*/
  128. /* Displays without javascript */
  129. .ui.simple.dimmer {
  130. display: block;
  131. overflow: hidden;
  132. opacity: 1;
  133. z-index: -100;
  134. background-color: rgba(0, 0, 0, 0);
  135. }
  136. .ui.dimmed.dimmable > .ui.simple.dimmer {
  137. overflow: visible;
  138. opacity: 1;
  139. width: 100%;
  140. height: 100%;
  141. background-color: rgba(0, 0, 0, 0.85);
  142. z-index: 1;
  143. }
  144. .ui.simple.inverted.dimmer {
  145. background-color: rgba(255, 255, 255, 0);
  146. }
  147. .ui.dimmed.dimmable > .ui.simple.inverted.dimmer {
  148. background-color: rgba(255, 255, 255, 0.85);
  149. }