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.

172 lines
3.0 KiB

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. .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. 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. .ui.dimmed.dimmable:not(body) {
  62. overflow: @overflow;
  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: @visibleOpacity;
  71. }
  72. .ui.disabled.dimmer {
  73. width: 0 !important;
  74. height: 0 !important;
  75. }
  76. /*******************************
  77. Variations
  78. *******************************/
  79. /*--------------
  80. Page
  81. ---------------*/
  82. .ui.page.dimmer {
  83. position: @pageDimmerPosition;
  84. transform-style: @transformStyle;
  85. perspective: @perspective;
  86. transform-origin: center center;
  87. }
  88. body.ui.dimmed.dimmable {
  89. overflow: hidden;
  90. }
  91. body.ui.dimmable > .dimmer {
  92. position: fixed;
  93. }
  94. body.ui.dimmed.dimmable > :not(.dimmer){
  95. filter: @elementFilter;
  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: @invertedBackground;
  111. }
  112. .ui.inverted.dimmer > .content > * {
  113. color: @textColor;
  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: @simpleStartBackground;
  125. }
  126. .ui.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. .ui.dimmed.dimmable > .ui.simple.inverted.dimmer {
  138. background: @simpleInvertedEndBackground;
  139. }
  140. .loadUIOverrides();