activity.wxss 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. /**
  2. * 这里是uni-app内置的常用样式变量
  3. *
  4. * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
  5. * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
  6. *
  7. */
  8. /**
  9. * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
  10. *
  11. * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
  12. */
  13. /* 颜色变量 */
  14. /* 行为相关颜色 */
  15. /* 文字基本颜色 */
  16. /* 背景颜色 */
  17. /* 边框颜色 */
  18. /* 尺寸变量 */
  19. /* 文字尺寸 */
  20. /* 图片尺寸 */
  21. /* Border Radius */
  22. /* 水平间距 */
  23. /* 垂直间距 */
  24. /* 透明度 */
  25. /* 文章场景相关 */
  26. .container.data-v-da48f91d {
  27. padding: 20rpx 18rpx;
  28. min-height: 100vh;
  29. font-size: 28rpx;
  30. }
  31. .container .top.data-v-da48f91d {
  32. display: flex;
  33. justify-content: space-between;
  34. }
  35. .container .top .top_search.data-v-da48f91d {
  36. display: flex;
  37. align-items: center;
  38. padding: 0 25rpx;
  39. width: 491rpx;
  40. height: 80rpx;
  41. border-radius: 145rpx;
  42. border: 2rpx solid #e5e5e5;
  43. background-color: #f5f5f5;
  44. }
  45. .container .top .top_search .input.data-v-da48f91d {
  46. margin-left: 20rpx;
  47. font-size: 28rpx;
  48. }
  49. .container .top .top_btn.data-v-da48f91d {
  50. display: flex;
  51. align-items: center;
  52. justify-content: space-between;
  53. padding: 18rpx;
  54. width: 196rpx;
  55. height: 70rpx;
  56. color: #fff;
  57. border-radius: 68rpx;
  58. background-color: #007aff;
  59. }
  60. .container .control.data-v-da48f91d {
  61. margin-top: 15rpx;
  62. }
  63. .container .list.data-v-da48f91d {
  64. margin-top: 20rpx;
  65. }
  66. .container .list .list_box.data-v-da48f91d {
  67. display: flex;
  68. flex-direction: column;
  69. justify-content: space-between;
  70. padding: 30rpx 25rpx;
  71. margin-bottom: 20rpx;
  72. width: 714rpx;
  73. height: 344rpx;
  74. border-radius: 28rpx;
  75. box-shadow: 0 4rpx 35rpx #d3d3d3;
  76. background-color: #fff;
  77. }
  78. .container .list .list_box .box_top.data-v-da48f91d {
  79. display: flex;
  80. justify-content: space-between;
  81. }
  82. .container .list .list_box .box_top .img.data-v-da48f91d {
  83. margin-right: 24rpx;
  84. width: 249rpx;
  85. height: 168rpx;
  86. border-radius: 8rpx;
  87. }
  88. .container .list .list_box .box_top .top_msg.data-v-da48f91d {
  89. display: flex;
  90. flex-direction: column;
  91. justify-content: space-between;
  92. flex: 1;
  93. font-size: 24rpx;
  94. color: #808080;
  95. overflow: hidden;
  96. }
  97. .container .list .list_box .box_top .top_msg .msg_title.data-v-da48f91d {
  98. font-size: 28rpx;
  99. font-weight: bold;
  100. color: #000;
  101. display: -webkit-box;
  102. -webkit-box-orient: vertical;
  103. -webkit-line-clamp: 2;
  104. overflow: hidden;
  105. }
  106. .container .list .list_box .box_top .top_msg .msg_name.data-v-da48f91d {
  107. white-space: nowrap;
  108. overflow: hidden;
  109. text-overflow: ellipsis;
  110. }
  111. .container .list .list_box .box_bottom.data-v-da48f91d {
  112. display: flex;
  113. justify-content: center;
  114. align-items: center;
  115. width: 661rpx;
  116. height: 80rpx;
  117. border-radius: 8rpx;
  118. }
  119. .container .list .list_box .on.data-v-da48f91d {
  120. color: #fff;
  121. background-color: #007aff;
  122. }
  123. .container .list .list_box .off.data-v-da48f91d {
  124. color: #a6a6a6;
  125. background-color: #e5e5e5;
  126. }