common.scss 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648
  1. @import '@/uni_modules/uni-scss/theme.scss';
  2. @import '@/uni.scss';
  3. .inherit-icons{
  4. display: inherit;
  5. }
  6. .hui-ellipsis {
  7. overflow: hidden;
  8. white-space: nowrap;
  9. text-overflow: ellipsis;
  10. }
  11. //修改uni-ui样式
  12. .form-box {
  13. &.file-form-box{
  14. .uni-forms{
  15. padding-bottom: 10rpx;
  16. }
  17. }
  18. .uni-forms {
  19. background: #fff;
  20. border-radius: 16rpx;
  21. padding: 30rpx;
  22. box-shadow: 0px 1px 12px rgba(3,3,3,0.08);
  23. .uni-forms-item__label {
  24. color: $uni-main-color;
  25. padding-bottom: 0 !important;
  26. }
  27. .uni-easyinput__content {
  28. border-radius: 84rpx;
  29. &.is-textarea{
  30. border-radius: 16rpx;
  31. }
  32. }
  33. .uni-easyinput__content-input {
  34. height: 80rpx;
  35. }
  36. .uni-easyinput__placeholder-class {
  37. color: $uni-secondary-color !important;
  38. font-size: 28rpx !important;
  39. font-weight: 300 !important;
  40. }
  41. .uni-forms-item{
  42. margin-bottom: 20rpx;
  43. }
  44. }
  45. //选择框样式
  46. .select-box {
  47. height: 84rpx;
  48. border-radius: 84rpx;
  49. border: 1px solid $uni-border-1;
  50. position: relative;
  51. line-height: 82rpx;
  52. box-sizing: border-box;
  53. padding-left: 10px;
  54. .select-label {
  55. color: $uni-secondary-color;
  56. font-weight: 300;
  57. }
  58. .form-icon {
  59. position: absolute;
  60. right: 30rpx;
  61. top: 0rpx;
  62. }
  63. }
  64. }
  65. //底部按钮
  66. .hui-button-box {
  67. background-color: #ffffff;
  68. box-shadow: 0px 2px 10px rgba(3, 3, 3, 0.1);
  69. position: fixed;
  70. bottom: 0;
  71. left: 0;
  72. right: 0;
  73. .hui-button-view{
  74. height: 100rpx;
  75. display: flex;
  76. align-items: center;
  77. }
  78. .hui-button {
  79. height: 68rpx;
  80. border-radius: 68rpx;
  81. color: #ffffff;
  82. background: $uni-primary;
  83. border: 1px solid $uni-primary;
  84. flex: 1;
  85. display: flex;
  86. align-items: center;
  87. justify-content: center;
  88. margin: 0 30rpx;
  89. &.hui-button-light{
  90. color: $uni-primary;
  91. background: #fff;
  92. }
  93. }
  94. .hui-button-icon{
  95. margin-right: 10rpx;
  96. }
  97. }
  98. button[type=primary]{
  99. background: $uni-primary;
  100. }
  101. //用户列表
  102. .fans-list {
  103. padding: 0 30rpx;
  104. box-sizing: border-box;
  105. .fans-item {
  106. height: 140rpx;
  107. background-color: #ffffff;
  108. border-radius: 16rpx;
  109. box-shadow: 0px 1px 12px rgba(3, 3, 3, 0.08);
  110. display: flex;
  111. align-items: center;
  112. padding: 0 30rpx;
  113. margin-bottom: 20rpx;
  114. position: relative;
  115. }
  116. .fans-avatar {
  117. width: 100rpx;
  118. height: 100rpx;
  119. border-radius: 16rpx;
  120. }
  121. .fans-content {
  122. flex: 1;
  123. width: 0;
  124. margin-left: 20rpx;
  125. }
  126. .fans-name {
  127. font-size: 32rpx;
  128. }
  129. .fans-organization {
  130. color: $uni-secondary-color;
  131. font-weight: 300;
  132. margin-top: 10rpx;
  133. font-size: 24rpx;
  134. }
  135. .fans-icon {
  136. width: 80rpx;
  137. height: 80rpx;
  138. border-radius: 50%;
  139. background: $uni-primary;
  140. text-align: center;
  141. line-height: 80rpx;
  142. }
  143. }
  144. //通用列表
  145. .status-tag {
  146. height: 52rpx;
  147. border-radius: 52rpx;
  148. line-height: 52rpx;
  149. padding: 0 30rpx;
  150. font-size: 24rpx;
  151. color: #fff;
  152. &.success {
  153. background-color: $uni-success;
  154. }
  155. &.primary {
  156. background-color: $uni-primary;
  157. }
  158. &.info {
  159. background-color: $uni-info;
  160. }
  161. &.warning {
  162. background-color: $uni-warning;
  163. }
  164. &.error {
  165. background-color: $uni-error;
  166. }
  167. }
  168. .common-list {
  169. padding: 0 30rpx;
  170. box-sizing: border-box;
  171. .common-item {
  172. background-color: #ffffff;
  173. border-radius: 16rpx;
  174. box-shadow: 0px 1px 12px rgba(3, 3, 3, 0.08);
  175. padding: 30rpx;
  176. position: relative;
  177. margin-bottom: 20rpx;
  178. .icon {
  179. position: absolute;
  180. top: 30rpx;
  181. right: 30rpx;
  182. }
  183. .title {
  184. font-size: 32rpx;
  185. font-weight: 600;
  186. }
  187. .date {
  188. font-size: 24rpx;
  189. color: $uni-secondary-color;
  190. margin: 10rpx 0;
  191. }
  192. .space {
  193. font-size: 24rpx;
  194. }
  195. .other {
  196. margin-top: 20rpx;
  197. .item {
  198. margin-top: 16rpx;
  199. }
  200. .label {
  201. color: $uni-secondary-color;
  202. font-size: 24rpx;
  203. }
  204. .value {
  205. margin-top: 6rpx;
  206. font-weight: 400;
  207. }
  208. }
  209. .state {
  210. margin-top: 20rpx;
  211. display: flex;
  212. justify-content: space-between;
  213. .create {
  214. height: 48rpx;
  215. border-radius: 48rpx;
  216. border: 1px solid $uni-primary;
  217. display: flex;
  218. align-items: center;
  219. color: $uni-primary;
  220. padding: 0 10rpx;
  221. .name {
  222. font-size: 24rpx;
  223. flex: 1;
  224. max-width: 150rpx;
  225. min-width: 70rpx;
  226. overflow: hidden;
  227. margin-left: 10rpx;
  228. line-height: 36rpx;
  229. padding-right: 10rpx;
  230. }
  231. }
  232. }
  233. }
  234. }
  235. //通用列表
  236. .hui-tag {
  237. height: 44rpx;
  238. border-radius: 44rpx;
  239. line-height: 44rpx;
  240. padding: 0 20rpx;
  241. font-size: 20rpx;
  242. color: #fff;
  243. &.success {
  244. background-color: $uni-success;
  245. }
  246. &.primary {
  247. background-color: $uni-primary;
  248. }
  249. &.info {
  250. background-color: $uni-info;
  251. }
  252. &.warning {
  253. background-color: $uni-warning;
  254. }
  255. &.error {
  256. background-color: $uni-error;
  257. }
  258. }
  259. //详情
  260. .detail {
  261. padding: 30rpx;
  262. .detail-box {
  263. background-color: #ffffff;
  264. border-radius: 16rpx;
  265. box-shadow: 0px 1px 12px rgba(3, 3, 3, 0.08);
  266. padding: 30rpx;
  267. position: relative;
  268. margin-bottom: 30rpx;
  269. &.file-box{
  270. padding-bottom: 20rpx;
  271. }
  272. }
  273. .sub-title {
  274. display: flex;
  275. align-items: center;
  276. margin-left: -8rpx;
  277. .sub-label {
  278. font-size: 32rpx;
  279. font-weight: 600;
  280. margin-left: 14rpx;
  281. }
  282. }
  283. .title-box {
  284. padding-left: 90rpx;
  285. position: relative;
  286. .title-icon {
  287. width: 70rpx;
  288. height: 70rpx;
  289. text-align: center;
  290. line-height: 70rpx;
  291. background: $uni-primary;
  292. border-radius: 70rpx;
  293. position: absolute;
  294. left: 0;
  295. top: 50%;
  296. margin-top: -35rpx;
  297. }
  298. .title {
  299. font-size: 32rpx;
  300. font-weight: 600;
  301. margin-bottom: 8rpx;
  302. }
  303. .date {
  304. font-size: 24rpx;
  305. color: $uni-secondary-color;
  306. }
  307. }
  308. .other {
  309. margin-top: 20rpx;
  310. .item {
  311. margin-top: 16rpx;
  312. }
  313. .label {
  314. color: $uni-secondary-color;
  315. font-size: 24rpx;
  316. }
  317. .value {
  318. margin-top: 10rpx;
  319. font-weight: 400;
  320. }
  321. .file-item{
  322. background-color: #ededed;
  323. height: 80rpx;
  324. display: flex;
  325. align-items: center;
  326. border-radius: 12rpx;
  327. padding: 0 14rpx;
  328. }
  329. .file-name{
  330. flex: 1;
  331. width: 0;
  332. margin-left: 10rpx;
  333. }
  334. .contarct-item{
  335. background-color: #ededed;
  336. border-radius: 12rpx;
  337. padding: 20rpx;
  338. margin-bottom: 20rpx;
  339. }
  340. .contarct-content{
  341. display: flex;
  342. justify-content: space-between;
  343. align-items: center;
  344. margin-bottom: 16rpx;
  345. &.last{
  346. margin-bottom: 0rpx;
  347. .content-item{
  348. flex: 1;
  349. width: 0;
  350. }
  351. }
  352. .content-title{
  353. font-size: 32rpx;
  354. font-weight: 500;
  355. }
  356. .content-label{
  357. color: $uni-secondary-color;
  358. font-size: 24rpx;
  359. }
  360. .content-value {
  361. font-weight: 400;
  362. margin-left: 6rpx;
  363. flex: 1;
  364. width: 0;
  365. }
  366. .content-item{
  367. overflow: hidden;
  368. display: flex;
  369. align-items: center;
  370. &.content-title{
  371. flex: 1;
  372. width: 0;
  373. }
  374. }
  375. }
  376. }
  377. .state {
  378. margin-top: 20rpx;
  379. display: flex;
  380. justify-content: space-between;
  381. .create {
  382. height: 48rpx;
  383. border-radius: 48rpx;
  384. border: 1px solid $uni-primary;
  385. display: flex;
  386. align-items: center;
  387. color: $uni-primary;
  388. padding: 0 10rpx;
  389. .name {
  390. font-size: 24rpx;
  391. flex: 1;
  392. max-width: 150rpx;
  393. min-width: 70rpx;
  394. overflow: hidden;
  395. margin-left: 10rpx;
  396. line-height: 36rpx;
  397. padding-right: 10rpx;
  398. }
  399. }
  400. }
  401. }
  402. .process-list {
  403. padding-top: 20rpx;
  404. .process-item {
  405. position: relative;
  406. display: flex;
  407. .user-avatar-box {
  408. position: relative;
  409. .user-avatar {
  410. width: 64rpx;
  411. height: 64rpx;
  412. background: $uni-primary;
  413. border-radius: 50%;
  414. margin-right: 20rpx;
  415. margin-top: 16rpx;
  416. display: flex;
  417. align-items: center;
  418. justify-content: center;
  419. overprocess: hidden;
  420. color: #fff;
  421. }
  422. .user-avatar-status {
  423. width: 28rpx;
  424. height: 28rpx;
  425. border-radius: 50%;
  426. border: 2rpx solid #fff;
  427. position: absolute;
  428. top: 60rpx;
  429. right: 20rpx;
  430. display: flex;
  431. align-items: center;
  432. justify-content: center;
  433. }
  434. .user-avatar-status.success {
  435. background: $uni-success;
  436. }
  437. .user-avatar-status.failed {
  438. background: $uni-error;
  439. }
  440. .user-avatar-status.waiting {
  441. background: $uni-warning;
  442. }
  443. .user-avatar-status.info {
  444. background: $uni-info;
  445. }
  446. }
  447. .process-content {
  448. flex: 1;
  449. width: 0;
  450. .user-name {
  451. height: 96rpx;
  452. display: flex;
  453. flex-direction: column;
  454. justify-content: center;
  455. .name {
  456. font-size: 32rpx;
  457. font-weight: 600;
  458. }
  459. .date {
  460. font-size: 24rpx;
  461. color: $uni-secondary-color;
  462. display: flex;
  463. align-items: center;
  464. justify-content: space-between;
  465. }
  466. }
  467. .user-content {
  468. background-color: #f5f5f5;
  469. border-radius: 16rpx;
  470. padding: 20rpx 20rpx 10rpx 20rpx;
  471. .remark {
  472. line-height: 17px;
  473. font-weight: 400;
  474. padding-bottom: 10rpx;
  475. }
  476. }
  477. }
  478. .user-line {
  479. width: 1px;
  480. border-left: 1px solid $uni-border-4;
  481. position: absolute;
  482. top: 80rpx;
  483. bottom: -16rpx;
  484. left: 30rpx;
  485. }
  486. }
  487. }
  488. .device-list-index {
  489. padding-top: 82rpx;
  490. .device-list {
  491. display: flex;
  492. flex-wrap: wrap;
  493. padding: 16rpx;
  494. .device-item-box {
  495. width: 50%;
  496. padding: 14rpx;
  497. box-sizing: border-box;
  498. }
  499. .item-box {
  500. // height: 100px;
  501. background: #fff;
  502. border-radius: 16rpx;
  503. box-shadow: 0px 1px 12px rgba(3, 3, 3, 0.08);
  504. position: relative;
  505. padding: 20rpx;
  506. box-sizing: border-box;
  507. }
  508. .operation-icon {
  509. position: absolute;
  510. top: 20rpx;
  511. right: 20rpx;
  512. }
  513. .item-icon {
  514. width: 100rpx;
  515. height: 100rpx;
  516. text-align: center;
  517. line-height: 100rpx;
  518. }
  519. .item-label {
  520. font-weight: 500;
  521. margin-top: 20rpx;
  522. margin-bottom: 10rpx;
  523. }
  524. .item-sub-label {
  525. font-weight: 200;
  526. font-size: 24rpx;
  527. color: $uni-secondary-color;
  528. display: flex;
  529. align-items: center;
  530. .line {
  531. height: 20rpx;
  532. width: 2rpx;
  533. background: $uni-border-1;
  534. }
  535. .label {
  536. padding: 0 10rpx;
  537. &:first-child {
  538. padding-left: 0;
  539. }
  540. }
  541. }
  542. }
  543. }
  544. .common-charts {
  545. margin-top: 30rpx;
  546. background: #fff;
  547. padding: 30rpx;
  548. border-radius: 16rpx;
  549. box-shadow: 0px 1px 12px rgba(3, 3, 3, 0.08);
  550. .common-chart-title {
  551. padding-bottom: 30rpx;
  552. font-size: 32rpx;
  553. font-weight: 500;
  554. }
  555. .common-chart-box {
  556. width: 100%;
  557. height: 300rpx;
  558. }
  559. }