index.wxss 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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. image {
  35. width: 100%;
  36. }
  37. .loading {
  38. position: fixed;
  39. top: 440px;
  40. width: 95%;
  41. left: 2.5%;
  42. text-align: center;
  43. z-index: 100;
  44. }
  45. .loading .img {
  46. width: 300rpx;
  47. height: 40rpx;
  48. }
  49. .bases_search {
  50. width: 60%;
  51. background-color: #FFFFFF;
  52. position: absolute;
  53. top: 10rpx;
  54. left: 50%;
  55. margin-left: -33%;
  56. }
  57. .bases_search .bases_search_text {
  58. width: 90%;
  59. margin: 0 auto;
  60. background-color: #F8F8F8;
  61. height: 60rpx;
  62. border-radius: 30rpx;
  63. display: -webkit-box;
  64. display: -webkit-flex;
  65. display: flex;
  66. line-height: 60rpx;
  67. }
  68. .bases_search .bases_search_text .search {
  69. padding: 0 20rpx;
  70. font-size: 34rpx;
  71. }
  72. .bases_search .bases_search_text input {
  73. width: 80%;
  74. margin-top: 10rpx;
  75. font-size: 28rpx;
  76. }
  77. .tab-box {
  78. display: -webkit-box;
  79. display: -webkit-flex;
  80. display: flex;
  81. -webkit-justify-content: space-around;
  82. justify-content: space-around;
  83. font-size: 30rpx;
  84. line-height: 80rpx;
  85. background-color: #FFFFFF;
  86. margin-top: -10rpx;
  87. }
  88. .tab-box .tab-item {
  89. cursor: pointer;
  90. position: relative;
  91. }
  92. .tab-box .tab-item.active .bottom-line {
  93. bottom: 0;
  94. position: absolute;
  95. display: inline-block;
  96. width: 90rpx;
  97. height: 6rpx;
  98. left: 0;
  99. right: 0;
  100. margin: auto;
  101. background: #57C878;
  102. }
  103. .top {
  104. position: fixed;
  105. right: 10px;
  106. bottom: 40px;
  107. z-index: 100;
  108. }
  109. .top image {
  110. width: 100rpx;
  111. height: 100rpx;
  112. }
  113. .top .backtop {
  114. display: -webkit-box;
  115. display: -webkit-flex;
  116. display: flex;
  117. -webkit-box-pack: end;
  118. -webkit-justify-content: flex-end;
  119. justify-content: flex-end;
  120. margin-bottom: 10rpx;
  121. }
  122. .top .more {
  123. display: -webkit-box;
  124. display: -webkit-flex;
  125. display: flex;
  126. }
  127. .top .box {
  128. width: 80rpx;
  129. height: 80rpx;
  130. background-color: rgba(161, 161, 161, 0.45);
  131. border-radius: 50%;
  132. text-align: center;
  133. line-height: 80rpx;
  134. box-sizing: border-box;
  135. margin: 14rpx 10rpx 0 0;
  136. color: #fff;
  137. }