u-row-notice.wxss 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. @charset "UTF-8";
  2. /**
  3. * 下方引入的为uView UI的集成样式文件,为scss预处理器,其中包含了一些"u-"开头的自定义变量
  4. * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可
  5. * uView自定义的css类名和scss变量,均以"u-"开头,不会造成冲突,请放心使用
  6. */
  7. .u-notice-bar.data-v-d36ba0c0 {
  8. padding: 18rpx 24rpx;
  9. overflow: hidden;
  10. }
  11. .u-direction-row.data-v-d36ba0c0 {
  12. display: flex;
  13. flex-direction: row;
  14. align-items: center;
  15. justify-content: space-between;
  16. }
  17. .u-left-icon.data-v-d36ba0c0 {
  18. display: inline-flex;
  19. align-items: center;
  20. }
  21. .u-notice-box.data-v-d36ba0c0 {
  22. flex: 1;
  23. display: flex;
  24. flex-direction: row;
  25. overflow: hidden;
  26. margin-left: 12rpx;
  27. }
  28. .u-right-icon.data-v-d36ba0c0 {
  29. margin-left: 12rpx;
  30. display: inline-flex;
  31. align-items: center;
  32. }
  33. .u-notice-content.data-v-d36ba0c0 {
  34. -webkit-animation: u-loop-animation-data-v-d36ba0c0 10s linear infinite both;
  35. animation: u-loop-animation-data-v-d36ba0c0 10s linear infinite both;
  36. text-align: right;
  37. padding-left: 100%;
  38. display: flex;
  39. flex-direction: row;
  40. flex-wrap: nowrap;
  41. }
  42. .u-notice-text.data-v-d36ba0c0 {
  43. font-size: 26rpx;
  44. word-break: keep-all;
  45. white-space: nowrap;
  46. }
  47. @-webkit-keyframes u-loop-animation-data-v-d36ba0c0 {
  48. 0% {
  49. -webkit-transform: translate3d(0, 0, 0);
  50. transform: translate3d(0, 0, 0);
  51. }
  52. 100% {
  53. -webkit-transform: translate3d(-100%, 0, 0);
  54. transform: translate3d(-100%, 0, 0);
  55. }
  56. }
  57. @keyframes u-loop-animation-data-v-d36ba0c0 {
  58. 0% {
  59. -webkit-transform: translate3d(0, 0, 0);
  60. transform: translate3d(0, 0, 0);
  61. }
  62. 100% {
  63. -webkit-transform: translate3d(-100%, 0, 0);
  64. transform: translate3d(-100%, 0, 0);
  65. }
  66. }