index.scss 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. @import './tools';
  2. @import './ui';
  3. /* 字体文件 */
  4. @font-face {
  5. font-family: OPPOSANS;
  6. src: url('~@/sheep/scss/font/OPPOSANS-M-subfont.ttf');
  7. }
  8. .font-OPPOSANS {
  9. font-family: OPPOSANS;
  10. }
  11. page {
  12. -webkit-overflow-scrolling: touch; // 解决ios滑动不流畅
  13. height: 100%;
  14. width: 100%;
  15. // font-family: OPPOSANS;
  16. word-break: break-all; //英文文本不换行
  17. white-space: normal;
  18. background-color: $bg-page;
  19. color: $dark-3;
  20. }
  21. ::-webkit-scrollbar {
  22. width: 0;
  23. height: 0;
  24. color: transparent;
  25. display: none;
  26. }
  27. .points-red,
  28. .points-green {
  29. position: relative;
  30. width: 40rpx;
  31. height: 40rpx;
  32. margin-right: 4rpx;
  33. &::before {
  34. content: '积';
  35. color: #fff;
  36. font-size: 24rpx;
  37. position: absolute;
  38. display: flex;
  39. justify-content: center;
  40. align-items: center;
  41. width: 100%;
  42. height: 100%;
  43. border-radius: 50%;
  44. background-color: #FF4D4F; // 红色背景
  45. }
  46. }
  47. .points-green {
  48. &::before {
  49. background-color: #52C41A; // 绿色背景
  50. content: '积';
  51. }
  52. }