index.less 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518
  1. @import 'ant-design-vue/dist/antd';
  2. @import 'ant-design-vue/es/style/themes/default.less';
  3. @import './realdark';
  4. @import './default';
  5. /* 全局 */
  6. /*
  7. #app, body, html {
  8. width: 100%;
  9. height: 100%;
  10. background-color: #f6f8f9;
  11. }
  12. */
  13. .body, html {
  14. width: 100%;
  15. height: 100%;
  16. background-color: #f6f8f9;
  17. }
  18. a, button, input, textarea {
  19. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  20. box-sizing: border-box;
  21. outline: none !important;
  22. -webkit-appearance: none;
  23. }
  24. * {
  25. margin: 0;
  26. padding: 0;
  27. box-sizing: border-box;
  28. outline: none;
  29. }
  30. /* 大布局样式 */
  31. .admin-ui {
  32. overflow: hidden;
  33. height: 100%;
  34. display: flex;
  35. flex-flow: column;
  36. }
  37. .admin-ui-wrapper {
  38. display: flex;
  39. flex: 1;
  40. overflow: auto;
  41. }
  42. .admin-ui-main {
  43. display: flex;
  44. flex-direction: column;
  45. height: 100%;
  46. flex: 1;
  47. }
  48. .main-content-wrapper{
  49. padding: 11px 11px 0px;
  50. overflow-y: auto;
  51. overflow-x: hidden;
  52. }
  53. .main-bottom-wrapper {
  54. height: 60px;
  55. margin-top: 25px;
  56. text-align: center;
  57. flex: auto;
  58. display: flex;
  59. align-items: flex-end;
  60. justify-content: center;
  61. padding-bottom: 25px;
  62. }
  63. /* 双排菜单布局 */
  64. .snowy-doublerow-layout-menu {
  65. padding-left: 5px;
  66. padding-right: 5px;
  67. line-height: 0;
  68. align-items: center;
  69. }
  70. .snowy-doublerow-layout-menu-item-fort-div {
  71. overflow: hidden;
  72. text-overflow: ellipsis;
  73. opacity: 1;
  74. display: block;
  75. flex: auto;
  76. }
  77. .snowy-doublerow-layout-menu-item-fort-div-span {
  78. font-size: 12px;
  79. text-overflow: ellipsis;
  80. }
  81. .snowy-doublerow-side-top {
  82. border-bottom: 1px solid var(--border-color-split);
  83. height: 50px;
  84. line-height: 50px;
  85. padding-left: 20px;
  86. font-size: 12px
  87. }
  88. // 应用主题色
  89. .snowy-doublerow-side-top-primary-color {
  90. background-color: var(--primary-color);
  91. .snowy-title {
  92. color: white;
  93. }
  94. }
  95. .snowy-title{
  96. color: var(--text-color);
  97. }
  98. .ant-layout-sider-collapsed{
  99. .logo-bar>span{
  100. display: none;
  101. }
  102. }
  103. .ant-layout-sider-dark{
  104. .snowy-header-logo{
  105. color: #fff;
  106. }
  107. }
  108. /* 设置抽屉样式 */
  109. .layout-setting {
  110. position: fixed;
  111. width: 40px;
  112. height: 40px;
  113. border-radius: 3px 0 0 3px;
  114. bottom: 50%;
  115. right: 0px;
  116. z-index: 100;
  117. background: @primary-color;
  118. display: flex;
  119. flex-direction: column;
  120. align-items: center;
  121. justify-content: center;
  122. cursor: pointer;
  123. }
  124. .layout-setting i {
  125. color: #fff;
  126. }
  127. /* 头部 */
  128. .snowy-header {
  129. height: 50px;
  130. display: flex;
  131. justify-content: space-between;
  132. border-bottom: 1px solid var(--border-color-split);
  133. box-shadow: 0 1px 4px rgba(0, 21, 41, .08);
  134. background-color: var(--body-background);
  135. .ant-menu-item{
  136. height: 48px;
  137. line-height: 48px;
  138. }
  139. }
  140. // 应用主题色
  141. .snowy-header-primary-color {
  142. color: white;
  143. background-color: var(--primary-color);
  144. .ant-badge{
  145. color: white;
  146. }
  147. .ant-breadcrumb-link {
  148. color: white;
  149. }
  150. .ant-breadcrumb-separator {
  151. color: white;
  152. }
  153. .ant-menu-light .ant-menu-item:hover{
  154. color: #ccc;
  155. background-color: var(--primary-7);
  156. }
  157. }
  158. .ant-layout-sider-dark {
  159. .snowy-title{
  160. color: #fff;
  161. }
  162. }
  163. .snowy-header-left {
  164. display: flex;
  165. align-items: center;
  166. padding-left: 20px;
  167. }
  168. .snowy-header-left .menu-unfold-outlined {
  169. padding: 0 12px
  170. }
  171. .snowy-header-right {
  172. display: flex;
  173. align-items: center;
  174. }
  175. .snowy-header-logo {
  176. height: 50px;
  177. display: flex;
  178. justify-content: space-between;
  179. border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  180. }
  181. .snowy-header-logo-primary-color {
  182. color: white;
  183. background-color: var(--primary-color);
  184. }
  185. .snowy-header-logo .logo-bar {
  186. font-weight: bold;
  187. display: flex;
  188. align-items: center;
  189. font-size: 20px;
  190. }
  191. .snowy-header-logo .logo-bar .logo {
  192. margin-right: 10px;
  193. width: 35px;
  194. height: 35px;
  195. }
  196. /* 面包屑 */
  197. .admin-ui-topbar {
  198. padding-left: 15px
  199. }
  200. .admin-ui-topbar .left-panel {
  201. display: flex;
  202. align-items: center;
  203. }
  204. .admin-ui-topbar .right-panel {
  205. display: flex;
  206. align-items: center;
  207. }
  208. .panel-item {
  209. padding: 0 10px;
  210. cursor: pointer;
  211. height: 100%;
  212. display: flex;
  213. align-items: center;
  214. }
  215. .panel-item:hover {
  216. background: var(--header-color-split);
  217. }
  218. /* 多标签 */
  219. .snowy-tags {
  220. height: 40px;
  221. background: var(--component-background);
  222. }
  223. .snowy-tags ul {
  224. display: flex;
  225. overflow: hidden;
  226. padding-left: 0;
  227. }
  228. .snowy-tags li {
  229. cursor: pointer;
  230. display: inline-block;
  231. float: left;
  232. line-height: 39.5px;
  233. position: relative;
  234. flex-shrink: 0;
  235. }
  236. .snowy-tags li::after {
  237. content: " ";
  238. width: 1px;
  239. height: 100%;
  240. position: absolute;
  241. right: 0px;
  242. background-image: linear-gradient(#fff, #e6e6e6);
  243. }
  244. .snowy-tags li a {
  245. padding: 0 10px;
  246. width: 100%;
  247. height: 100%;
  248. text-decoration: none;
  249. display: flex;
  250. align-items: center;
  251. }
  252. .snowy-tags li i {
  253. margin-left: 10px;
  254. border-radius: 3px;
  255. width: 18px;
  256. height: 18px;
  257. display: flex;
  258. align-items: center;
  259. justify-content: center;
  260. }
  261. .snowy-tags li i:hover {
  262. background: rgba(0, 0, 0, .2);
  263. color: @body-background;
  264. }
  265. .snowy-tags li:hover {
  266. background: @body-background;
  267. }
  268. .snowy-tags li.active {
  269. background: @primary-color;
  270. }
  271. .snowy-tags li.active a {
  272. color: #fff;
  273. }
  274. .snowy-tags li.sortable-ghost {
  275. opacity: 0;
  276. }
  277. .snowy-header-tags-right {
  278. margin-right: 10px;
  279. }
  280. .contextmenu {
  281. position: fixed;
  282. width: 200px;
  283. margin:0;
  284. border-radius: 0px;
  285. background: @body-background;
  286. border: 1px solid var(--border-color-split);
  287. box-shadow: 0 2px 12px 0 rgba(0,0,0,.1);
  288. z-index: 3000;
  289. list-style-type: none;
  290. padding: 10px 0;
  291. }
  292. .contextmenu hr {
  293. margin:5px 0;
  294. border: none;
  295. height: 1px;
  296. font-size: 0px;
  297. background-color: var(--border-color-split)
  298. }
  299. .contextmenu li {
  300. display: flex;
  301. align-items: center;
  302. margin:0;
  303. cursor: pointer;
  304. line-height: 30px;
  305. padding: 0 17px;
  306. color: @text-color;
  307. }
  308. .contextmenu li i {
  309. font-size: 14px;
  310. margin-right: 10px;
  311. }
  312. .contextmenu li:hover {
  313. background-color: @component-background;
  314. color: #66b1ff;
  315. }
  316. .contextmenu li.disabled {
  317. cursor: not-allowed;
  318. color: #bbb;
  319. background: transparent;
  320. }
  321. /*页面最大化*/
  322. .admin-ui.main-maximize {
  323. .main-maximize-exit {
  324. display: block;
  325. }
  326. .ant-layout-sider, .ant-layout-sider-dark, .layout-setting, .snowy-header {
  327. display: none;
  328. }
  329. }
  330. .dis-flex{
  331. display: flex;
  332. }
  333. .dis-flex-end {
  334. display: flex;
  335. justify-content: flex-end;
  336. }
  337. .dis-flex-sb{
  338. display: flex;
  339. justify-content:space-between;
  340. }
  341. .dis-flex-start{
  342. display: flex;
  343. justify-content: flex-start;
  344. }
  345. .margin-top {
  346. margin-top: 15px;
  347. }
  348. /* 最大化后的退出按钮 */
  349. .main-maximize-exit {
  350. display: none;
  351. position: fixed;
  352. z-index: 3000;
  353. top: -20px;
  354. padding-top: 18px;
  355. left: 50%;
  356. margin-left: -20px;
  357. border-radius: 50%;
  358. width: 40px;
  359. height: 40px;
  360. cursor: pointer;
  361. background: rgba(0, 0, 0, 0.2);
  362. text-align: center;
  363. }
  364. .main-maximize-exit:hover {
  365. background: rgba(0, 0, 0, 0.4);
  366. }
  367. .ant-layout-sider{
  368. overflow: auto;
  369. }
  370. /* 重写antdv的一些样式,定义到全局 */
  371. .ant-card-head-title {
  372. padding: 12px 0!important;
  373. }
  374. .ant-tabs-large > .ant-tabs-nav .ant-tabs-tab {
  375. padding: 12px 0!important;
  376. }
  377. .ant-card-extra {
  378. padding: 12px 0!important;
  379. }
  380. /* 重写antdv的表格滚动条 */
  381. .ant-table-body, .ant-table-content{
  382. &::-webkit-scrollbar {
  383. height: 10px;
  384. width: 10px;
  385. }
  386. &::-webkit-scrollbar-thumb {
  387. border-radius: 10px;
  388. -webkit-box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.1);
  389. background: @border-color-split;
  390. }
  391. &::-webkit-scrollbar-track {
  392. -webkit-box-shadow: 0;
  393. border-radius: 10px;
  394. background: @background-color-base;
  395. }
  396. }
  397. .left-span-label {
  398. border-left: 4px solid @primary-color;
  399. font-size: 15px;
  400. color: #212121;
  401. font-weight: 600;
  402. padding-left: 8px;
  403. }
  404. // 滚动条,需要哪里,加哪个class
  405. body,
  406. .ant-scrolling-effect,
  407. .ant-drawer-wrapper-body,
  408. .ant-drawer-body,
  409. .admin-ui,
  410. .ant-modal-wrap,
  411. .ant-transfer-list-content,
  412. .ant-card,
  413. .ant-layout-sider,
  414. .CodeMirror-scroll,
  415. .main-content-wrapper,
  416. .xn-icon-select-list,
  417. .form-user-table,
  418. .scopeDefineOrgTreeDiv,
  419. .user-table,
  420. .role-table,
  421. .org-table,
  422. .pos-table,
  423. .poi-list,
  424. .snowy-orgpos-vis,
  425. .index-message-list,
  426. .ant-picker-time-panel-column,
  427. .timeline-div,
  428. .gen-preview-content,
  429. .ant-menu,
  430. .admin-ui-main{
  431. &::-webkit-scrollbar {
  432. /*滚动条整体样式*/
  433. width : 0px; /*高宽分别对应横竖滚动条的尺寸*/
  434. height: 0px;
  435. }
  436. &::-webkit-scrollbar-thumb {
  437. /*滚动条里面小方块*/
  438. border-radius : 10px;
  439. background-color: @component-background; // skyblue
  440. background-image: -webkit-linear-gradient(
  441. 45deg,
  442. rgba(255, 255, 255, 0.2) 25%,
  443. transparent 25%,
  444. transparent 50%,
  445. rgba(255, 255, 255, 0.2) 50%,
  446. rgba(255, 255, 255, 0.2) 75%,
  447. transparent 75%,
  448. transparent
  449. );
  450. }
  451. &::-webkit-scrollbar-track {
  452. /*滚动条里面轨道*/
  453. box-shadow : inset 0 0 2px rgba(0, 0, 0, 0.2);
  454. background : @component-background;
  455. border-radius: 5px;
  456. opacity: 0;
  457. display: none;
  458. }
  459. }
  460. .json-box-9136076486841527{
  461. overflow: hidden!important;;
  462. .CodeMirror-scrollbar-filler{
  463. display: none!important;
  464. }
  465. }