uni.scss 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299
  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:12px;
  35. $uni-font-size-base:14px;
  36. $uni-font-size-lg:16;
  37. /* 图片尺寸 */
  38. $uni-img-size-sm:20px;
  39. $uni-img-size-base:26px;
  40. $uni-img-size-lg:40px;
  41. /* Border Radius */
  42. $uni-border-radius-sm: 2px;
  43. $uni-border-radius-base: 3px;
  44. $uni-border-radius-lg: 6px;
  45. $uni-border-radius-circle: 50%;
  46. /* 水平间距 */
  47. $uni-spacing-row-sm: 5px;
  48. $uni-spacing-row-base: 10px;
  49. $uni-spacing-row-lg: 15px;
  50. /* 垂直间距 */
  51. $uni-spacing-col-sm: 4px;
  52. $uni-spacing-col-base: 8px;
  53. $uni-spacing-col-lg: 12px;
  54. /* 透明度 */
  55. $uni-opacity-disabled: 0.3; // 组件禁用态的透明度
  56. /* 文章场景相关 */
  57. $uni-color-title: #2C405A; // 文章标题颜色
  58. $uni-font-size-title:20px;
  59. $uni-color-subtitle: #555555; // 二级标题颜色
  60. $uni-font-size-subtitle:26px;
  61. $uni-color-paragraph: #3F536E; // 文章段落颜色
  62. $uni-font-size-paragraph:15px;
  63. .inner-item {
  64. width: 100%;
  65. height: auto;
  66. border-bottom: 2rpx solid #BDBDBD;
  67. padding: 20rpx 20rpx 20rpx 20rpx;
  68. box-sizing: border-box;
  69. position: relative;
  70. background-color: #fff;
  71. border-radius: 20rpx;
  72. position: relative;
  73. margin-top: 10rpx;
  74. .text-title {
  75. width: 100%;
  76. height: 50rpx;
  77. color: rgb(16, 16, 16);
  78. font-size: 32rpx;
  79. text-align: left;
  80. font-family: PingFangSC-semiBold;
  81. display: flex;
  82. align-items: center;
  83. }
  84. .item-stats {
  85. position: absolute;
  86. right: 20rpx;
  87. top: 30rpx;
  88. width: 130rpx;
  89. height: 46rpx;
  90. line-height: 46rpx;
  91. color: rgba(1, 169, 146, 1);
  92. font-size: 32rpx;
  93. text-align: left;
  94. font-family: PingFangSC-bold;
  95. }
  96. .inventory-item {
  97. width: 100%;
  98. color: rgba(16, 16, 16, 1);
  99. font-size: 28rpx;
  100. text-align: left;
  101. font-family: PingFangSC-semiBold;
  102. margin-top: 15rpx;
  103. display: flex;
  104. align-items: center;
  105. .shuo-item-name {
  106. width: 100%;
  107. height: 100%;
  108. line-height: 20rpx;
  109. display: flex;
  110. align-items: center;
  111. .shuo-label-podnme,
  112. .shuo-label {
  113. color: rgba(16, 16, 16, 1);
  114. font-size: 28rpx;
  115. text-align: left;
  116. font-family: PingFangSC-regular;
  117. margin-right: 10rpx;
  118. font-weight: bold;
  119. overflow: hidden;
  120. white-space: nowrap;
  121. text-overflow: ellipsis;
  122. height: 40rpx;
  123. max-width: 450rpx;
  124. line-height: 40rpx;
  125. flex-shrink: 0;
  126. }
  127. .shuo-label {
  128. width: 150rpx;
  129. text-align-last: justify;
  130. }
  131. .shuo-cont,.shuo-label-blue{
  132. color: rgba(16, 16, 16, 1);
  133. font-size: 25rpx;
  134. text-align: left;
  135. font-family: PingFangSC-regular;
  136. overflow: hidden;
  137. white-space: nowrap;
  138. text-overflow: ellipsis;
  139. height: 40rpx;
  140. line-height: 40rpx;
  141. }
  142. .shuo-label-blue{
  143. color: blue;
  144. }
  145. .shuo-unit {
  146. color: #5AB7A5;
  147. font-size: 28rpx;
  148. text-align: left;
  149. font-family: PingFangSC-regular;
  150. height: 40rpx;
  151. line-height: 40rpx;
  152. overflow: hidden;
  153. white-space: nowrap;
  154. text-overflow: ellipsis;
  155. }
  156. }
  157. .shuo-item-tcl {
  158. width: 100%;
  159. height: 100%;
  160. line-height: 20rpx;
  161. display: flex;
  162. align-items: flex-start;
  163. .shuo-label {
  164. width: 150rpx;
  165. color: rgba(16, 16, 16, 1);
  166. font-size: 28rpx;
  167. text-align: left;
  168. font-family: PingFangSC-regular;
  169. font-weight: bold;
  170. text-align: justify;
  171. text-align-last: justify;
  172. margin-right: 20rpx;
  173. flex-shrink: 0;
  174. }
  175. .shuo-cont,
  176. .shuo-break {
  177. color: rgba(16, 16, 16, 1);
  178. font-size: 25rpx;
  179. text-align: left;
  180. font-family: PingFangSC-regular;
  181. margin-left: 20rpx;
  182. }
  183. .shuo-break {
  184. width: 470rpx;
  185. line-height: 30rpx;
  186. word-wrap: break-word;
  187. }
  188. }
  189. .shuo-item {
  190. width: 50%;
  191. height: 100%;
  192. line-height: 20rpx;
  193. display: flex;
  194. align-items: center;
  195. .shuo-label {
  196. width: 150rpx;
  197. height: 40rpx;
  198. line-height: 40rpx;
  199. color: rgba(16, 16, 16, 1);
  200. font-size: 28rpx;
  201. text-align: left;
  202. font-family: PingFangSC-regular;
  203. text-align-last: justify;
  204. font-weight: bold;
  205. flex-shrink: 0;
  206. }
  207. .shuo-cont,
  208. .shuo-label-green,
  209. .shuo-label-red
  210. {
  211. color: rgba(16, 16, 16, 1);
  212. font-size: 25rpx;
  213. text-align: left;
  214. font-family: PingFangSC-regular;
  215. margin-left: 10rpx;
  216. overflow: hidden;
  217. white-space: nowrap;
  218. text-overflow: ellipsis;
  219. height: 40rpx;
  220. line-height: 40rpx;
  221. }
  222. .shuo-cont-blue {
  223. color: blue;
  224. }
  225. .shuo-label-green {
  226. color: #5AB7A5;
  227. .addInvent{
  228. width:100rpx;
  229. height:30rpx;
  230. text-align: center;
  231. line-height: 30rpx;
  232. border:1px solid #ccc;
  233. }
  234. }
  235. .shuo-label-red {
  236. color: red;
  237. }
  238. .shuo-it-ut {
  239. color: #5AB7A5;
  240. font-size: 25rpx;
  241. text-align: left;
  242. font-family: PingFangSC-regular;
  243. margin-left: 10rpx;
  244. }
  245. .shuo-await {
  246. color: rgba(255, 191, 107, 1);
  247. font-size: 28rpx;
  248. text-align: left;
  249. font-family: PingFangSC-regular;
  250. margin-left: 20rpx;
  251. }
  252. .shuo-ready {
  253. color: rgba(162, 239, 77, 1);
  254. font-size: 28rpx;
  255. text-align: left;
  256. font-family: PingFangSC-regular;
  257. margin-left: 20rpx;
  258. }
  259. }
  260. }
  261. }