index.wxss 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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. page {
  28. background: #F5F5F5;
  29. }
  30. page .content {
  31. padding: 0 20rpx 20rpx 20rpx;
  32. box-sizing: border-box;
  33. }
  34. page .content .prevents_item_bot_sapn0 {
  35. color: #00B075;
  36. }
  37. page .content .prevents_item_bot_sapn1 {
  38. color: #FF4747;
  39. }
  40. page .content .prevents_item_bot_sapn2 {
  41. color: #FFAB00;
  42. }
  43. image {
  44. width: 100%;
  45. }
  46. .inputs {
  47. height: 54rpx;
  48. background-color: #E4E4E4;
  49. border-radius: 27rpx;
  50. position: absolute;
  51. right: 20rpx;
  52. top: 20rpx;
  53. transition: width 0.5s;
  54. overflow: hidden;
  55. padding-top: 8rpx;
  56. box-sizing: border-box;
  57. }
  58. .inputs .inputbox {
  59. width: 85%;
  60. text-indent: 1rem;
  61. font-size: 26rpx;
  62. }
  63. .inputs .icon {
  64. position: absolute;
  65. top: 8rpx;
  66. right: 26rpx;
  67. }
  68. .loading {
  69. position: fixed;
  70. top: 440px;
  71. width: 95%;
  72. left: 2.5%;
  73. text-align: center;
  74. }
  75. .loading .img {
  76. width: 300rpx;
  77. height: 40rpx;
  78. }
  79. .tab-box {
  80. position: fixed;
  81. top: 170px;
  82. font-size: 30rpx;
  83. line-height: 80rpx;
  84. background-color: #ffffff;
  85. width: 100%;
  86. z-index: 2;
  87. overflow: hidden;
  88. overflow-x: scroll;
  89. white-space: nowrap;
  90. }
  91. .tab-box .tab-item {
  92. cursor: pointer;
  93. position: relative;
  94. width: 25%;
  95. text-align: center;
  96. display: inline-block;
  97. padding: 10rpx 0;
  98. }
  99. .tab-box .tab-item.active .bottom-line {
  100. bottom: 0;
  101. position: absolute;
  102. display: inline-block;
  103. width: 90rpx;
  104. height: 6rpx;
  105. left: 0;
  106. right: 0;
  107. margin: auto;
  108. background: #57C878;
  109. }
  110. .top {
  111. position: fixed;
  112. right: 10px;
  113. bottom: 40px;
  114. z-index: 100;
  115. }
  116. .top image {
  117. width: 100rpx;
  118. height: 100rpx;
  119. }
  120. .top .backtop {
  121. display: flex;
  122. justify-content: flex-end;
  123. margin-bottom: 10rpx;
  124. }
  125. .top .more {
  126. display: flex;
  127. }
  128. .top .box {
  129. width: 80rpx;
  130. height: 80rpx;
  131. background-color: rgba(161, 161, 161, 0.45);
  132. border-radius: 50%;
  133. text-align: center;
  134. line-height: 80rpx;
  135. box-sizing: border-box;
  136. margin: 14rpx 10rpx 0 0;
  137. color: #fff;
  138. }