interLock.less 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409
  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. .delete-btn{
  221. display: inline-block;
  222. width: 24px;
  223. height: 24px;
  224. margin: 4px 3px;
  225. cursor: pointer;
  226. background: url(../delete.svg);
  227. }
  228. .delete-btn:hover{
  229. background: url(../delete-hover.svg);
  230. }
  231. // 取消行悬浮变色
  232. .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{
  233. background: transparent;
  234. }
  235. }
  236. .ant-table-fixed-left table, .ant-table-fixed-right table{
  237. background: #FAFAFA;
  238. }
  239. // tab标签
  240. .ant-tabs{
  241. .ant-tabs-bar{
  242. margin: 0 !important;
  243. border: none;
  244. .ant-tabs-nav-container{
  245. height: 48px !important;
  246. margin: 0;
  247. // tab行
  248. .ant-tabs-nav-wrap{
  249. height: 48px !important;
  250. // 所有tab标签
  251. .ant-tabs-nav{
  252. // 每个tab标签
  253. .ant-tabs-tab{
  254. width: 160px;
  255. height: 48px !important;
  256. line-height: 48px;
  257. font-size: 16px;
  258. text-align: center;
  259. color: #89898a;
  260. padding: 0 24px;
  261. font-weight: 700;
  262. background: transparent;
  263. border: transparent;
  264. border-radius: 8px 8px 0 0;
  265. }
  266. // 选中的tab
  267. .ant-tabs-tab-active{
  268. color: @iotTpmFontColor;
  269. // color: #008cd6;
  270. background: #fafafa;
  271. border: transparent;
  272. box-shadow: 0 3px 8px 0 rgba(2,72,109,.15);
  273. .anticon{
  274. color: #008cd6;
  275. }
  276. }
  277. }
  278. }
  279. }
  280. }
  281. // 选中tab
  282. .ant-tabs-tab-active{
  283. }
  284. }
  285. // 详情页面头部
  286. .interlock-detail-header{
  287. font-size: 22px;
  288. font-weight: 700;
  289. color: @iotTpmFontColor;
  290. padding: 8px 24px;
  291. line-height: 40px;
  292. .anticon{
  293. color: #008cd6;
  294. padding-right: 8px;
  295. }
  296. }
  297. .ant-card{
  298. background: @iotTpmContentBg;
  299. .ant-card-body{
  300. padding: 0 24px;
  301. }
  302. }
  303. /** tag不同样式 */
  304. .normal-tag{
  305. // color: #52c41a;
  306. // color: #52c41a;
  307. // background: #f6ffed;
  308. // border-color: #b7eb8f;
  309. display: inline-block;
  310. height: 24px;
  311. line-height: 24px;
  312. text-align: center;
  313. font-size: 15px;
  314. padding: 0 8px;
  315. border-radius: 16px;
  316. background: linear-gradient(0deg, rgba(182, 240, 211, 0.5), rgba(182, 240, 211, 0.5)), rgb(255, 255, 255);
  317. border: 1px solid rgb(182, 240, 211);
  318. color: rgb(0, 204, 102);
  319. }
  320. .abnormal-tag{
  321. // color: #fb6666;
  322. // color: #fa8c16;
  323. // background: #fff7e6;
  324. // border-color: #ffd591;
  325. display: inline-block;
  326. height: 24px;
  327. line-height: 24px;
  328. text-align: center;
  329. font-size: 15px;
  330. padding: 0 8px;
  331. border-radius: 16px;
  332. // background: linear-gradient(0deg, rgba(203, 54, 4, 0.5), rgba(205, 80, 36, 0.5)), #ffffff;
  333. background: linear-gradient(0deg, rgba(195, 65, 21, 0.5), rgba(197, 56, 7, 0.5)), #ffffff;
  334. border: 1px solid #D65F37;
  335. // border: 1px solid #D45930;
  336. color: #fff;
  337. }
  338. }
  339. .iotmenu-modal-box{
  340. .ant-modal{
  341. .ant-modal-title{
  342. font-size: 18px;
  343. }
  344. .ant-modal-body{
  345. .ant-form{
  346. label{
  347. font-size: 15px !important;
  348. color: #323233;
  349. }
  350. .ant-form-item-children{
  351. font-size: 15px;
  352. }
  353. .ant-form-item{
  354. .ant-form-item-label{
  355. }
  356. .ant-form-item-control{
  357. font-size: 15px !important;
  358. }
  359. }
  360. }
  361. }
  362. // 分割线
  363. .ant-divider{
  364. font-size: 14px;
  365. }
  366. // 表格
  367. .ant-table{
  368. // background: transparent !important;
  369. .ant-table-thead{
  370. tr{
  371. th{
  372. color: @iotTpmFontColor !important;
  373. font-size: 15px !important;
  374. font-weight: 700 !important;
  375. }
  376. }
  377. }
  378. .ant-table-tbody{
  379. tr{
  380. td{
  381. color: @iotTpmFontColor !important;
  382. font-size: 15px;
  383. }
  384. }
  385. }
  386. }
  387. .ant-table-fixed-left table, .ant-table-fixed-right table{
  388. background: #fff;
  389. }
  390. }
  391. }
  392. // 滚动条样式
  393. ::-webkit-scrollbar{
  394. width: 6px !important;
  395. }
  396. ::-webkit-scrollbar-track{
  397. background: #FFFFFF !important;
  398. }