gemini-scrollbar.css 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. /**
  2. * gemini-scrollbar
  3. * @version 1.5.3
  4. * @link http://noeldelgado.github.io/gemini-scrollbar/
  5. * @license MIT
  6. */
  7. /* disable selection while dragging */
  8. .gm-scrollbar-disable-selection {
  9. -webkit-touch-callout: none;
  10. -webkit-user-select: none;
  11. -khtml-user-select: none;
  12. -moz-user-select: none;
  13. -ms-user-select: none;
  14. user-select: none;
  15. }
  16. /* fallback for native floating scrollbars */
  17. .gm-prevented {
  18. -webkit-overflow-scrolling: touch;
  19. }
  20. .gm-prevented > .gm-scrollbar {
  21. display: none;
  22. }
  23. /* actual gemini-scrollbar styles */
  24. .gm-scrollbar-container {
  25. position: relative;
  26. overflow: hidden!important;
  27. width: 100%;
  28. height: 100%;
  29. }
  30. .gm-scrollbar {
  31. position: absolute;
  32. right: 2px;
  33. bottom: 2px;
  34. z-index: 1;
  35. border-radius: 3px;
  36. }
  37. .gm-scrollbar.-vertical {
  38. width: 6px;
  39. top: 2px;
  40. }
  41. .gm-scrollbar.-horizontal {
  42. height: 6px;
  43. left: 2px;
  44. }
  45. .gm-scrollbar .thumb {
  46. position: relative;
  47. display: block;
  48. width: 0;
  49. height: 0;
  50. cursor: pointer;
  51. border-radius: inherit;
  52. background-color: rgba(0,0,0,.2);
  53. transform: translate3d(0,0,0);
  54. }
  55. .gm-scrollbar .thumb:hover,
  56. .gm-scrollbar .thumb:active {
  57. background-color: rgba(0,0,0,.3);
  58. }
  59. .gm-scrollbar.-vertical .thumb {
  60. width: 100%;
  61. }
  62. .gm-scrollbar.-horizontal .thumb {
  63. height: 100%;
  64. }
  65. .gm-scrollbar-container .gm-scroll-view {
  66. width: 100%;
  67. height: 100%;
  68. overflow: scroll;
  69. transform: translate3d(0,0,0);
  70. -webkit-overflow-scrolling: touch;
  71. }
  72. /* @option: autoshow */
  73. .gm-scrollbar-container.gm-autoshow .gm-scrollbar {
  74. opacity: 0;
  75. transition: opacity 120ms ease-out;
  76. }
  77. .gm-scrollbar-container.gm-autoshow:hover > .gm-scrollbar,
  78. .gm-scrollbar-container.gm-autoshow:active > .gm-scrollbar,
  79. .gm-scrollbar-container.gm-autoshow:focus > .gm-scrollbar {
  80. opacity: 1;
  81. transition: opacity 340ms ease-out;
  82. }
  83. .gm-resize-trigger {
  84. position: absolute;
  85. display: block;
  86. top: 0;
  87. left: 0;
  88. height: 100%;
  89. width: 100%;
  90. overflow: hidden;
  91. pointer-events: none;
  92. z-index: -1;
  93. opacity: 0;
  94. }