uni.scss 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338
  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. $uni-color-primary: #007aff;
  16. $uni-color-success: #4cd964;
  17. $uni-color-warning: #f0ad4e;
  18. $uni-color-error: #dd524d;
  19. /* 文字基本颜色 */
  20. $uni-text-color:#333;//基本色
  21. $uni-text-color-inverse:#fff;//反色
  22. $uni-text-color-grey:#999;//辅助灰色,如加载更多的提示信息
  23. $uni-text-color-placeholder: #808080;
  24. $uni-text-color-disable:#c0c0c0;
  25. /* 背景颜色 */
  26. $uni-bg-color:#ffffff;
  27. $uni-bg-color-grey:#f8f8f8;
  28. $uni-bg-color-hover:#f1f1f1;//点击状态颜色
  29. $uni-bg-color-mask:rgba(0, 0, 0, 0.4);//遮罩颜色
  30. /* 边框颜色 */
  31. $uni-border-color:#c8c7cc;
  32. /* 尺寸变量 */
  33. /* 文字尺寸 */
  34. $uni-font-size-sm:24rpx;
  35. $uni-font-size-base:28rpx;
  36. $uni-font-size-lg:16;
  37. /* 图片尺寸 */
  38. $uni-img-size-sm:40rpx;
  39. $uni-img-size-base:52rpx;
  40. $uni-img-size-lg:80rpx;
  41. /* Border Radius */
  42. $uni-border-radius-sm: 4rpx;
  43. $uni-border-radius-base: 6rpx;
  44. $uni-border-radius-lg: 12rpx;
  45. $uni-border-radius-circle: 50%;
  46. /* 水平间距 */
  47. $uni-spacing-row-sm: 10rpx;
  48. $uni-spacing-row-base: 20rpx;
  49. $uni-spacing-row-lg: 30rpx;
  50. /* 垂直间距 */
  51. $uni-spacing-col-sm: 8rpx;
  52. $uni-spacing-col-base: 16rpx;
  53. $uni-spacing-col-lg: 24rpx;
  54. /* 透明度 */
  55. $uni-opacity-disabled: 0.3; // 组件禁用态的透明度
  56. /* 文章场景相关 */
  57. $uni-color-title: #2C405A; // 文章标题颜色
  58. $uni-font-size-title:40rpx;
  59. $uni-color-subtitle: #555555; // 二级标题颜色
  60. $uni-font-size-subtitle:52rpx;
  61. $uni-color-paragraph: #3F536E; // 文章段落颜色
  62. $uni-font-size-paragraph:30rpx;
  63. page{
  64. background-color: #F5F5F5;
  65. }
  66. .inner-item {
  67. width: 100%;
  68. height: auto;
  69. border-bottom: 2rpx solid #BDBDBD;
  70. padding: 20rpx 20rpx 20rpx 20rpx;
  71. box-sizing: border-box;
  72. position: relative;
  73. background-color: #fff;
  74. border-radius: 20rpx;
  75. position: relative;
  76. margin-top: 10rpx;
  77. .text-title {
  78. width: 100%;
  79. height: 50rpx;
  80. color: rgb(16, 16, 16);
  81. font-size: 32rpx;
  82. text-align: left;
  83. font-family: PingFangSC-semiBold;
  84. display: flex;
  85. align-items: center;
  86. }
  87. .check-title{
  88. width: 50rpx;
  89. height: 50rpx;
  90. color: rgb(16, 16, 16);
  91. font-size: 32rpx;
  92. font-family: PingFangSC-semiBold;
  93. position: absolute;
  94. top:20rpx;
  95. right:20rpx;
  96. }
  97. .item-stats {
  98. position: absolute;
  99. right: 20rpx;
  100. top: 30rpx;
  101. width: 130rpx;
  102. height: 46rpx;
  103. line-height: 46rpx;
  104. color: rgba(1, 169, 146, 1);
  105. font-size: 32rpx;
  106. text-align: left;
  107. font-family: PingFangSC-bold;
  108. }
  109. .inventory-item {
  110. width: 100%;
  111. color: rgba(16, 16, 16, 1);
  112. font-size: 28rpx;
  113. text-align: left;
  114. font-family: PingFangSC-semiBold;
  115. margin-top: 15rpx;
  116. display: flex;
  117. align-items: center;
  118. .shuo-item-name {
  119. width: 100%;
  120. height: 100%;
  121. line-height: 20rpx;
  122. display: flex;
  123. align-items: center;
  124. .shuo-label-podnme,
  125. .shuo-label {
  126. color: rgba(16, 16, 16, 1);
  127. font-size: 28rpx;
  128. text-align: left;
  129. font-family: PingFangSC-regular;
  130. margin-right: 10rpx;
  131. font-weight: bold;
  132. overflow: hidden;
  133. white-space: nowrap;
  134. text-overflow: ellipsis;
  135. height: 40rpx;
  136. max-width: 450rpx;
  137. line-height: 40rpx;
  138. flex-shrink: 0;
  139. }
  140. .shuo-label {
  141. width: 150rpx;
  142. text-align-last: justify;
  143. }
  144. .shuo-cont,.shuo-label-blue{
  145. color: rgba(16, 16, 16, 1);
  146. font-size: 25rpx;
  147. text-align: left;
  148. font-family: PingFangSC-regular;
  149. overflow: hidden;
  150. white-space: nowrap;
  151. text-overflow: ellipsis;
  152. height: 40rpx;
  153. line-height: 40rpx;
  154. }
  155. .shuo-label-blue{
  156. color: blue;
  157. }
  158. .shuo-unit {
  159. color: #5AB7A5;
  160. font-size: 28rpx;
  161. text-align: left;
  162. font-family: PingFangSC-regular;
  163. height: 40rpx;
  164. line-height: 40rpx;
  165. overflow: hidden;
  166. white-space: nowrap;
  167. text-overflow: ellipsis;
  168. }
  169. }
  170. .shuo-item-tcl {
  171. width: 100%;
  172. height: 100%;
  173. line-height: 20rpx;
  174. display: flex;
  175. align-items: flex-start;
  176. .shuo-label {
  177. width: 150rpx;
  178. color: rgba(16, 16, 16, 1);
  179. font-size: 28rpx;
  180. text-align: left;
  181. font-family: PingFangSC-regular;
  182. font-weight: bold;
  183. text-align: justify;
  184. text-align-last: justify;
  185. margin-right: 20rpx;
  186. flex-shrink: 0;
  187. }
  188. .shuo-cont,
  189. .shuo-break {
  190. color: rgba(16, 16, 16, 1);
  191. font-size: 25rpx;
  192. text-align: left;
  193. font-family: PingFangSC-regular;
  194. margin-left: 20rpx;
  195. }
  196. .shuo-break {
  197. width: 470rpx;
  198. line-height: 30rpx;
  199. word-wrap: break-word;
  200. }
  201. }
  202. .shuo-item {
  203. width: 50%;
  204. height: 100%;
  205. line-height: 20rpx;
  206. display: flex;
  207. align-items: center;
  208. .shuo-label {
  209. width: 150rpx;
  210. height: 40rpx;
  211. line-height: 40rpx;
  212. color: rgba(16, 16, 16, 1);
  213. font-size: 28rpx;
  214. text-align: left;
  215. font-family: PingFangSC-regular;
  216. text-align-last: justify;
  217. font-weight: bold;
  218. flex-shrink: 0;
  219. }
  220. .shuo-cont,
  221. .shuo-label-green,
  222. .shuo-label-red
  223. {
  224. color: rgba(16, 16, 16, 1);
  225. font-size: 25rpx;
  226. text-align: left;
  227. font-family: PingFangSC-regular;
  228. margin-left: 10rpx;
  229. overflow: hidden;
  230. white-space: nowrap;
  231. text-overflow: ellipsis;
  232. height: 40rpx;
  233. line-height: 40rpx;
  234. }
  235. .shuo-cont-blue {
  236. color: blue;
  237. }
  238. .shuo-label-green {
  239. color: #5AB7A5;
  240. .addInvent{
  241. width:100rpx;
  242. height:30rpx;
  243. text-align: center;
  244. line-height: 30rpx;
  245. border:1px solid #ccc;
  246. }
  247. }
  248. .shuo-label-red {
  249. color: red;
  250. }
  251. .shuo-it-ut {
  252. color: #5AB7A5;
  253. font-size: 25rpx;
  254. text-align: left;
  255. font-family: PingFangSC-regular;
  256. margin-left: 10rpx;
  257. }
  258. .shuo-await {
  259. color: rgba(255, 191, 107, 1);
  260. font-size: 28rpx;
  261. text-align: left;
  262. font-family: PingFangSC-regular;
  263. margin-left: 20rpx;
  264. }
  265. .shuo-ready {
  266. color: rgba(162, 239, 77, 1);
  267. font-size: 28rpx;
  268. text-align: left;
  269. font-family: PingFangSC-regular;
  270. margin-left: 20rpx;
  271. }
  272. }
  273. }
  274. }
  275. .empty-cont{
  276. width:100%;
  277. height:400rpx;
  278. display: flex;
  279. align-items: center;
  280. justify-content: center;
  281. }
  282. .search-view {
  283. width: 100%;
  284. height: 100rpx;
  285. display: flex;
  286. align-items: center;
  287. padding: 0rpx 20rpx 0rpx 20rpx;
  288. box-sizing: border-box;
  289. .filter-text {
  290. width: 72rpx;
  291. height: 50rpx;
  292. line-height: 50rpx;
  293. color: rgba(1, 169, 146, 1);
  294. font-size: 36rpx;
  295. font-family: PingFangSC-bold;
  296. padding-left: 20rpx;
  297. }
  298. }