main.wxss 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488
  1. @charset "UTF-8";
  2. /**
  3. * 这里是app内置的常用样式变量
  4. *
  5. * 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. /* 文字尺寸 */
  23. /* 图片尺寸 */
  24. /* Border Radius */
  25. /* 水平间距 */
  26. /* 垂直间距 */
  27. /* 透明度 */
  28. /* 文章场景相关 */
  29. /*每个页面公共css */
  30. page {
  31. font-family: Source Han Sans CN Normal, PingFang SC, Hiragino Sans GB, Microsoft YaHei, sans-serif;
  32. background-color: #f3f5f9;
  33. font-weight: normal;
  34. }
  35. view {
  36. box-sizing: border-box;
  37. line-height: 1.41176471;
  38. word-break: break-all;
  39. }
  40. image {
  41. width: 100%;
  42. height: 100%;
  43. }
  44. .bold {
  45. font-weight: bold;
  46. }
  47. .textarea-placeholder,
  48. .input-placeholder {
  49. color: #d2d2d2;
  50. }
  51. /* 宽高 */
  52. .w-100 {
  53. width: 100%;
  54. }
  55. .w-50 {
  56. width: 50%;
  57. }
  58. /*文字大小*/
  59. .font-10 {
  60. font-size: 20rpx !important;
  61. }
  62. .font-12 {
  63. font-size: 24rpx !important;
  64. }
  65. .font-14 {
  66. font-size: 28rpx !important;
  67. }
  68. .font-16 {
  69. font-size: 32rpx !important;
  70. }
  71. .font-24 {
  72. font-size: 48rpx !important;
  73. }
  74. /*行高*/
  75. .line-h0 {
  76. line-height: 0 !important;
  77. }
  78. .line-h {
  79. line-height: 1 !important;
  80. }
  81. .line-h-sm {
  82. line-height: 1.2 !important;
  83. }
  84. .line-h-md {
  85. line-height: 1.5 !important;
  86. }
  87. .line-h-lg {
  88. line-height: 2 !important;
  89. }
  90. .line-h-big {
  91. line-height: 3 !important;
  92. }
  93. .text-center {
  94. text-align: center;
  95. }
  96. .text-left {
  97. text-align: left;
  98. }
  99. .text-right {
  100. text-align: right;
  101. }
  102. /*标题颜色*/
  103. .text-primary {
  104. color: #317Afd !important;
  105. }
  106. .text-secondary {
  107. color: #00b368 !important;
  108. }
  109. .text-danger {
  110. color: #dc3545 !important;
  111. }
  112. .text-warning {
  113. color: #ffc107 !important;
  114. }
  115. .text-title {
  116. color: #333;
  117. }
  118. .text-info {
  119. color: #666;
  120. }
  121. .text-grey {
  122. color: #999;
  123. }
  124. .text-sub {
  125. color: #cccccc;
  126. }
  127. .text-disable {
  128. color: #c0c0c0;
  129. }
  130. .text-white {
  131. color: #fff !important;
  132. }
  133. /*布局*/
  134. .nowrap {
  135. white-space: nowrap;
  136. }
  137. .flex-1 {
  138. flex: 1;
  139. }
  140. .flex-2 {
  141. flex: 2;
  142. }
  143. .wrap {
  144. flex-wrap: wrap;
  145. }
  146. .d-flex {
  147. display: flex;
  148. }
  149. .d-block {
  150. display: block;
  151. }
  152. .d-inline-block {
  153. display: inline-block;
  154. }
  155. .row {
  156. display: flex;
  157. align-items: center;
  158. }
  159. .row-center {
  160. display: flex;
  161. align-items: center;
  162. justify-content: center;
  163. }
  164. .row-end {
  165. display: flex;
  166. align-items: center;
  167. justify-content: flex-end;
  168. }
  169. .row-between {
  170. display: flex;
  171. align-items: center;
  172. justify-content: space-between;
  173. }
  174. .between {
  175. display: flex;
  176. justify-content: space-between;
  177. }
  178. .row-around {
  179. display: flex;
  180. align-items: center;
  181. justify-content: space-around;
  182. }
  183. .column {
  184. display: flex;
  185. flex-direction: column;
  186. justify-content: center;
  187. }
  188. .column-center {
  189. display: flex;
  190. flex-direction: column;
  191. align-items: center;
  192. justify-content: center;
  193. }
  194. .column-around {
  195. display: flex;
  196. flex-direction: column;
  197. justify-content: space-around;
  198. }
  199. .column-end {
  200. display: flex;
  201. flex-direction: column;
  202. justify-content: flex-end;
  203. }
  204. .column-between {
  205. display: flex;
  206. flex-direction: column;
  207. justify-content: space-between;
  208. }
  209. .relative {
  210. position: relative;
  211. }
  212. /* 超出隐藏 */
  213. .text-ellipsis {
  214. word-break: break-all;
  215. display: -webkit-box;
  216. -webkit-line-clamp: 1;
  217. -webkit-box-orient: vertical;
  218. text-overflow: ellipsis;
  219. overflow: hidden;
  220. }
  221. .text-ellipsis2 {
  222. word-break: break-all;
  223. display: -webkit-box;
  224. -webkit-line-clamp: 2;
  225. -webkit-box-orient: vertical;
  226. overflow: hidden;
  227. }
  228. .mt-12 {
  229. margin-top: 24rpx !important;
  230. }
  231. .mr {
  232. margin-right: 18rpx !important;
  233. }
  234. .mb {
  235. margin-bottom: 24rpx !important;
  236. }
  237. .m-12 {
  238. margin: 24rpx;
  239. }
  240. .p-10 {
  241. padding: 20rpx;
  242. }
  243. .p-12 {
  244. padding: 24rpx;
  245. }
  246. .px-12 {
  247. padding: 26rpx 24rpx;
  248. }
  249. .px-13 {
  250. padding: 24rpx 26rpx;
  251. }
  252. /*按钮*/
  253. .btn,
  254. .btn-plain {
  255. display: flex;
  256. align-items: center;
  257. justify-content: center;
  258. height: 96rpx;
  259. font-size: 32rpx;
  260. line-height: 1;
  261. border-radius: 12rpx;
  262. }
  263. .btn::after,
  264. .btn-plain::after {
  265. display: none;
  266. }
  267. .btn {
  268. color: #fff;
  269. background-image: linear-gradient(45deg, #57b1fe, #317afd);
  270. }
  271. .btn-plain {
  272. color: #317afd;
  273. border: 1rpx #317afd solid;
  274. }
  275. .scroll-h {
  276. white-space: nowrap;
  277. width: 100%;
  278. }
  279. .ui-card {
  280. margin: 24rpx;
  281. background-color: #fff;
  282. border-radius: 12rpx;
  283. }
  284. .ui-upload {
  285. display: flex;
  286. flex-wrap: wrap;
  287. align-items: flex-start;
  288. }
  289. .ui-upload_text {
  290. color: #999999;
  291. font-size: 20rpx;
  292. margin-top: 10rpx;
  293. }
  294. .ui-upload_img {
  295. display: block;
  296. width: 128rpx;
  297. height: 128rpx;
  298. border-radius: 8rpx;
  299. }
  300. .ui-upload_file,
  301. .ui-upload_input {
  302. position: relative;
  303. display: inline-block;
  304. width: 128rpx;
  305. margin: 0 16rpx 16rpx;
  306. border-radius: 8rpx;
  307. }
  308. .picker {
  309. width: 240rpx;
  310. height: 60rpx;
  311. font-size: 24rpx;
  312. border: #DDDDDD 1rpx solid;
  313. border-radius: 8rpx;
  314. }
  315. .picker-wrapper {
  316. display: flex;
  317. align-items: center;
  318. justify-content: space-between;
  319. height: 60rpx;
  320. padding: 0 24rpx;
  321. color: #999999;
  322. line-height: 1;
  323. }
  324. /**
  325. * ===================
  326. * 页面面板通用样式 用于 监控列表,可视监控,病虫害百科列表,病虫害详情,病虫害识别
  327. * ===================
  328. */
  329. .page-panel {
  330. padding: 24rpx;
  331. margin-top: 24rpx;
  332. margin-bottom: 100rpx;
  333. background-color: #fff;
  334. }
  335. /**
  336. * ===================
  337. * 设计监测列表项通用样式 用于 气象监测列表,虫情监测列表页面
  338. * ===================
  339. */
  340. .forecast-item {
  341. display: flex;
  342. justify-content: space-between;
  343. padding: 26rpx 24rpx 34rpx;
  344. }
  345. .forecast-item .title {
  346. position: relative;
  347. color: #333;
  348. line-height: 44rpx;
  349. }
  350. .forecast-item .title::before {
  351. content: ' ';
  352. display: inline-block;
  353. width: 18rpx;
  354. height: 18rpx;
  355. margin-right: 18rpx;
  356. border-radius: 100%;
  357. }
  358. .forecast-item .title.on::before {
  359. background: linear-gradient(135deg, #57B1FE 0%, #317afd 100%);
  360. }
  361. .forecast-item .title.off::before {
  362. background: #e93f27;
  363. }
  364. .forecast-item .text {
  365. font-size: 28rpx;
  366. color: #666;
  367. line-height: 40rpx;
  368. margin-top: 10rpx;
  369. }
  370. /**
  371. * ===================
  372. * 设备监测详情卡片样式 气象监测详情,虫情监测详情页面
  373. * ===================
  374. */
  375. .forecast-card {
  376. position: relative;
  377. display: flex;
  378. justify-content: space-between;
  379. overflow: hidden;
  380. padding: 28rpx 26rpx;
  381. margin-bottom: 48rpx;
  382. color: #fff;
  383. background: linear-gradient(135deg, #57B1FE 0%, #317AFD 100%);
  384. }
  385. .forecast-card::before, .forecast-card::after {
  386. content: ' ';
  387. position: absolute;
  388. display: block;
  389. background: rgba(255, 255, 255, 0.3);
  390. border-radius: 100%;
  391. }
  392. .forecast-card::before {
  393. top: 12rpx;
  394. right: 96rpx;
  395. width: 92rpx;
  396. height: 92rpx;
  397. }
  398. .forecast-card::after {
  399. right: -96rpx;
  400. bottom: -108rpx;
  401. width: 276rpx;
  402. height: 276rpx;
  403. }
  404. .forecast-card .title {
  405. position: relative;
  406. line-height: 44rpx;
  407. }
  408. .forecast-card .title::before {
  409. content: ' ';
  410. display: inline-block;
  411. width: 18rpx;
  412. height: 18rpx;
  413. margin-right: 18rpx;
  414. background-color: #fff;
  415. border-radius: 100%;
  416. }
  417. .forecast-card .text {
  418. margin-top: 14rpx;
  419. font: 28rpx/40rpx PingFang SC-中等, PingFang SC;
  420. line-height: 40rpx;
  421. }
  422. .forecast-card .state {
  423. padding-top: 6rpx;
  424. text-align: right;
  425. width: 120rpx;
  426. }
  427. /**
  428. * ===================
  429. * 实时数据列表样式;使用模块:气象监测,虫情监测
  430. * ===================
  431. */
  432. .latest-list {
  433. display: flex;
  434. flex-wrap: wrap;
  435. }
  436. .latest-item {
  437. display: flex;
  438. width: calc(50% - 34rpx);
  439. padding: 26rpx 24rpx;
  440. margin-top: 0;
  441. margin-right: 0;
  442. }
  443. .latest-item:nth-child(2n) {
  444. margin-left: 18rpx;
  445. margin-right: 24rpx;
  446. }
  447. .latest-item .icon {
  448. display: flex;
  449. align-items: center;
  450. justify-content: center;
  451. width: 88rpx;
  452. height: 88rpx;
  453. margin-right: 24rpx;
  454. background: #317afd;
  455. border-radius: 100%;
  456. }
  457. .latest-item .icon image {
  458. display: block;
  459. width: 60rpx;
  460. height: 60rpx;
  461. }
  462. .latest-item .text {
  463. line-height: 34rpx;
  464. }
  465. /**
  466. * ===================
  467. * 表格数据列表样式
  468. * ===================
  469. */
  470. .table-style {
  471. margin-bottom: 42rpx;
  472. }
  473. .table-style .uni-table-th,
  474. .table-style .uni-table-td {
  475. color: #333333 !important;
  476. font-weight: normal !important;
  477. font-size: 24rpx !important;
  478. line-height: 34rpx !important;
  479. text-align: center !important;
  480. }
  481. .table-style .uni-table-th {
  482. background-color: #F9F9F9 !important;
  483. padding: 16rpx 20rpx !important;
  484. }
  485. .table-style .uni-table-td {
  486. padding: 12rpx 20rpx;
  487. }