perfect-scrollbar.component.css 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. /*
  2. TODO: Remove important flags after this bug if fixed:
  3. https://github.com/angular/flex-layout/issues/381
  4. */
  5. perfect-scrollbar {
  6. position: relative;
  7. display: block;
  8. overflow: hidden;
  9. width: 100%;
  10. height: 100%;
  11. max-width: 100%;
  12. max-height: 100%;
  13. }
  14. perfect-scrollbar[hidden] {
  15. display: none;
  16. }
  17. perfect-scrollbar[fxflex] {
  18. display: flex;
  19. flex-direction: column;
  20. height: auto;
  21. min-width: 0;
  22. min-height: 0;
  23. -webkit-box-direction: column;
  24. -webkit-box-orient: column;
  25. }
  26. perfect-scrollbar[fxflex] > .ps {
  27. -ms-flex: 1 1 auto;
  28. flex: 1 1 auto;
  29. width: auto;
  30. height: auto;
  31. min-width: 0;
  32. min-height: 0;
  33. -webkit-box-flex: 1;
  34. }
  35. perfect-scrollbar[fxlayout] > .ps,
  36. perfect-scrollbar[fxlayout] > .ps > .ps-content {
  37. display: flex;
  38. -ms-flex: 1 1 auto;
  39. flex: 1 1 auto;
  40. flex-direction: inherit;
  41. align-items: inherit;
  42. align-content: inherit;
  43. justify-content: inherit;
  44. width: 100%;
  45. height: 100%;
  46. -webkit-box-align: inherit;
  47. -webkit-box-direction: inherit;
  48. -webkit-box-flex: 1;
  49. -webkit-box-orient: inherit;
  50. -webkit-box-pack: inherit;
  51. }
  52. perfect-scrollbar[fxlayout='row'] > .ps,
  53. perfect-scrollbar[fxlayout='row'] > .ps > .ps-content, {
  54. flex-direction: row !important;
  55. -webkit-box-direction: row !important;
  56. -webkit-box-orient: row !important;
  57. }
  58. perfect-scrollbar[fxlayout='column'] > .ps,
  59. perfect-scrollbar[fxlayout='column'] > .ps > .ps-content {
  60. flex-direction: column !important;
  61. -webkit-box-direction: column !important;
  62. -webkit-box-orient: column !important;
  63. }
  64. perfect-scrollbar > .ps {
  65. position: static;
  66. display: block;
  67. width: inherit;
  68. height: inherit;
  69. max-width: inherit;
  70. max-height: inherit;
  71. }
  72. perfect-scrollbar > .ps textarea {
  73. -ms-overflow-style: scrollbar;
  74. }
  75. perfect-scrollbar > .ps > .ps-overlay {
  76. position: absolute;
  77. top: 0;
  78. right: 0;
  79. bottom: 0;
  80. left: 0;
  81. display: block;
  82. overflow: hidden;
  83. pointer-events: none;
  84. }
  85. perfect-scrollbar > .ps > .ps-overlay .ps-indicator-top,
  86. perfect-scrollbar > .ps > .ps-overlay .ps-indicator-left,
  87. perfect-scrollbar > .ps > .ps-overlay .ps-indicator-right,
  88. perfect-scrollbar > .ps > .ps-overlay .ps-indicator-bottom {
  89. position: absolute;
  90. opacity: 0;
  91. transition: opacity 300ms ease-in-out;
  92. }
  93. perfect-scrollbar > .ps > .ps-overlay .ps-indicator-top,
  94. perfect-scrollbar > .ps > .ps-overlay .ps-indicator-bottom {
  95. left: 0;
  96. min-width: 100%;
  97. min-height: 24px;
  98. }
  99. perfect-scrollbar > .ps > .ps-overlay .ps-indicator-left,
  100. perfect-scrollbar > .ps > .ps-overlay .ps-indicator-right {
  101. top: 0;
  102. min-width: 24px;
  103. min-height: 100%;
  104. }
  105. perfect-scrollbar > .ps > .ps-overlay .ps-indicator-top {
  106. top: 0;
  107. }
  108. perfect-scrollbar > .ps > .ps-overlay .ps-indicator-left {
  109. left: 0;
  110. }
  111. perfect-scrollbar > .ps > .ps-overlay .ps-indicator-right {
  112. right: 0;
  113. }
  114. perfect-scrollbar > .ps > .ps-overlay .ps-indicator-bottom {
  115. bottom: 0;
  116. }
  117. perfect-scrollbar > .ps.ps--active-y > .ps__rail-y {
  118. top: 0 !important;
  119. right: 0 !important;
  120. left: auto !important;
  121. width: 10px;
  122. cursor: default;
  123. transition:
  124. width 200ms linear,
  125. opacity 200ms linear,
  126. background-color 200ms linear;
  127. }
  128. perfect-scrollbar > .ps.ps--active-y > .ps__rail-y:hover,
  129. perfect-scrollbar > .ps.ps--active-y > .ps__rail-y.ps--clicking {
  130. width: 15px;
  131. }
  132. perfect-scrollbar > .ps.ps--active-x > .ps__rail-x {
  133. top: auto !important;
  134. bottom: 0 !important;
  135. left: 0 !important;
  136. height: 10px;
  137. cursor: default;
  138. transition:
  139. height 200ms linear,
  140. opacity 200ms linear,
  141. background-color 200ms linear;
  142. }
  143. perfect-scrollbar > .ps.ps--active-x > .ps__rail-x:hover,
  144. perfect-scrollbar > .ps.ps--active-x > .ps__rail-x.ps--clicking {
  145. height: 15px;
  146. }
  147. perfect-scrollbar > .ps.ps--active-x.ps--active-y > .ps__rail-y {
  148. margin: 0 0 10px;
  149. }
  150. perfect-scrollbar > .ps.ps--active-x.ps--active-y > .ps__rail-x {
  151. margin: 0 10px 0 0;
  152. }
  153. perfect-scrollbar > .ps.ps--scrolling-y > .ps__rail-y,
  154. perfect-scrollbar > .ps.ps--scrolling-x > .ps__rail-x {
  155. opacity: 0.9;
  156. background-color: #eee;
  157. }
  158. perfect-scrollbar.ps-show-always > .ps.ps--active-y > .ps__rail-y,
  159. perfect-scrollbar.ps-show-always > .ps.ps--active-x > .ps__rail-x {
  160. opacity: 0.6;
  161. }
  162. perfect-scrollbar.ps-show-active > .ps.ps--active-y > .ps-overlay:not(.ps-at-top) .ps-indicator-top {
  163. opacity: 1;
  164. background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%);
  165. }
  166. perfect-scrollbar.ps-show-active > .ps.ps--active-y > .ps-overlay:not(.ps-at-bottom) .ps-indicator-bottom {
  167. opacity: 1;
  168. background: linear-gradient(to top, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%);
  169. }
  170. perfect-scrollbar.ps-show-active > .ps.ps--active-x > .ps-overlay:not(.ps-at-left) .ps-indicator-left {
  171. opacity: 1;
  172. background: linear-gradient(to right, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%);
  173. }
  174. perfect-scrollbar.ps-show-active > .ps.ps--active-x > .ps-overlay:not(.ps-at-right) .ps-indicator-right {
  175. opacity: 1;
  176. background: linear-gradient(to left, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%);
  177. }
  178. perfect-scrollbar.ps-show-active.ps-show-limits > .ps.ps--active-y > .ps-overlay.ps-at-top .ps-indicator-top {
  179. background: linear-gradient(to bottom, rgba(170, 170, 170, 0.5) 0%, rgba(170, 170, 170, 0) 100%);
  180. }
  181. perfect-scrollbar.ps-show-active.ps-show-limits > .ps.ps--active-y > .ps-overlay.ps-at-bottom .ps-indicator-bottom {
  182. background: linear-gradient(to top, rgba(170, 170, 170, 0.5) 0%, rgba(170, 170, 170, 0) 100%);
  183. }
  184. perfect-scrollbar.ps-show-active.ps-show-limits > .ps.ps--active-x > .ps-overlay.ps-at-left .ps-indicator-left {
  185. background: linear-gradient(to right, rgba(170, 170, 170, 0.5) 0%, rgba(170, 170, 170, 0) 100%);
  186. }
  187. perfect-scrollbar.ps-show-active.ps-show-limits > .ps.ps--active-x > .ps-overlay.ps-at-right .ps-indicator-right {
  188. background: linear-gradient(to left, rgba(170, 170, 170, 0.5) 0%, rgba(170, 170, 170, 0) 100%);
  189. }
  190. perfect-scrollbar.ps-show-active.ps-show-limits > .ps.ps--active-y > .ps-overlay.ps-at-top .ps-indicator-top.ps-indicator-show,
  191. perfect-scrollbar.ps-show-active.ps-show-limits > .ps.ps--active-y > .ps-overlay.ps-at-bottom .ps-indicator-bottom.ps-indicator-show,
  192. perfect-scrollbar.ps-show-active.ps-show-limits > .ps.ps--active-x > .ps-overlay.ps-at-left .ps-indicator-left.ps-indicator-show,
  193. perfect-scrollbar.ps-show-active.ps-show-limits > .ps.ps--active-x > .ps-overlay.ps-at-right .ps-indicator-right.ps-indicator-show {
  194. opacity: 1;
  195. }