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.

170 lines
3.0 KiB

10 years ago
10 years ago
  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. Theme
  13. *******************************/
  14. @type : 'module';
  15. @element : 'dimmer';
  16. @import '../../semantic.config';
  17. /*******************************
  18. Dimmer
  19. *******************************/
  20. .ui.dimmable {
  21. position: @dimmablePosition;
  22. }
  23. .ui.dimmer {
  24. display: none;
  25. position: @dimmerPosition;
  26. top: 0em !important;
  27. left: 0em !important;
  28. width: 0%;
  29. height: 0%;
  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. z-index: @zIndex;
  40. }
  41. /* Dimmer Content */
  42. .ui.dimmer > .content {
  43. width: 100%;
  44. height: 100%;
  45. display: @contentDisplay;
  46. user-select: text;
  47. }
  48. .ui.dimmer > .content > div {
  49. display: @contentChildDisplay;
  50. vertical-align: @verticalAlign;
  51. color: @textColor;
  52. }
  53. /* Loose Coupling */
  54. .ui.segment > .ui.dimmer {
  55. border-radius: inherit !important;
  56. }
  57. /*******************************
  58. States
  59. *******************************/
  60. .ui.dimmed.dimmable:not(body) {
  61. overflow: @overflow;
  62. }
  63. .ui.dimmed.dimmable > .ui.animating.dimmer,
  64. .ui.dimmed.dimmable > .ui.visible.dimmer,
  65. .ui.active.dimmer {
  66. display: block;
  67. width: 100%;
  68. height: 100%;
  69. opacity: @visibleOpacity;
  70. }
  71. .ui.disabled.dimmer {
  72. width: 0 !important;
  73. height: 0 !important;
  74. }
  75. /*******************************
  76. Variations
  77. *******************************/
  78. /*--------------
  79. Page
  80. ---------------*/
  81. .ui.page.dimmer {
  82. position: @pageDimmerPosition;
  83. transform-style: @transformStyle;
  84. perspective: @perspective;
  85. transform-origin: center center;
  86. }
  87. .ui.scrolling.dimmable > .dimmer,
  88. .ui.scrolling.page.dimmer {
  89. position: absolute;
  90. }
  91. body.ui.dimmed.dimmable > :not(.dimmer){
  92. filter: @elementFilter;
  93. }
  94. /*--------------
  95. Aligned
  96. ---------------*/
  97. .ui.dimmer > .top.aligned.content > * {
  98. vertical-align: top;
  99. }
  100. .ui.dimmer > .bottom.aligned.content > * {
  101. vertical-align: bottom;
  102. }
  103. /*--------------
  104. Inverted
  105. ---------------*/
  106. .ui.inverted.dimmer {
  107. background: @invertedBackground;
  108. }
  109. .ui.inverted.dimmer > .content > * {
  110. color: @textColor;
  111. }
  112. /*--------------
  113. Simple
  114. ---------------*/
  115. /* Displays without javascript */
  116. .ui.simple.dimmer {
  117. display: block;
  118. overflow: hidden;
  119. opacity: 1;
  120. z-index: -100;
  121. background-color: @simpleStartBackground;
  122. }
  123. .ui.dimmed.dimmable > .ui.simple.dimmer {
  124. overflow: visible;
  125. opacity: 1;
  126. width: 100%;
  127. height: 100%;
  128. background: @simpleEndBackground;
  129. z-index: @simpleZIndex;
  130. }
  131. .ui.simple.inverted.dimmer {
  132. background: @simpleInvertedStartBackground;
  133. }
  134. .ui.dimmed.dimmable > .ui.simple.inverted.dimmer {
  135. background: @simpleInvertedEndBackground;
  136. }
  137. .loadUIOverrides();