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.

169 lines
2.8 KiB

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