perfect-scrollbar.css 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. .ps-container .ps-scrollbar-x-rail {
  2. position: absolute; /* please don't change 'position' */
  3. bottom: 3px; /* there must be 'bottom' for ps-scrollbar-x-rail */
  4. height: 5px;
  5. -webkit-border-radius: 4px;
  6. -moz-border-radius: 4px;
  7. border-radius: 4px;
  8. opacity: 0;
  9. filter: alpha(opacity = 0);
  10. -o-transition: background-color .2s linear, opacity .2s linear;
  11. -webkit-transition: background-color .2s linear, opacity .2s linear;
  12. -moz-transition: background-color .2s linear, opacity .2s linear;
  13. transition: background-color .2s linear, opacity .2s linear;
  14. z-index:10;
  15. }
  16. .ps-container:hover .ps-scrollbar-x-rail,
  17. .ps-container.hover .ps-scrollbar-x-rail {
  18. opacity: 0.6;
  19. filter: alpha(opacity = 60);
  20. }
  21. .ps-container .ps-scrollbar-x-rail:hover,
  22. .ps-container .ps-scrollbar-x-rail.hover {
  23. background-color: #eee;
  24. opacity: 0.9;
  25. filter: alpha(opacity = 90);
  26. }
  27. .ps-container .ps-scrollbar-x-rail.in-scrolling {
  28. background-color: #eee;
  29. opacity: 0.9;
  30. filter: alpha(opacity = 90);
  31. }
  32. .ps-container .ps-scrollbar-y-rail {
  33. position: absolute; /* please don't change 'position' */
  34. right: 3px; /* there must be 'right' for ps-scrollbar-y-rail */
  35. width: 5px;
  36. -webkit-border-radius: 4px;
  37. -moz-border-radius: 4px;
  38. border-radius: 4px;
  39. opacity: 0;
  40. filter: alpha(opacity = 0);
  41. -o-transition: background-color .2s linear, opacity .2s linear;
  42. -webkit-transition: background-color .2s linear, opacity .2s linear;
  43. -moz-transition: background-color .2s linear, opacity .2s linear;
  44. transition: background-color .2s linear, opacity .2s linear;
  45. z-index:10;
  46. }
  47. .ps-container:hover .ps-scrollbar-y-rail,
  48. .ps-container.hover .ps-scrollbar-y-rail {
  49. opacity: 0.6;
  50. filter: alpha(opacity = 60);
  51. }
  52. .ps-container .ps-scrollbar-y-rail:hover,
  53. .ps-container .ps-scrollbar-y-rail.hover {
  54. background-color: #eee;
  55. opacity: 0.9;
  56. filter: alpha(opacity = 90);
  57. }
  58. .ps-container .ps-scrollbar-y-rail.in-scrolling {
  59. background-color: #eee;
  60. opacity: 0.9;
  61. filter: alpha(opacity = 90);
  62. }
  63. .ps-container .ps-scrollbar-x {
  64. position: absolute; /* please don't change 'position' */
  65. bottom: 0; /* there must be 'bottom' for ps-scrollbar-x */
  66. height: 5px;
  67. background-color: #aaa;
  68. -webkit-border-radius: 4px;
  69. -moz-border-radius: 4px;
  70. border-radius: 4px;
  71. -o-transition: background-color .2s linear;
  72. -webkit-transition: background-color.2s linear;
  73. -moz-transition: background-color .2s linear;
  74. transition: background-color .2s linear;
  75. }
  76. .ps-container.ie6 .ps-scrollbar-x {
  77. font-size: 0; /* fixed scrollbar height in xp sp3 ie6 */
  78. }
  79. .ps-container .ps-scrollbar-x-rail:hover .ps-scrollbar-x,
  80. .ps-container .ps-scrollbar-x-rail.hover .ps-scrollbar-x {
  81. background-color: #999;
  82. }
  83. .ps-container .ps-scrollbar-y {
  84. position: absolute; /* please don't change 'position' */
  85. right: 0; /* there must be 'right' for ps-scrollbar-y */
  86. width: 5px;
  87. background-color: #aaa;
  88. -webkit-border-radius: 4px;
  89. -moz-border-radius: 4px;
  90. border-radius: 4px;
  91. -o-transition: background-color .2s linear;
  92. -webkit-transition: background-color.2s linear;
  93. -moz-transition: background-color .2s linear;
  94. transition: background-color .2s linear;
  95. }
  96. .ps-container.ie6 .ps-scrollbar-y {
  97. font-size: 0; /* fixed scrollbar height in xp sp3 ie6 */
  98. }
  99. .ps-container .ps-scrollbar-y-rail:hover .ps-scrollbar-y,
  100. .ps-container .ps-scrollbar-y-rail.hover .ps-scrollbar-y {
  101. background-color: #999;
  102. }
  103. .ps-container.ie .ps-scrollbar-x,
  104. .ps-container.ie .ps-scrollbar-y {
  105. visibility: hidden;
  106. }
  107. .ps-container.ie:hover .ps-scrollbar-x,
  108. .ps-container.ie:hover .ps-scrollbar-y,
  109. .ps-container.ie.hover .ps-scrollbar-x,
  110. .ps-container.ie.hover .ps-scrollbar-y {
  111. visibility: visible;
  112. }