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.

171 lines
3.0 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
  1. /*
  2. * # Semantic - Dimmer
  3. * http://github.com/semantic-org/semantic-ui/
  4. *
  5. *
  6. * Copyright 2014 Contributor
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. */
  11. /*******************************
  12. Theme
  13. *******************************/
  14. @type : 'module';
  15. @element : 'dimmer';
  16. @import '../../semantic.config';
  17. /*******************************
  18. Dimmer
  19. *******************************/
  20. .dimmable {
  21. position: @dimmablePosition;
  22. }
  23. .ui.dimmer {
  24. display: none;
  25. position: @dimmerPosition;
  26. top: 0em !important;
  27. left: 0em !important;
  28. width: 100%;
  29. height: 100%;
  30. text-align: @textAlign;
  31. vertical-align: @verticalAlign;
  32. background: @background;
  33. opacity: @hiddenOpacity;
  34. line-height: @lineHeight;
  35. animation-fill-mode: both;
  36. animation-duration: @duration;
  37. transition: @transition;
  38. user-select: none;
  39. will-transform: opacity;
  40. z-index: @zIndex;
  41. }
  42. /* Dimmer Content */
  43. .ui.dimmer > .content {
  44. width: 100%;
  45. height: 100%;
  46. display: @contentDisplay;
  47. user-select: text;
  48. }
  49. .ui.dimmer > .content > div {
  50. display: @contentChildDisplay;
  51. vertical-align: @verticalAlign;
  52. color: @textColor;
  53. }
  54. /* Loose Coupling */
  55. .ui.segment > .ui.dimmer {
  56. border-radius: inherit !important;
  57. }
  58. /*******************************
  59. States
  60. *******************************/
  61. .dimmed.dimmable:not(body) {
  62. overflow: @overflow;
  63. }
  64. .dimmed.dimmable > .ui.animating.dimmer,
  65. .dimmed.dimmable > .ui.visible.dimmer,
  66. .ui.active.dimmer {
  67. display: block;
  68. opacity: @visibleOpacity;
  69. }
  70. .ui.disabled.dimmer {
  71. width: 0 !important;
  72. height: 0 !important;
  73. }
  74. /*******************************
  75. Variations
  76. *******************************/
  77. /*--------------
  78. Page
  79. ---------------*/
  80. .ui.page.dimmer {
  81. position: @pageDimmerPosition;
  82. transform-style: @transformStyle;
  83. perspective: @perspective;
  84. transform-origin: center center;
  85. }
  86. body.dimmed.dimmable {
  87. overflow: hidden;
  88. }
  89. body.dimmable > .dimmer {
  90. position: fixed;
  91. }
  92. body.dimmed.dimmable > :not(.dimmer){
  93. filter: @elementFilter;
  94. }
  95. /*--------------
  96. Aligned
  97. ---------------*/
  98. .ui.dimmer > .top.aligned.content > * {
  99. vertical-align: top;
  100. }
  101. .ui.dimmer > .bottom.aligned.content > * {
  102. vertical-align: bottom;
  103. }
  104. /*--------------
  105. Inverted
  106. ---------------*/
  107. .ui.inverted.dimmer {
  108. background: @invertedBackground;
  109. }
  110. .ui.inverted.dimmer > .content > * {
  111. color: @textColor;
  112. }
  113. /*--------------
  114. Simple
  115. ---------------*/
  116. /* Displays without javascript */
  117. .ui.simple.dimmer {
  118. display: block;
  119. overflow: hidden;
  120. opacity: 1;
  121. width: 0%;
  122. height: 0%;
  123. z-index: -100;
  124. background-color: @simpleStartBackground;
  125. }
  126. .dimmed.dimmable > .ui.simple.dimmer {
  127. overflow: visible;
  128. opacity: 1;
  129. width: 100%;
  130. height: 100%;
  131. background: @simpleEndBackground;
  132. z-index: @simpleZIndex;
  133. }
  134. .ui.simple.inverted.dimmer {
  135. background: @simpleInvertedStartBackground;
  136. }
  137. .dimmed.dimmable > .ui.simple.inverted.dimmer {
  138. background: @simpleInvertedEndBackground;
  139. }
  140. .loadUIOverrides();