mixin.scss 958 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. @mixin clearfix {
  2. &:after {
  3. content: '';
  4. display: table;
  5. clear: both;
  6. }
  7. }
  8. @mixin scrollBar {
  9. &::-webkit-scrollbar-track-piece {
  10. background: #d3dce6;
  11. }
  12. &::-webkit-scrollbar {
  13. width: 6px;
  14. height: 6px;
  15. }
  16. &::-webkit-scrollbar-thumb {
  17. background: #99a9bf;
  18. border-radius: 20px;
  19. }
  20. }
  21. @mixin relative {
  22. position: relative;
  23. width: 100%;
  24. height: 100%;
  25. }
  26. @mixin font-style($fontSize, $lineHeight, $height) {
  27. font-size: $fontSize;
  28. line-height: $lineHeight;
  29. height: $height;
  30. }
  31. @mixin base-scroll-bar {
  32. -webkit-overflow-scrolling: touch;
  33. &::-webkit-scrollbar {
  34. width: 8px;
  35. height: 8px;
  36. border-radius: 5px;
  37. }
  38. &::-webkit-scrollbar-thumb {
  39. background: rgba(221, 221, 221, 0.7);
  40. border-radius: 10px;
  41. }
  42. &::-webkit-scrollbar-track {
  43. background: rgba(#ececec, 0.35);
  44. border-radius: 2px;
  45. }
  46. &::-webkit-scrollbar-track-piece {
  47. background: rgba(#ececec, 0.35);
  48. }
  49. }