scroll.scss 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /* Common Scroll bar */
  2. /* PC Scrollbar */
  3. @mixin pc-hide-scrollbar(){
  4. &::-webkit-scrollbar {
  5. width: 5px;
  6. height: 5px;
  7. }
  8. &::-webkit-scrollbar-thumb {
  9. background: transparent;
  10. &:hover {
  11. background: transparent;
  12. }
  13. }
  14. &::-webkit-scrollbar-track {
  15. background: transparent;
  16. }
  17. }
  18. @mixin pc-fix-scrollbar(){
  19. &::-webkit-scrollbar {
  20. width: 5px;
  21. height: 5px;
  22. }
  23. &::-webkit-scrollbar-thumb {
  24. background: #707070;
  25. border-radius: 3px;
  26. &:hover {
  27. background: #e0e0e0;
  28. }
  29. }
  30. &::-webkit-scrollbar-track {
  31. background: transparent;
  32. }
  33. }
  34. @mixin pc-fix-scrollbar-white(){
  35. &::-webkit-scrollbar {
  36. width: 5px;
  37. height: 5px;
  38. }
  39. &::-webkit-scrollbar-thumb {
  40. background: #d6d6d6;
  41. opacity: .7;
  42. border-radius: 3px;
  43. &:hover {
  44. background: #707070;
  45. }
  46. }
  47. &::-webkit-scrollbar-track {
  48. background: transparent;
  49. }
  50. }
  51. .vertical-scroll {
  52. overflow-y: scroll;
  53. @include pc-fix-scrollbar-white();
  54. }