global.less 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643
  1. @import './index.less';
  2. body {
  3. &.colorWeak {
  4. filter: invert(80%);
  5. }
  6. &.userLayout {
  7. overflow: auto;
  8. }
  9. &.small{
  10. .ant-form,.ant-form label,.ant-form-item,.ant-card,.ant-table,.ant-btn-sm,.ant-btn,.ant-btn-primary.button-error,
  11. .ant-alert,.ant-collapse,.ant-descriptions-item-label,.ant-descriptions-item-content,.ant-checkbox-wrapper,.ant-radio-wrapper,
  12. .table-page-search-wrapper .ant-form.ant-form-inline .ant-form-item .ant-input, .table-page-search-wrapper .ant-form.ant-form-inline .ant-form-item .ant-select-selection,
  13. .ant-cascader-menus,.ant-select-dropdown,.ant-select-dropdown-menu-item,.ant-collapse,.ant-page-header-heading-sub-title,.ant-input-affix-wrapper,.ant-input,.ant-select,
  14. .ant-menu-vertical .ant-menu-item, .ant-menu-vertical-left .ant-menu-item, .ant-menu-vertical-right .ant-menu-item, .ant-menu-inline .ant-menu-item, .ant-menu-vertical .ant-menu-submenu-title,
  15. .ant-menu-vertical-left .ant-menu-submenu-title, .ant-menu-vertical-right .ant-menu-submenu-title, .ant-menu-inline .ant-menu-submenu-title,.ant-tabs-nav-container,
  16. .ant-badge,.layout.ant-layout .header .user-wrapper .action, .layout.ant-layout .top-nav-header-index .user-wrapper .action,.ant-dropdown,.ant-dropdown-menu-item, .ant-dropdown-menu-submenu-title,
  17. .content-box,.ant-modal-body,.ant-modal-confirm-body .ant-modal-confirm-title,.ant-modal-confirm-body .ant-modal-confirm-content,.ant-modal-title,.ant-cascader-picker{
  18. font-size: 12px!important;
  19. }
  20. .ve-table .ve-table-container .ve-table-content-wrapper table.ve-table-content tbody.ve-table-body tr.ve-table-body-tr td.ve-table-body-td, .ve-table .ve-table-container .ve-table-content-wrapper table.ve-table-content tbody.ve-table-body tr.ve-table-expand-tr td.ve-table-body-td, .ve-table .ve-table-container .ve-table-content-wrapper table.ve-table-content tbody.ve-table-body tr.ve-table-body-tr td.ve-table-expand-td, .ve-table .ve-table-container .ve-table-content-wrapper table.ve-table-content tbody.ve-table-body tr.ve-table-expand-tr td.ve-table-expand-td{
  21. font-size: 12px!important;
  22. }
  23. }
  24. &.middle{
  25. .ant-form,.ant-form label,.ant-form-item,.ant-card,.ant-table,.ant-btn-sm,.ant-btn,.ant-btn-primary.button-error,
  26. .ant-alert,.ant-collapse,.ant-descriptions-item-label,.ant-descriptions-item-content,.ant-checkbox-wrapper,.ant-radio-wrapper,
  27. .table-page-search-wrapper .ant-form.ant-form-inline .ant-form-item .ant-input, .table-page-search-wrapper .ant-form.ant-form-inline .ant-form-item .ant-select-selection,
  28. .ant-cascader-menus,.ant-select-dropdown,.ant-select-dropdown-menu-item,.ant-collapse,.ant-page-header-heading-sub-title,.ant-input-affix-wrapper,.ant-input,.ant-select,
  29. .ant-menu-vertical .ant-menu-item, .ant-menu-vertical-left .ant-menu-item, .ant-menu-vertical-right .ant-menu-item, .ant-menu-inline .ant-menu-item, .ant-menu-vertical .ant-menu-submenu-title,
  30. .ant-menu-vertical-left .ant-menu-submenu-title, .ant-menu-vertical-right .ant-menu-submenu-title, .ant-menu-inline .ant-menu-submenu-title,.ant-tabs-nav-container,
  31. .ant-badge,.layout.ant-layout .header .user-wrapper .action, .layout.ant-layout .top-nav-header-index .user-wrapper .action,.ant-dropdown,.ant-dropdown-menu-item, .ant-dropdown-menu-submenu-title,
  32. .content-box,.ant-modal-body,.ant-modal-confirm-body .ant-modal-confirm-title,.ant-modal-confirm-body .ant-modal-confirm-content,.ant-modal-title,.ant-modal-close-x,.ant-cascader-picker{
  33. font-size: 14px!important;
  34. }
  35. .ve-table .ve-table-container .ve-table-content-wrapper table.ve-table-content tbody.ve-table-body tr.ve-table-body-tr td.ve-table-body-td, .ve-table .ve-table-container .ve-table-content-wrapper table.ve-table-content tbody.ve-table-body tr.ve-table-expand-tr td.ve-table-body-td, .ve-table .ve-table-container .ve-table-content-wrapper table.ve-table-content tbody.ve-table-body tr.ve-table-body-tr td.ve-table-expand-td, .ve-table .ve-table-container .ve-table-content-wrapper table.ve-table-content tbody.ve-table-body tr.ve-table-expand-tr td.ve-table-expand-td{
  36. font-size: 14px!important;
  37. }
  38. }
  39. &.large{
  40. .ant-form,.ant-form label,.ant-form-item,.ant-card,.ant-table,.ant-btn-sm,.ant-btn,.ant-btn-primary.button-error,
  41. .ant-alert,.ant-collapse,.ant-descriptions-item-label,.ant-descriptions-item-content,.ant-checkbox-wrapper,.ant-radio-wrapper,
  42. .table-page-search-wrapper .ant-form.ant-form-inline .ant-form-item .ant-input, .table-page-search-wrapper .ant-form.ant-form-inline .ant-form-item .ant-select-selection,
  43. .ant-cascader-menus,.ant-select-dropdown,.ant-select-dropdown-menu-item,.ant-collapse,.ant-page-header-heading-sub-title,.ant-input-affix-wrapper,.ant-input,.ant-select,
  44. .ant-menu-vertical .ant-menu-item, .ant-menu-vertical-left .ant-menu-item, .ant-menu-vertical-right .ant-menu-item, .ant-menu-inline .ant-menu-item, .ant-menu-vertical .ant-menu-submenu-title,
  45. .ant-menu-vertical-left .ant-menu-submenu-title, .ant-menu-vertical-right .ant-menu-submenu-title, .ant-menu-inline .ant-menu-submenu-title,.ant-tabs-nav-container,
  46. .ant-badge,.layout.ant-layout .header .user-wrapper .action, .layout.ant-layout .top-nav-header-index .user-wrapper .action,.ant-dropdown,.ant-dropdown-menu-item, .ant-dropdown-menu-submenu-title,
  47. .content-box,.ant-modal-body,.ant-modal-confirm-body .ant-modal-confirm-title,.ant-modal-confirm-body .ant-modal-confirm-content,.ant-modal-title,.ant-modal-close-x,.ant-cascader-picker{
  48. font-size: 16px!important;
  49. }
  50. .ve-table .ve-table-container .ve-table-content-wrapper table.ve-table-content tbody.ve-table-body tr.ve-table-body-tr td.ve-table-body-td, .ve-table .ve-table-container .ve-table-content-wrapper table.ve-table-content tbody.ve-table-body tr.ve-table-expand-tr td.ve-table-body-td, .ve-table .ve-table-container .ve-table-content-wrapper table.ve-table-content tbody.ve-table-body tr.ve-table-body-tr td.ve-table-expand-td, .ve-table .ve-table-container .ve-table-content-wrapper table.ve-table-content tbody.ve-table-body tr.ve-table-expand-tr td.ve-table-expand-td{
  51. font-size: 16px!important;
  52. }
  53. }
  54. }
  55. .layout.ant-layout {
  56. height: auto;
  57. overflow-x: hidden;
  58. &.mobile,
  59. &.tablet {
  60. .ant-layout-content {
  61. .content {
  62. margin: 12px 0 0;
  63. }
  64. }
  65. /**
  66. * ant-table-wrapper
  67. * 覆盖的表格手机模式样式,如果想修改在手机上表格最低宽度,可以在这里改动
  68. */
  69. .ant-table-wrapper {
  70. .ant-table-content {
  71. overflow-y: auto;
  72. }
  73. .ant-table-body {
  74. min-width: 800px;
  75. }
  76. }
  77. .topmenu {
  78. /* 必须为 topmenu 才能启用流式布局 */
  79. &.content-width-Fluid {
  80. .header-index-wide {
  81. margin-left: 0;
  82. }
  83. }
  84. }
  85. }
  86. &.mobile {
  87. .sidemenu {
  88. .ant-header-fixedHeader {
  89. &.ant-header-side-opened,
  90. &.ant-header-side-closed {
  91. width: 100%;
  92. }
  93. }
  94. }
  95. }
  96. &.ant-layout-has-sider {
  97. flex-direction: row;
  98. }
  99. .trigger {
  100. font-size: 20px;
  101. line-height: 44px;
  102. padding: 0 24px;
  103. cursor: pointer;
  104. transition: color 0.3s;
  105. &:hover {
  106. background: rgba(0, 0, 0, 0.025);
  107. }
  108. }
  109. .topmenu {
  110. .ant-header-fixedHeader {
  111. position: fixed;
  112. top: 0;
  113. right: 0;
  114. z-index: 9;
  115. width: 100%;
  116. transition: width 0.2s;
  117. &.ant-header-side-opened {
  118. width: 100%;
  119. }
  120. &.ant-header-side-closed {
  121. width: 100%;
  122. }
  123. }
  124. .ant-header-multiTab{
  125. margin: auto;
  126. }
  127. .ant-header-fixedMultiTab{
  128. position: fixed;
  129. z-index: 8;
  130. width: 100%;
  131. top: 44px;
  132. right:0;
  133. margin: auto;
  134. }
  135. /* 必须为 topmenu 才能启用流式布局 */
  136. &.content-width-Fluid {
  137. .header-index-wide {
  138. max-width: unset;
  139. .header-index-left {
  140. flex: 1 1 1000px;
  141. .logo{
  142. margin:0 25px;
  143. }
  144. .ant-menu.ant-menu-horizontal{
  145. max-width: calc(100vw - 160px - 238px - 25px);
  146. flex: 1 1 calc(100vw - 160px - 238px - 25px);
  147. }
  148. }
  149. .header-index-right{
  150. margin-right:25px;
  151. }
  152. }
  153. .page-header-index-wide {
  154. max-width: unset;
  155. }
  156. }
  157. }
  158. .sidemenu {
  159. .ant-header-fixedHeader {
  160. position: fixed;
  161. top: 0;
  162. right: 0;
  163. z-index: 9;
  164. width: 100%;
  165. transition: width 0.2s;
  166. &.ant-header-side-opened {
  167. width: calc(100% - 180px);
  168. }
  169. &.ant-header-side-closed {
  170. width: calc(100% - 80px);
  171. }
  172. }
  173. .ant-header-multiTab{
  174. margin: auto;
  175. }
  176. .ant-header-fixedMultiTab{
  177. position: fixed;
  178. z-index: 8;
  179. width: 100%;
  180. top: 44px;
  181. right:0;
  182. margin: auto;
  183. &.ant-header-side-opened {
  184. width: calc(100% - 180px);
  185. }
  186. &.ant-header-side-closed {
  187. width: calc(100% - 80px);
  188. }
  189. }
  190. }
  191. .header {
  192. height: 44px;
  193. padding: 0 12px 0 0;
  194. background: #fff;
  195. box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
  196. position: relative;
  197. display: flex;
  198. align-items: center;
  199. justify-content: space-between;
  200. }
  201. .ant-layout-header{
  202. height: 44px;
  203. line-height: 44px;
  204. }
  205. .header,
  206. .top-nav-header-index {
  207. .hleft{
  208. display:flex;
  209. }
  210. .user-wrapper {
  211. flex-grow:1;
  212. overflow: auto;
  213. height: 46px;
  214. .content-box{
  215. float:right;
  216. text-align: right;
  217. }
  218. .action {
  219. cursor: pointer;
  220. padding: 0 12px;
  221. display: inline-block;
  222. transition: all 0.3s;
  223. height: 100%;
  224. color: rgba(0, 0, 0);
  225. &:hover {
  226. background: rgba(0, 0, 0, 0.025);
  227. }
  228. .avatar {
  229. margin: 20px 8px 20px 0;
  230. color: #1890ff;
  231. background: hsla(0, 0%, 100%, 0.85);
  232. vertical-align: middle;
  233. }
  234. .icon {
  235. font-size: 16px;
  236. padding: 4px;
  237. }
  238. }
  239. }
  240. &.dark {
  241. .user-wrapper {
  242. .action {
  243. color: rgba(255, 255, 255, 0.85);
  244. a {
  245. color: rgba(255, 255, 255, 0.85);
  246. }
  247. &:hover {
  248. background: rgba(255, 255, 255, 0.16);
  249. }
  250. }
  251. }
  252. }
  253. }
  254. &.mobile,
  255. &.tablet {
  256. .top-nav-header-index {
  257. .header-index-wide {
  258. .header-index-left {
  259. .trigger {
  260. color: rgba(255, 255, 255, 0.85);
  261. padding: 0 12px;
  262. }
  263. .logo.top-nav-header {
  264. flex: 0 0 36px;
  265. text-align: center;
  266. line-height: 38px;
  267. h1 {
  268. display: none;
  269. }
  270. }
  271. }
  272. }
  273. &.light {
  274. .header-index-wide {
  275. .header-index-left {
  276. .trigger {
  277. color: rgba(0, 0, 0);
  278. }
  279. }
  280. }
  281. //
  282. }
  283. }
  284. }
  285. &.tablet {
  286. // overflow: hidden; text-overflow:ellipsis; white-space: nowrap;
  287. .top-nav-header-index {
  288. .header-index-wide {
  289. .header-index-left {
  290. .logo > a {
  291. overflow: hidden;
  292. text-overflow: ellipsis;
  293. white-space: nowrap;
  294. }
  295. }
  296. .ant-menu.ant-menu-horizontal {
  297. flex: 1 1 auto;
  298. white-space: normal;
  299. }
  300. }
  301. }
  302. }
  303. .top-nav-header-index {
  304. box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
  305. position: relative;
  306. transition: background 0.3s, width 0.2s;
  307. .header-index-wide {
  308. max-width: 1200px;
  309. margin: auto;
  310. padding-left: 0;
  311. display: flex;
  312. height: 44px;
  313. .ant-menu.ant-menu-horizontal {
  314. max-width: 835px;
  315. flex: 0 1 835px;
  316. border: none;
  317. height: 44px;
  318. line-height: 44px;
  319. }
  320. .header-index-left {
  321. flex: 0 1 1000px;
  322. display: flex;
  323. .logo.top-nav-header {
  324. flex: 0 0 auto;
  325. width: auto;
  326. height: 44px;
  327. position: relative;
  328. line-height: 44px;
  329. transition: all 0.3s;
  330. overflow: hidden;
  331. img,
  332. svg {
  333. display: inline-block;
  334. vertical-align: middle;
  335. height: 42px;
  336. width: 42px;
  337. }
  338. h1 {
  339. color: #fff;
  340. display: inline-block;
  341. vertical-align: top;
  342. font-size: 16px;
  343. margin: 0 0 0 12px;
  344. font-weight: 400;
  345. }
  346. }
  347. }
  348. .header-index-right {
  349. flex: 0 0 238px;
  350. align-self: flex-end;
  351. height: 44px;
  352. overflow: hidden;
  353. .content-box {
  354. float: right;
  355. }
  356. }
  357. }
  358. &.light {
  359. background-color: #fff;
  360. .header-index-wide {
  361. .header-index-left {
  362. .logo {
  363. h1 {
  364. color: #002140;
  365. }
  366. }
  367. }
  368. }
  369. }
  370. }
  371. // 内容区
  372. .layout-content {
  373. margin: 24px 24px 0px;
  374. height: 100%;
  375. height: 64px;
  376. padding: 0 12px 0 0;
  377. }
  378. // footer
  379. .ant-layout-footer {
  380. padding: 0;
  381. }
  382. }
  383. .topmenu {
  384. .page-header-index-wide {
  385. max-width: 1200px;
  386. margin: 0 auto;
  387. }
  388. }
  389. // drawer-sider 自定义
  390. .ant-drawer.drawer-sider {
  391. .sider {
  392. box-shadow: none;
  393. }
  394. &.dark {
  395. .ant-drawer-content {
  396. background-color: rgb(0, 21, 41);
  397. }
  398. }
  399. &.light {
  400. box-shadow: none;
  401. .ant-drawer-content {
  402. background-color: #fff;
  403. }
  404. }
  405. .ant-drawer-body {
  406. padding: 0;
  407. }
  408. }
  409. // 菜单样式
  410. .sider {
  411. box-shadow: 2px 0 6px rgba(0, 21, 41, 0.35);
  412. position: relative;
  413. z-index: @ant-global-sider-zindex;
  414. min-height: 100vh;
  415. .ant-layout-sider-children {
  416. overflow-y: hidden;
  417. &:hover {
  418. overflow-y: auto;
  419. }
  420. }
  421. &.ant-fixed-sidemenu {
  422. position: fixed;
  423. height: 100%;
  424. }
  425. .logo {
  426. position: relative;
  427. height: 44px;
  428. padding-left: 10px;
  429. overflow: hidden;
  430. line-height: 44px;
  431. background: #002140;
  432. transition: all .3s;
  433. img,
  434. svg,
  435. h1 {
  436. display: inline-block;
  437. vertical-align: middle;
  438. }
  439. img,
  440. svg {
  441. height: 42px;
  442. width: 42px;
  443. }
  444. h1 {
  445. color: #fff;
  446. font-size: 16px;
  447. margin: 0 0 0 6px;
  448. font-family: Avenir, Helvetica Neue, Arial, Helvetica, sans-serif;
  449. font-weight: 600;
  450. vertical-align: middle;
  451. }
  452. }
  453. &.ant-layout-sider-collapsed{
  454. .logo{
  455. // padding-left: 20px;
  456. }
  457. .ant-menu-inline-collapsed > .ant-menu-item .anticon,
  458. .ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-item .anticon,
  459. .ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-submenu > .ant-menu-submenu-title .anticon,
  460. .ant-menu-inline-collapsed > .ant-menu-submenu > .ant-menu-submenu-title .anticon{
  461. font-size: 18px;
  462. }
  463. }
  464. &.light {
  465. background-color: #fff;
  466. box-shadow: 2px 0px 8px 0px rgba(29, 35, 41, 0.05);
  467. .logo {
  468. background: #fff;
  469. box-shadow: 1px 1px 0px 0px #e8e8e8;
  470. h1 {
  471. color: unset;
  472. }
  473. }
  474. .ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected{
  475. background-color: #ffedee;
  476. }
  477. .ant-menu-light {
  478. border-right-color: transparent;
  479. }
  480. }
  481. }
  482. // 外置的样式控制
  483. .user-dropdown-menu {
  484. span {
  485. user-select: none;
  486. }
  487. }
  488. .user-dropdown-menu-wrapper.ant-dropdown-menu {
  489. padding: 4px 0;
  490. .ant-dropdown-menu-item {
  491. // width: 160px;
  492. width: 100%;
  493. }
  494. .ant-dropdown-menu-item > .anticon:first-child,
  495. .ant-dropdown-menu-item > a > .anticon:first-child,
  496. .ant-dropdown-menu-submenu-title > .anticon:first-child .ant-dropdown-menu-submenu-title > a > .anticon:first-child {
  497. min-width: 12px;
  498. margin-right: 8px;
  499. }
  500. }
  501. /*
  502. * The following styles are auto-applied to elements with
  503. * transition="page-transition" when their visibility is toggled
  504. * by Vue.js.
  505. *
  506. * You can easily play with the page transition by editing
  507. * these styles.
  508. */
  509. .vidio_cont .ant-modal-body {
  510. padding: 0;
  511. }
  512. .vidio_cont .ant-modal-close-x {
  513. width: 36px;
  514. height: 36px;
  515. text-align: center;
  516. line-height: 36px;
  517. color: #fff;
  518. background-color: rgba(0, 0, 0, 0.6);
  519. border-radius: 50%;
  520. position: absolute;
  521. top: 10px;
  522. right: 10px;
  523. }
  524. .page-transition-enter {
  525. opacity: 0;
  526. }
  527. .page-transition-leave-active {
  528. opacity: 0;
  529. }
  530. .page-transition-enter .page-transition-container,
  531. .page-transition-leave-active .page-transition-container {
  532. -webkit-transform: scale(1.1);
  533. transform: scale(1.1);
  534. }
  535. .setting-drawer-content{
  536. .ant-drawer-content{
  537. overflow: visible
  538. }
  539. }
  540. // 数据列表 样式
  541. .table-alert {
  542. margin-bottom: 16px;
  543. }
  544. .table-page-search-wrapper {
  545. .ant-form-inline {
  546. .ant-form-item {
  547. display: flex;
  548. margin-bottom: 24px;
  549. margin-right: 0;
  550. .ant-form-item-control-wrapper {
  551. flex: 1 1;
  552. display: inline-block;
  553. vertical-align: middle;
  554. }
  555. > .ant-form-item-label {
  556. line-height: 32px;
  557. padding-right: 8px;
  558. width: auto;
  559. }
  560. .ant-form-item-control {
  561. height: 32px;
  562. line-height: 32px;
  563. }
  564. }
  565. }
  566. .table-page-search-submitButtons {
  567. display: block;
  568. margin-bottom: 24px;
  569. white-space: nowrap;
  570. }
  571. }
  572. //编辑页面 头部单号样式
  573. .head-order-number{
  574. margin: 0 15px;
  575. color: #666;
  576. font-size: 14px;
  577. font-weight: 600;
  578. }