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.

203 lines
4.6 KiB

  1. /**********************************************************************************
  2. *
  3. * Copyright (c) 2017-2019 MuK IT GmbH.
  4. *
  5. * This file is part of MuK Web Utils
  6. * (see https://mukit.at).
  7. *
  8. * This program is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU Lesser General Public License as published by
  10. * the Free Software Foundation, either version 3 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU Lesser General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU Lesser General Public License
  19. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  20. *
  21. **********************************************************************************/
  22. [data-simplebar] {
  23. position: relative;
  24. flex-direction: column;
  25. flex-wrap: wrap;
  26. justify-content: flex-start;
  27. align-content: flex-start;
  28. align-items: flex-start;
  29. width: inherit;
  30. height: inherit;
  31. max-width: inherit;
  32. max-height: inherit;
  33. }
  34. .simplebar-wrapper {
  35. overflow: hidden;
  36. width: inherit;
  37. height: inherit;
  38. max-width: inherit;
  39. max-height: inherit;
  40. }
  41. .simplebar-mask {
  42. direction: inherit;
  43. position: absolute;
  44. overflow: hidden;
  45. padding: 0;
  46. margin: 0;
  47. left: 0;
  48. top: 0;
  49. bottom: 0;
  50. right: 0;
  51. width: auto !important;
  52. height: auto !important;
  53. z-index: 0;
  54. }
  55. .simplebar-offset {
  56. direction: inherit !important;
  57. box-sizing: inherit !important;
  58. resize: none !important;
  59. position: absolute;
  60. top: 0;
  61. left: 0;
  62. bottom: 0;
  63. right: 0;
  64. padding: 0;
  65. margin: 0;
  66. -webkit-overflow-scrolling: touch;
  67. }
  68. .simplebar-content {
  69. direction: inherit;
  70. box-sizing: border-box !important;
  71. position: relative;
  72. display: block;
  73. height: 100%; /* Required for horizontal native scrollbar to not appear if parent is taller than natural height */
  74. width: auto;
  75. visibility: visible;
  76. overflow: scroll; /* Scroll on this element otherwise element can't have a padding applied properly */
  77. max-width: 100%; /* Not required for horizontal scroll to trigger */
  78. max-height: 100%; /* Needed for vertical scroll to trigger */
  79. }
  80. .simplebar-placeholder {
  81. max-height: 100%;
  82. max-width: 100%;
  83. width: 100%;
  84. pointer-events: none;
  85. }
  86. .simplebar-height-auto-observer-wrapper {
  87. box-sizing: inherit !important;
  88. height: 100%;
  89. width: inherit;
  90. max-width: 1px;
  91. position: relative;
  92. float: left;
  93. max-height: 1px;
  94. overflow: hidden;
  95. z-index: -1;
  96. padding: 0;
  97. margin: 0;
  98. pointer-events: none;
  99. flex-grow: inherit;
  100. flex-shrink: 0;
  101. flex-basis: 0;
  102. }
  103. .simplebar-height-auto-observer {
  104. box-sizing: inherit;
  105. display: block;
  106. opacity: 0;
  107. position: absolute;
  108. top: 0;
  109. left: 0;
  110. height: 1000%;
  111. width: 1000%;
  112. min-height: 1px;
  113. min-width: 1px;
  114. overflow: hidden;
  115. pointer-events: none;
  116. z-index: -1;
  117. }
  118. .simplebar-track {
  119. z-index: 1;
  120. position: absolute;
  121. right: 0;
  122. bottom: 0;
  123. pointer-events: none;
  124. }
  125. .simplebar-scrollbar {
  126. position: absolute;
  127. right: 2px;
  128. width: 7px;
  129. min-height: 10px;
  130. }
  131. .simplebar-scrollbar:before {
  132. position: absolute;
  133. content: "";
  134. background: black;
  135. border-radius: 7px;
  136. left: 0;
  137. right: 0;
  138. opacity: 0;
  139. transition: opacity 0.2s linear;
  140. }
  141. .simplebar-track .simplebar-scrollbar.simplebar-visible:before {
  142. /* When hovered, remove all transitions from drag handle */
  143. opacity: 0.5;
  144. transition: opacity 0s linear;
  145. }
  146. .simplebar-track.simplebar-vertical {
  147. top: 0;
  148. width: 11px;
  149. }
  150. .simplebar-track.simplebar-vertical .simplebar-scrollbar:before {
  151. top: 2px;
  152. bottom: 2px;
  153. }
  154. .simplebar-track.simplebar-horizontal {
  155. left: 0;
  156. height: 11px;
  157. }
  158. .simplebar-track.simplebar-horizontal .simplebar-scrollbar:before {
  159. height: 100%;
  160. left: 2px;
  161. right: 2px;
  162. }
  163. .simplebar-track.simplebar-horizontal .simplebar-scrollbar {
  164. right: auto;
  165. left: 0;
  166. top: 2px;
  167. height: 7px;
  168. min-height: 0;
  169. min-width: 10px;
  170. width: auto;
  171. }
  172. /* Rtl support */
  173. [data-simplebar-direction="rtl"] .simplebar-track.simplebar-vertical {
  174. right: auto;
  175. left: 0;
  176. }
  177. .hs-dummy-scrollbar-size {
  178. direction: rtl;
  179. position: fixed;
  180. opacity: 0;
  181. visibility: hidden;
  182. height: 500px;
  183. width: 500px;
  184. overflow-y: hidden;
  185. overflow-x: scroll;
  186. }