index.module.css 1019 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. .tab-list {
  2. --animate-duration: 150ms;
  3. --animate-mode: linear;
  4. position: relative;
  5. display: flex;
  6. width: 100%;
  7. padding-bottom: 2px;
  8. overflow: auto;
  9. /* stylelint-disable-next-line declaration-block-no-duplicate-properties */
  10. overflow: overlay;
  11. border-bottom: 1px solid #eee;
  12. &::-webkit-scrollbar {
  13. display: none;
  14. height: 4px;
  15. background-color: transparent;
  16. border-radius: 6px;
  17. transition: all 500ms linear;
  18. }
  19. &:hover::-webkit-scrollbar {
  20. display: block;
  21. }
  22. &::-webkit-scrollbar-thumb {
  23. cursor: pointer;
  24. background-color: #eee;
  25. border-radius: 6px;
  26. transition: background-color 500ms linear;
  27. &:hover {
  28. background-color: var(--primary-color);
  29. }
  30. }
  31. }
  32. .tab-indicator {
  33. position: absolute;
  34. bottom: 0;
  35. left: 0;
  36. width: 10px;
  37. height: 2px;
  38. background-color: var(--primary-color);
  39. border-radius: 2px;
  40. transition: width var(--animate-duration) var(--animate-mode),
  41. transform var(--animate-duration) var(--animate-mode);
  42. }