index.scss 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. .u-notice {
  2. @include flex;
  3. align-items: center;
  4. justify-content: space-between;
  5. margin-bottom: 16rpx;
  6. &__left-icon {
  7. align-items: center;
  8. margin-right: 5px;
  9. }
  10. &__right-icon {
  11. margin-left: 5px;
  12. align-items: center;
  13. }
  14. &__content {
  15. text-align: right;
  16. flex: 1;
  17. @include flex;
  18. flex-wrap: nowrap;
  19. overflow: hidden;
  20. &__text {
  21. font-size: 14px;
  22. color: $u-warning;
  23. /* #ifndef APP-NVUE */
  24. // 这一句很重要,为了能让滚动左右连接起来
  25. padding-left: 100%;
  26. word-break: keep-all;
  27. white-space: nowrap;
  28. animation: u-loop-animation 10s linear infinite both;
  29. /* #endif */
  30. @include flex(row);
  31. }
  32. }
  33. }
  34. @keyframes u-loop-animation {
  35. 0% {
  36. transform: translate3d(0, 0, 0);
  37. }
  38. 100% {
  39. transform: translate3d(-100%, 0, 0);
  40. }
  41. }
  42. .itemBox{
  43. // height: 300rpx;
  44. .item{
  45. background: #E9EBEE;
  46. border-radius: 40rpx;
  47. padding: 0rpx 48rpx;
  48. margin-right: 16rpx;
  49. height: 56rpx;
  50. font-size: 24rpx;
  51. font-family: PingFang-SC-Medium, PingFang-SC;
  52. font-weight: 500;
  53. color: #333333;
  54. line-height: 56rpx;
  55. }
  56. }