SimplbeBar.styles.js 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.SimpleBarStyle = void 0;
  4. const lit_element_1 = require("lit-element");
  5. exports.SimpleBarStyle = lit_element_1.css `
  6. [data-simplebar] {
  7. position: relative;
  8. flex-direction: column;
  9. flex-wrap: wrap;
  10. justify-content: flex-start;
  11. align-content: flex-start;
  12. align-items: flex-start;
  13. }
  14. .simplebar-wrapper {
  15. overflow: hidden;
  16. width: inherit;
  17. height: inherit;
  18. max-width: inherit;
  19. max-height: inherit;
  20. }
  21. .simplebar-mask {
  22. direction: inherit;
  23. position: absolute;
  24. overflow: hidden;
  25. padding: 0;
  26. margin: 0;
  27. left: 0;
  28. top: 0;
  29. bottom: 0;
  30. right: 0;
  31. width: auto !important;
  32. height: auto !important;
  33. z-index: 0;
  34. }
  35. .simplebar-offset {
  36. direction: inherit !important;
  37. box-sizing: inherit !important;
  38. resize: none !important;
  39. position: absolute;
  40. top: 0;
  41. left: 0;
  42. bottom: 0;
  43. right: 0;
  44. padding: 0;
  45. margin: 0;
  46. -webkit-overflow-scrolling: touch;
  47. }
  48. .simplebar-content-wrapper {
  49. direction: inherit;
  50. box-sizing: border-box !important;
  51. position: relative;
  52. display: block;
  53. height: 100%; /* Required for horizontal native scrollbar to not appear if parent is taller than natural height */
  54. width: auto;
  55. max-width: 100%; /* Not required for horizontal scroll to trigger */
  56. max-height: 100%; /* Needed for vertical scroll to trigger */
  57. scrollbar-width: none;
  58. -ms-overflow-style: none;
  59. }
  60. .simplebar-content-wrapper::-webkit-scrollbar,
  61. .simplebar-hide-scrollbar::-webkit-scrollbar {
  62. width: 0;
  63. height: 0;
  64. }
  65. .simplebar-content:before,
  66. .simplebar-content:after {
  67. content: " ";
  68. display: table;
  69. }
  70. .simplebar-placeholder {
  71. max-height: 100%;
  72. max-width: 100%;
  73. width: 100%;
  74. pointer-events: none;
  75. }
  76. .simplebar-height-auto-observer-wrapper {
  77. box-sizing: inherit !important;
  78. height: 100%;
  79. width: 100%;
  80. max-width: 1px;
  81. position: relative;
  82. float: left;
  83. max-height: 1px;
  84. overflow: hidden;
  85. z-index: -1;
  86. padding: 0;
  87. margin: 0;
  88. pointer-events: none;
  89. flex-grow: inherit;
  90. flex-shrink: 0;
  91. flex-basis: 0;
  92. }
  93. .simplebar-height-auto-observer {
  94. box-sizing: inherit;
  95. display: block;
  96. opacity: 0;
  97. position: absolute;
  98. top: 0;
  99. left: 0;
  100. height: 1000%;
  101. width: 1000%;
  102. min-height: 1px;
  103. min-width: 1px;
  104. overflow: hidden;
  105. pointer-events: none;
  106. z-index: -1;
  107. }
  108. .simplebar-track {
  109. z-index: 1;
  110. position: absolute;
  111. right: 0;
  112. bottom: 0;
  113. pointer-events: none;
  114. overflow: hidden;
  115. }
  116. [data-simplebar].simplebar-dragging .simplebar-content {
  117. pointer-events: none;
  118. user-select: none;
  119. -webkit-user-select: none;
  120. }
  121. [data-simplebar].simplebar-dragging .simplebar-track {
  122. pointer-events: all;
  123. }
  124. .simplebar-scrollbar {
  125. position: absolute;
  126. left: 0;
  127. right: 0;
  128. min-height: 10px;
  129. }
  130. .simplebar-scrollbar:before {
  131. position: absolute;
  132. content: "";
  133. background: black;
  134. border-radius: 7px;
  135. left: 2px;
  136. right: 2px;
  137. opacity: 0;
  138. transition: opacity 0.2s linear;
  139. }
  140. .simplebar-scrollbar.simplebar-visible:before {
  141. /* When hovered, remove all transitions from drag handle */
  142. opacity: 0.5;
  143. transition: opacity 0s linear;
  144. }
  145. .simplebar-track.simplebar-vertical {
  146. top: 0;
  147. width: 11px;
  148. }
  149. .simplebar-track.simplebar-vertical .simplebar-scrollbar:before {
  150. top: 2px;
  151. bottom: 2px;
  152. }
  153. .simplebar-track.simplebar-horizontal {
  154. left: 0;
  155. height: 11px;
  156. }
  157. .simplebar-track.simplebar-horizontal .simplebar-scrollbar:before {
  158. height: 100%;
  159. left: 2px;
  160. right: 2px;
  161. }
  162. .simplebar-track.simplebar-horizontal .simplebar-scrollbar {
  163. right: auto;
  164. left: 0;
  165. top: 2px;
  166. height: 7px;
  167. min-height: 0;
  168. min-width: 10px;
  169. width: auto;
  170. }
  171. /* Rtl support */
  172. [data-simplebar-direction="rtl"] .simplebar-track.simplebar-vertical {
  173. right: auto;
  174. left: 0;
  175. }
  176. .hs-dummy-scrollbar-size {
  177. direction: rtl;
  178. position: fixed;
  179. opacity: 0;
  180. visibility: hidden;
  181. height: 500px;
  182. width: 500px;
  183. overflow-y: hidden;
  184. overflow-x: scroll;
  185. }
  186. .simplebar-hide-scrollbar {
  187. position: fixed;
  188. left: 0;
  189. visibility: hidden;
  190. overflow-y: scroll;
  191. scrollbar-width: none;
  192. -ms-overflow-style: none;
  193. }
  194. `;
  195. //# sourceMappingURL=SimplbeBar.styles.js.map