u-notice-bar.wxss 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. .u-notice-bar-wrap.data-v-087a7280 {
  28. overflow: hidden;
  29. }
  30. .u-notice-bar.data-v-087a7280 {
  31. padding: 18rpx 24rpx;
  32. overflow: hidden;
  33. }
  34. .u-direction-row.data-v-087a7280 {
  35. display: flex;
  36. flex-direction: row;
  37. align-items: center;
  38. justify-content: space-between;
  39. }
  40. .u-left-icon.data-v-087a7280 {
  41. display: flex;
  42. flex-direction: row;
  43. align-items: center;
  44. }
  45. .u-notice-box.data-v-087a7280 {
  46. flex: 1;
  47. display: flex;
  48. flex-direction: row;
  49. overflow: hidden;
  50. margin-left: 12rpx;
  51. }
  52. .u-right-icon.data-v-087a7280 {
  53. margin-left: 12rpx;
  54. display: flex;
  55. flex-direction: row;
  56. align-items: center;
  57. }
  58. .u-notice-content.data-v-087a7280 {
  59. line-height: 1;
  60. white-space: nowrap;
  61. font-size: 26rpx;
  62. -webkit-animation: u-loop-animation-data-v-087a7280 10s linear infinite both;
  63. animation: u-loop-animation-data-v-087a7280 10s linear infinite both;
  64. text-align: right;
  65. padding-left: 100%;
  66. }
  67. @-webkit-keyframes u-loop-animation-data-v-087a7280 {
  68. 0% {
  69. -webkit-transform: translate3d(0, 0, 0);
  70. transform: translate3d(0, 0, 0);
  71. }
  72. 100% {
  73. -webkit-transform: translate3d(-100%, 0, 0);
  74. transform: translate3d(-100%, 0, 0);
  75. }
  76. }
  77. @keyframes u-loop-animation-data-v-087a7280 {
  78. 0% {
  79. -webkit-transform: translate3d(0, 0, 0);
  80. transform: translate3d(0, 0, 0);
  81. }
  82. 100% {
  83. -webkit-transform: translate3d(-100%, 0, 0);
  84. transform: translate3d(-100%, 0, 0);
  85. }
  86. }