interLock.less 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441
  1. /**IoT Edge相关 修改框架 */
  2. /**
  3. .iotmenu-content-layout{
  4. .ant-btn-primary{
  5. background: linear-gradient(0deg,rgba(1,159,243,.4),rgba(138,210,249,.4)) !important;
  6. background-color: #0fabfe!important;
  7. border-color: #0fabfe!important;
  8. }
  9. .ant-card:not(.topo-card){
  10. border: 1px solid #cadae6;
  11. box-shadow: 0 3px 8px 0 rgba(2,72,109,.15);
  12. }
  13. }
  14. */
  15. /* flex布局 */
  16. .u-flex,.u-flex-jac,.u-flex-jab,.u-flex-jaa,.u-flex-cjac,.u-flex-cjab{ display: flex; }
  17. .fd-column,.u-flex-cjac,.u-flex-cjab{ flex-direction: column; }
  18. .jc-center,.u-flex-jac,.u-flex-cjac{ justify-content: center; }
  19. .jc-sb,.u-flex-jab,.u-flex-cjab{ justify-content: space-between; }
  20. .jc-sa,.u-flex-jaa{ justify-content: space-around; }
  21. .jc-start{ justify-content: flex-start; }
  22. .jc-end{ justify-content: flex-end; }
  23. .ai-center,.u-flex-jab,.u-flex-jac,.u-flex-jaa,.u-flex-cjac{ align-items: center; }
  24. .ai-start{ align-items: flex-start; }
  25. .ai-end{ align-items: flex-end; }
  26. .ai-stretch{ align-items: stretch; }
  27. .f1{ flex: 1; }
  28. .f-auto{ flex: auto; }
  29. /**IoT TPM相关 修改框架 */
  30. @iotTpmFontColor: #323233;
  31. @iotTpmContentBg: #FAFAFA;
  32. @iotHContentHeight: 48px;
  33. @iotHLineHeight: 8px;
  34. @iotHHeight: 56px;
  35. /** 布局设置 */
  36. .iotmenu{
  37. display: block !important;
  38. height: 100vh;
  39. overflow: hidden;
  40. background-color: #EDEDED !important;
  41. .ant-layout-header{
  42. background: transparent;
  43. height: @iotHHeight !important;
  44. .header{
  45. // height: 56px !important;
  46. background-color: #fff !important;
  47. color: rgba(0,0,0,65) !important;
  48. box-shadow: 0 2px 4px 0 rgba(50,50,51,.5) !important;
  49. z-index: 999 !important;
  50. padding: 0 !important;
  51. }
  52. .iotmenu-header{
  53. height: @iotHHeight !important;
  54. .top-line{
  55. width: 100%;
  56. height: @iotHLineHeight;
  57. background: linear-gradient(90deg,#019ff3,#004280);
  58. }
  59. .iotmenu-header-content{
  60. height: @iotHContentHeight !important;
  61. line-height: @iotHContentHeight !important;
  62. .user-wrapper{
  63. .avatar{
  64. margin: 0 10px 0 0 !important;
  65. }
  66. }
  67. }
  68. .iotmenu-header-text{
  69. font-size: 23px;
  70. font-weight: 700;
  71. color: #004280;
  72. letter-spacing: 1px;
  73. }
  74. }
  75. }
  76. .ant-layout-content{
  77. display: flex !important;
  78. height: calc(100vh - 56px) !important;
  79. overflow: hidden;
  80. .ant-layout-sider{
  81. height: 100%;
  82. overflow: auto;
  83. }
  84. .iotmenu-content-container{
  85. width: 100%;
  86. height: calc(100% - 6px);
  87. overflow: hidden;
  88. }
  89. }
  90. }
  91. /** 内容设置 */
  92. .iotmenu-content-container, .iotmenu-modal-box{
  93. .iotmenu-content-layout{
  94. height: 100%;
  95. overflow: hidden;
  96. /** 系统自带的main */
  97. .main{
  98. height: 100%;
  99. overflow: hidden;
  100. }
  101. // .iotmenu-content-page{
  102. // height: 100%;
  103. // overflow: hidden;
  104. // }
  105. .iotmenu-content-header{
  106. width: 160px;
  107. // width: 210px;
  108. height: 48px;
  109. display: flex;
  110. justify-content: center;
  111. align-items: center;
  112. padding: 12px 16px 12px 24px;
  113. border-radius: 8px 8px 0 0 ;
  114. color: @iotTpmFontColor;
  115. background: @iotTpmContentBg;
  116. font-size: 16px;
  117. font-weight: 700;
  118. // color: #008cd6;
  119. // box-shadow: 0 0 8px 0 rgba(2,72,109,.15);
  120. .anticon{
  121. color: #008cd6;
  122. padding-right: 12px;
  123. }
  124. }
  125. .iotmenu-content{
  126. // height: calc(100% - 48px);
  127. height: calc(100vh - @iotHHeight - 48px - 6px);
  128. background: @iotTpmContentBg;
  129. overflow: auto;
  130. }
  131. }
  132. // primary状态按钮
  133. .ant-btn-primary{
  134. background: #008cd6 !important;
  135. border-color: #1890ff!important;
  136. font-size: 16px;
  137. }
  138. // 搜索
  139. .table-page-search-wrapper{
  140. .iotmenu-search-container{
  141. height: 48px !important;
  142. display: flex;
  143. // justify-content: space-between;
  144. align-items: center;
  145. // border-bottom: 1px solid #e1e1e1;
  146. .item-search-btn{
  147. margin-right: 4px;
  148. }
  149. .item-search{
  150. flex: 1;
  151. margin-right: 4px;
  152. max-width: 220px;
  153. }
  154. .item-search:last-of-type{
  155. margin-right: 0;
  156. }
  157. // .query-group-cust{
  158. // min-width: auto !important;
  159. // }
  160. .ant-select{
  161. width: 100%;
  162. }
  163. .ant-calendar-picker{
  164. min-width: auto !important;
  165. width: 100%;
  166. }
  167. .ant-btn-primary[disabled]{
  168. color: #fff !important;
  169. }
  170. }
  171. .ant-form{
  172. .ant-form-item{
  173. .ant-form-item-label label{
  174. color: @iotTpmFontColor;
  175. font-size: 16px;
  176. font-weight: 400;
  177. }
  178. }
  179. }
  180. }
  181. a{
  182. color: #008cd6;
  183. }
  184. //
  185. .ant-input, .ant-select-selection{
  186. background: transparent;
  187. color: #323233;
  188. }
  189. // 表格
  190. .ant-table{
  191. background: transparent !important;
  192. .ant-table-thead{
  193. tr{
  194. th{
  195. color: @iotTpmFontColor !important;
  196. font-size: 16px !important;
  197. font-weight: 700 !important;
  198. }
  199. }
  200. }
  201. .ant-table-tbody{
  202. tr{
  203. td{
  204. color: @iotTpmFontColor !important;
  205. font-size: 15px;
  206. }
  207. }
  208. }
  209. .edit-btn{
  210. display: inline-block;
  211. width: 24px;
  212. height: 24px;
  213. margin: 4px 3px;
  214. cursor: pointer;
  215. background: url(../edit.svg);
  216. }
  217. .edit-btn:hover{
  218. background: url(../edit-hover.svg);
  219. }
  220. .copy-btn{
  221. display: inline-block;
  222. width: 24px;
  223. height: 24px;
  224. margin: 4px 3px;
  225. cursor: pointer;
  226. background: url(../copy.svg);
  227. }
  228. .copy-btn:hover{
  229. background: url(../copy-hover.svg);
  230. }
  231. .delete-btn{
  232. display: inline-block;
  233. width: 24px;
  234. height: 24px;
  235. margin: 4px 3px;
  236. cursor: pointer;
  237. background: url(../delete.svg);
  238. }
  239. .delete-btn:hover{
  240. background: url(../delete-hover.svg);
  241. }
  242. // 取消行悬浮变色
  243. .ant-table-thead > tr.ant-table-row-hover:not(.ant-table-expanded-row):not(.ant-table-row-selected) > td, .ant-table-tbody > tr.ant-table-row-hover:not(.ant-table-expanded-row):not(.ant-table-row-selected) > td, .ant-table-thead > tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected) > td, .ant-table-tbody > tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected) > td{
  244. background: transparent;
  245. }
  246. }
  247. .ant-table-fixed-left table, .ant-table-fixed-right table{
  248. background: #FAFAFA;
  249. }
  250. // tab标签
  251. .ant-tabs{
  252. .ant-tabs-bar{
  253. margin: 0 !important;
  254. border: none;
  255. .ant-tabs-nav-container{
  256. height: 48px !important;
  257. margin: 0;
  258. // tab行
  259. .ant-tabs-nav-wrap{
  260. height: 48px !important;
  261. // 所有tab标签
  262. .ant-tabs-nav{
  263. // 每个tab标签
  264. .ant-tabs-tab{
  265. width: 160px;
  266. height: 48px !important;
  267. line-height: 48px;
  268. font-size: 16px;
  269. text-align: center;
  270. color: #89898a;
  271. padding: 0 24px;
  272. font-weight: 700;
  273. background: transparent;
  274. border: transparent;
  275. border-radius: 8px 8px 0 0;
  276. }
  277. // 选中的tab
  278. .ant-tabs-tab-active{
  279. color: @iotTpmFontColor;
  280. // color: #008cd6;
  281. background: #fafafa;
  282. border: transparent;
  283. box-shadow: 0 3px 8px 0 rgba(2,72,109,.15);
  284. .anticon{
  285. color: #008cd6;
  286. }
  287. }
  288. }
  289. }
  290. }
  291. }
  292. // 选中tab
  293. .ant-tabs-tab-active{
  294. }
  295. }
  296. // 详情页面头部
  297. .interlock-detail-header{
  298. font-size: 22px;
  299. font-weight: 700;
  300. color: @iotTpmFontColor;
  301. padding: 8px 24px;
  302. line-height: 40px;
  303. .anticon{
  304. color: #008cd6;
  305. padding-right: 8px;
  306. }
  307. }
  308. .ant-card{
  309. background: @iotTpmContentBg;
  310. height: 100%;
  311. overflow: auto;
  312. .ant-card-body{
  313. padding: 0 24px;
  314. }
  315. }
  316. /** tag不同样式 */
  317. .normal-tag{
  318. color: #52c41a;
  319. font-weight: 600;
  320. // color: #52c41a;
  321. // background: #f6ffed;
  322. // border-color: #b7eb8f;
  323. // display: inline-block;
  324. // height: 24px;
  325. // line-height: 24px;
  326. // text-align: center;
  327. // font-size: 15px;
  328. // padding: 0 8px;
  329. // border-radius: 16px;
  330. // background: linear-gradient(0deg, rgba(182, 240, 211, 0.5), rgba(182, 240, 211, 0.5)), rgb(255, 255, 255);
  331. // border: 1px solid rgb(182, 240, 211);
  332. // color: rgb(0, 204, 102);
  333. }
  334. .abnormal-tag{
  335. // color: #fb6666;
  336. color: red;
  337. font-weight: 600;
  338. // color: #fa8c16;
  339. // background: #fff7e6;
  340. // border-color: #ffd591;
  341. // display: inline-block;
  342. // height: 24px;
  343. // line-height: 24px;
  344. // text-align: center;
  345. // font-size: 15px;
  346. // padding: 0 8px;
  347. // border-radius: 16px;
  348. // // background: linear-gradient(0deg, rgba(203, 54, 4, 0.5), rgba(205, 80, 36, 0.5)), #ffffff;
  349. // background: linear-gradient(0deg, rgba(195, 65, 21, 0.5), rgba(197, 56, 7, 0.5)), #ffffff;
  350. // border: 1px solid #D65F37;
  351. // // border: 1px solid #D45930;
  352. // color: #fff;
  353. }
  354. }
  355. .iotmenu-modal-box{
  356. .ant-modal{
  357. .ant-modal-title{
  358. font-size: 18px;
  359. }
  360. .ant-modal-body{
  361. .ant-form{
  362. label{
  363. font-size: 15px !important;
  364. color: #323233;
  365. }
  366. .ant-form-item-children{
  367. font-size: 15px;
  368. }
  369. .ant-form-item{
  370. .ant-form-item-label{
  371. }
  372. .ant-form-item-control{
  373. font-size: 15px !important;
  374. }
  375. }
  376. }
  377. }
  378. .ant-input, .ant-cascader-picker, .ant-select{
  379. font-size: 15px !important;
  380. }
  381. // 分割线
  382. .ant-divider{
  383. font-size: 16px;
  384. font-weight: 600;
  385. }
  386. // // 表格
  387. // .ant-table{
  388. // // background: transparent !important;
  389. // .ant-table-thead{
  390. // tr{
  391. // th{
  392. // color: @iotTpmFontColor !important;
  393. // font-size: 15px !important;
  394. // font-weight: 700 !important;
  395. // }
  396. // }
  397. // }
  398. // .ant-table-tbody{
  399. // tr{
  400. // td{
  401. // color: @iotTpmFontColor !important;
  402. // font-size: 15px;
  403. // }
  404. // }
  405. // }
  406. // }
  407. .ant-table-fixed-left table, .ant-table-fixed-right table{
  408. background: #fff;
  409. }
  410. .ant-modal-footer{
  411. padding-right: 34px;
  412. .ant-btn{
  413. font-size: 17px;
  414. }
  415. }
  416. }
  417. }
  418. .ant-input[disabled]{
  419. color: rgba(0,0,0,.25) !important;
  420. background-color: #f5f5f5 !important;
  421. cursor: not-allowed;
  422. opacity: 1;
  423. }
  424. // 滚动条样式
  425. ::-webkit-scrollbar{
  426. width: 6px !important;
  427. }
  428. ::-webkit-scrollbar-track{
  429. background: #FFFFFF !important;
  430. }