u-row-notice.wxss 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. @charset "UTF-8";
  2. /**
  3. * 这里是uni-app内置的常用样式变量
  4. *
  5. * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
  6. * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
  7. *
  8. */
  9. /**
  10. * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
  11. *
  12. * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
  13. */
  14. /* 颜色变量 */
  15. /* 行为相关颜色 */
  16. /* 文字基本颜色 */
  17. /* 背景颜色 */
  18. /* 边框颜色 */
  19. /* 尺寸变量 */
  20. /* 文字尺寸 */
  21. /* 图片尺寸 */
  22. /* Border Radius */
  23. /* 水平间距 */
  24. /* 垂直间距 */
  25. /* 透明度 */
  26. /* 文章场景相关 */
  27. /* uni.scss */
  28. .u-notice-bar.data-v-d36ba0c0 {
  29. padding: 18rpx 24rpx;
  30. overflow: hidden;
  31. }
  32. .u-direction-row.data-v-d36ba0c0 {
  33. display: -webkit-box;
  34. display: -webkit-flex;
  35. display: flex;
  36. -webkit-box-orient: horizontal;
  37. -webkit-box-direction: normal;
  38. -webkit-flex-direction: row;
  39. flex-direction: row;
  40. -webkit-box-align: center;
  41. -webkit-align-items: center;
  42. align-items: center;
  43. -webkit-box-pack: justify;
  44. -webkit-justify-content: space-between;
  45. justify-content: space-between;
  46. }
  47. .u-left-icon.data-v-d36ba0c0 {
  48. display: -webkit-inline-box;
  49. display: -webkit-inline-flex;
  50. display: inline-flex;
  51. -webkit-box-align: center;
  52. -webkit-align-items: center;
  53. align-items: center;
  54. }
  55. .u-notice-box.data-v-d36ba0c0 {
  56. -webkit-box-flex: 1;
  57. -webkit-flex: 1;
  58. flex: 1;
  59. display: -webkit-box;
  60. display: -webkit-flex;
  61. display: flex;
  62. -webkit-box-orient: horizontal;
  63. -webkit-box-direction: normal;
  64. -webkit-flex-direction: row;
  65. flex-direction: row;
  66. overflow: hidden;
  67. margin-left: 12rpx;
  68. }
  69. .u-right-icon.data-v-d36ba0c0 {
  70. margin-left: 12rpx;
  71. display: -webkit-inline-box;
  72. display: -webkit-inline-flex;
  73. display: inline-flex;
  74. -webkit-box-align: center;
  75. -webkit-align-items: center;
  76. align-items: center;
  77. }
  78. .u-notice-content.data-v-d36ba0c0 {
  79. -webkit-animation: u-loop-animation-data-v-d36ba0c0 10s linear infinite both;
  80. animation: u-loop-animation-data-v-d36ba0c0 10s linear infinite both;
  81. text-align: right;
  82. padding-left: 100%;
  83. display: -webkit-box;
  84. display: -webkit-flex;
  85. display: flex;
  86. -webkit-box-orient: horizontal;
  87. -webkit-box-direction: normal;
  88. -webkit-flex-direction: row;
  89. flex-direction: row;
  90. -webkit-flex-wrap: nowrap;
  91. flex-wrap: nowrap;
  92. }
  93. .u-notice-text.data-v-d36ba0c0 {
  94. font-size: 26rpx;
  95. word-break: keep-all;
  96. white-space: nowrap;
  97. }
  98. @-webkit-keyframes u-loop-animation-data-v-d36ba0c0 {
  99. 0% {
  100. -webkit-transform: translate3d(0, 0, 0);
  101. transform: translate3d(0, 0, 0);
  102. }
  103. 100% {
  104. -webkit-transform: translate3d(-100%, 0, 0);
  105. transform: translate3d(-100%, 0, 0);
  106. }
  107. }
  108. @keyframes u-loop-animation-data-v-d36ba0c0 {
  109. 0% {
  110. -webkit-transform: translate3d(0, 0, 0);
  111. transform: translate3d(0, 0, 0);
  112. }
  113. 100% {
  114. -webkit-transform: translate3d(-100%, 0, 0);
  115. transform: translate3d(-100%, 0, 0);
  116. }
  117. }