main.scss 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691
  1. /* Document
  2. ========================================================================== */
  3. /**
  4. * 1. Correct the line height in all browsers.
  5. * 2. Prevent adjustments of font size after orientation changes in iOS.
  6. */
  7. @import '@/style/iconfont.css';
  8. html {
  9. line-height: 1.15;
  10. /* 1 */
  11. -webkit-text-size-adjust: 100%;
  12. /* 2 */
  13. }
  14. /* Sections
  15. ========================================================================== */
  16. /**
  17. * Remove the margin in all browsers.
  18. */
  19. body {
  20. margin: 0;
  21. }
  22. /**
  23. * Render the `main` element consistently in IE.
  24. */
  25. main {
  26. display: block;
  27. }
  28. /**
  29. * Correct the font size and margin on `h1` elements within `section` and
  30. * `article` contexts in Chrome, Firefox, and Safari.
  31. */
  32. h1 {
  33. font-size: 2em;
  34. margin: 0.67em 0;
  35. }
  36. /* Grouping content
  37. ========================================================================== */
  38. /**
  39. * 1. Add the correct box sizing in Firefox.
  40. * 2. Show the overflow in Edge and IE.
  41. */
  42. hr {
  43. box-sizing: content-box;
  44. /* 1 */
  45. height: 0;
  46. /* 1 */
  47. overflow: visible;
  48. /* 2 */
  49. }
  50. /**
  51. * 1. Correct the inheritance and scaling of font size in all browsers.
  52. * 2. Correct the odd `em` font sizing in all browsers.
  53. */
  54. pre {
  55. font-family: monospace, monospace;
  56. /* 1 */
  57. font-size: 1em;
  58. /* 2 */
  59. }
  60. /* Text-level semantics
  61. ========================================================================== */
  62. /**
  63. * Remove the gray background on active links in IE 10.
  64. */
  65. a {
  66. background-color: transparent;
  67. }
  68. /**
  69. * 1. Remove the bottom border in Chrome 57-
  70. * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
  71. */
  72. abbr[title] {
  73. border-bottom: none;
  74. /* 1 */
  75. text-decoration: underline;
  76. /* 2 */
  77. text-decoration: underline dotted;
  78. /* 2 */
  79. }
  80. /**
  81. * Add the correct font weight in Chrome, Edge, and Safari.
  82. */
  83. b,
  84. strong {
  85. font-weight: bolder;
  86. }
  87. /**
  88. * 1. Correct the inheritance and scaling of font size in all browsers.
  89. * 2. Correct the odd `em` font sizing in all browsers.
  90. */
  91. code,
  92. kbd,
  93. samp {
  94. font-family: monospace, monospace;
  95. /* 1 */
  96. font-size: 1em;
  97. /* 2 */
  98. }
  99. /**
  100. * Add the correct font size in all browsers.
  101. */
  102. small {
  103. font-size: 80%;
  104. }
  105. /**
  106. * Prevent `sub` and `sup` elements from affecting the line height in
  107. * all browsers.
  108. */
  109. sub,
  110. sup {
  111. font-size: 75%;
  112. line-height: 0;
  113. position: relative;
  114. vertical-align: baseline;
  115. }
  116. sub {
  117. bottom: -0.25em;
  118. }
  119. sup {
  120. top: -0.5em;
  121. }
  122. /* Embedded content
  123. ========================================================================== */
  124. /**
  125. * Remove the border on images inside links in IE 10.
  126. */
  127. img {
  128. border-style: none;
  129. }
  130. /* Forms
  131. ========================================================================== */
  132. /**
  133. * 1. Change the font styles in all browsers.
  134. * 2. Remove the margin in Firefox and Safari.
  135. */
  136. button,
  137. input,
  138. optgroup,
  139. select,
  140. textarea {
  141. font-family: inherit;
  142. /* 1 */
  143. font-size: 100%;
  144. /* 1 */
  145. line-height: 1.15;
  146. /* 1 */
  147. margin: 0;
  148. /* 2 */
  149. }
  150. /**
  151. * Show the overflow in IE.
  152. * 1. Show the overflow in Edge.
  153. */
  154. button,
  155. input {
  156. /* 1 */
  157. overflow: visible;
  158. }
  159. /**
  160. * Remove the inheritance of text transform in Edge, Firefox, and IE.
  161. * 1. Remove the inheritance of text transform in Firefox.
  162. */
  163. button,
  164. select {
  165. /* 1 */
  166. text-transform: none;
  167. }
  168. /**
  169. * Correct the inability to style clickable types in iOS and Safari.
  170. */
  171. button,
  172. [type="button"],
  173. [type="reset"],
  174. [type="submit"] {
  175. -webkit-appearance: button;
  176. }
  177. /**
  178. * Remove the inner border and padding in Firefox.
  179. */
  180. button::-moz-focus-inner,
  181. [type="button"]::-moz-focus-inner,
  182. [type="reset"]::-moz-focus-inner,
  183. [type="submit"]::-moz-focus-inner {
  184. border-style: none;
  185. padding: 0;
  186. }
  187. /**
  188. * Restore the focus styles unset by the previous rule.
  189. */
  190. button:-moz-focusring,
  191. [type="button"]:-moz-focusring,
  192. [type="reset"]:-moz-focusring,
  193. [type="submit"]:-moz-focusring {
  194. outline: 1px dotted ButtonText;
  195. }
  196. /**
  197. * Correct the padding in Firefox.
  198. */
  199. fieldset {
  200. padding: 0.35em 0.75em 0.625em;
  201. }
  202. /**
  203. * 1. Correct the text wrapping in Edge and IE.
  204. * 2. Correct the color inheritance from `fieldset` elements in IE.
  205. * 3. Remove the padding so developers are not caught out when they zero out
  206. * `fieldset` elements in all browsers.
  207. */
  208. legend {
  209. box-sizing: border-box;
  210. /* 1 */
  211. color: inherit;
  212. /* 2 */
  213. display: table;
  214. /* 1 */
  215. max-width: 100%;
  216. /* 1 */
  217. padding: 0;
  218. /* 3 */
  219. white-space: normal;
  220. /* 1 */
  221. }
  222. /**
  223. * Add the correct vertical alignment in Chrome, Firefox, and Opera.
  224. */
  225. progress {
  226. vertical-align: baseline;
  227. }
  228. /**
  229. * Remove the default vertical scrollbar in IE 10+.
  230. */
  231. textarea {
  232. overflow: auto;
  233. }
  234. /**
  235. * 1. Add the correct box sizing in IE 10.
  236. * 2. Remove the padding in IE 10.
  237. */
  238. [type="checkbox"],
  239. [type="radio"] {
  240. box-sizing: border-box;
  241. /* 1 */
  242. padding: 0;
  243. /* 2 */
  244. }
  245. /**
  246. * Correct the cursor style of increment and decrement buttons in Chrome.
  247. */
  248. [type="number"]::-webkit-inner-spin-button,
  249. [type="number"]::-webkit-outer-spin-button {
  250. height: auto;
  251. }
  252. /**
  253. * 1. Correct the odd appearance in Chrome and Safari.
  254. * 2. Correct the outline style in Safari.
  255. */
  256. [type="search"] {
  257. -webkit-appearance: textfield;
  258. /* 1 */
  259. outline-offset: -2px;
  260. /* 2 */
  261. }
  262. /**
  263. * Remove the inner padding in Chrome and Safari on macOS.
  264. */
  265. [type="search"]::-webkit-search-decoration {
  266. -webkit-appearance: none;
  267. }
  268. /**
  269. * 1. Correct the inability to style clickable types in iOS and Safari.
  270. * 2. Change font properties to `inherit` in Safari.
  271. */
  272. ::-webkit-file-upload-button {
  273. -webkit-appearance: button;
  274. /* 1 */
  275. font: inherit;
  276. /* 2 */
  277. }
  278. /* Interactive
  279. ========================================================================== */
  280. /*
  281. * Add the correct display in Edge, IE 10+, and Firefox.
  282. */
  283. details {
  284. display: block;
  285. }
  286. /*
  287. * Add the correct display in all browsers.
  288. */
  289. summary {
  290. display: list-item;
  291. }
  292. /* Misc
  293. ========================================================================== */
  294. /**
  295. * Add the correct display in IE 10+.
  296. */
  297. template {
  298. display: none;
  299. }
  300. /**
  301. * Add the correct display in IE 10.
  302. */
  303. [hidden] {
  304. display: none;
  305. }
  306. HTML,
  307. body,
  308. div,
  309. ul,
  310. ol,
  311. dl,
  312. li,
  313. dt,
  314. dd,
  315. p,
  316. blockquote,
  317. pre,
  318. form,
  319. fieldset,
  320. table,
  321. th,
  322. td {
  323. border: none;
  324. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  325. font-size: 14px;
  326. margin: 0px;
  327. padding: 0px;
  328. }
  329. html,
  330. body {
  331. height: 100%;
  332. width: 100%;
  333. }
  334. address,
  335. caption,
  336. cite,
  337. code,
  338. th,
  339. var {
  340. font-style: normal;
  341. font-weight: normal;
  342. }
  343. a {
  344. text-decoration: none;
  345. }
  346. input::-ms-clear {
  347. display: none;
  348. }
  349. input::-ms-reveal {
  350. display: none;
  351. }
  352. input {
  353. -webkit-appearance: none;
  354. margin: 0;
  355. outline: none;
  356. padding: 0;
  357. }
  358. input::-webkit-input-placeholder {
  359. color: #ccc;
  360. }
  361. input::-ms-input-placeholder {
  362. color: #ccc;
  363. }
  364. input::-moz-placeholder {
  365. color: #ccc;
  366. }
  367. input[type=submit],
  368. input[type=button] {
  369. cursor: pointer;
  370. }
  371. button[disabled],
  372. input[disabled] {
  373. cursor: default;
  374. }
  375. img {
  376. border: none;
  377. }
  378. ul,
  379. ol,
  380. li {
  381. list-style-type: none;
  382. }
  383. // 导航
  384. #app {
  385. .el-container {
  386. @apply relative h-full w-full;
  387. }
  388. .el-container.mobile.openside {
  389. @apply fixed top-0;
  390. }
  391. .gva-aside {
  392. @apply fixed top-0 left-0 z-[1001] overflow-hidden;
  393. .el-menu {
  394. @apply border-r-0;
  395. }
  396. }
  397. .aside {
  398. .el-menu--collapse {
  399. >.el-menu-item {
  400. display: flex;
  401. justify-content: center;
  402. }
  403. }
  404. .el-sub-menu {
  405. .el-menu {
  406. .is-active {
  407. // 关闭三级菜单二级菜单样式
  408. ul {
  409. border: none;
  410. }
  411. }
  412. // 关闭三级菜单二级菜单样式
  413. .is-active.is-opened {
  414. ul {
  415. border: none;
  416. }
  417. }
  418. }
  419. }
  420. }
  421. .hideside {
  422. .aside {
  423. @apply w-[54px]
  424. }
  425. }
  426. .mobile {
  427. .gva-aside {
  428. @apply w-[54px];
  429. }
  430. }
  431. .hideside {
  432. .main-cont.el-main {
  433. @apply ml-[54px];
  434. }
  435. }
  436. .mobile {
  437. .main-cont.el-main {
  438. @apply ml-0;
  439. }
  440. }
  441. }
  442. // layout
  443. .admin-box {
  444. @apply min-h-[calc(100vh-200px)] px-3 py-4 mt-28 mb-4 mx-1;
  445. .el-table {
  446. th {
  447. @apply px-0 py-2;
  448. .cell {
  449. @apply leading-[40px] text-gray-700;
  450. }
  451. }
  452. td {
  453. @apply px-0 py-2;
  454. .cell {
  455. @apply leading-[40px] text-gray-600;
  456. }
  457. }
  458. .is-leaf {
  459. @apply border-b border-t-0 border-l-0 border-solid border-gray-50;
  460. border-right:var(--el-table-border);
  461. background: #F7FBFF !important;
  462. }
  463. }
  464. }
  465. // table
  466. .el-pagination {
  467. @apply mt-8;
  468. .btn-prev,
  469. .btn-next {
  470. @apply border border-solid border-gray-300 rounded;
  471. }
  472. .el-pager {
  473. li {
  474. @apply border border-solid border-gray-300 rounded text-gray-600 text-sm mx-1;
  475. }
  476. }
  477. }
  478. .el-container.layout-cont {
  479. .header-cont {
  480. @apply px-4 h-16 bg-white;
  481. }
  482. .main-cont {
  483. @apply h-screen overflow-visible;
  484. &.el-main {
  485. @apply min-h-full ml-[220px] bg-main p-0 overflow-auto;
  486. }
  487. .breadcrumb {
  488. @apply h-16 flex items-center p-0 ml-12 text-lg;
  489. .el-breadcrumb__item {
  490. .el-breadcrumb__inner {
  491. @apply text-gray-600;
  492. }
  493. }
  494. .el-breadcrumb__item:nth-last-child(1) {
  495. .el-breadcrumb__inner {
  496. @apply text-gray-600;
  497. }
  498. }
  499. }
  500. .router-history {
  501. @apply bg-white p-0 border-t border-l-0 border-r-0 border-b-0 border-solid border-gray-100;
  502. .el-tabs__header {
  503. @apply m-0;
  504. .el-tabs__item{
  505. @apply border-solid border-r border-t-0 border-gray-100 border-b-0 border-l-0;
  506. }
  507. .el-tabs__item.is-active {
  508. @apply bg-blue-500 bg-opacity-5;
  509. }
  510. .el-tabs__nav {
  511. @apply border-0;
  512. }
  513. }
  514. }
  515. .aside {
  516. @apply overflow-auto;
  517. }
  518. .el-menu-vertical {
  519. @apply h-[calc(100vh-60px)];
  520. &:not(.el-menu--collapse) {
  521. @apply w-[220px];
  522. }
  523. }
  524. .el-menu--collapse {
  525. @apply w-[54px];
  526. li {
  527. .el-tooltip,
  528. .el-sub-menu__title {
  529. @apply px-4;
  530. }
  531. }
  532. }
  533. }
  534. }
  535. .el-dropdown {
  536. @apply overflow-hidden
  537. }
  538. .gva-table-box {
  539. @apply p-6 bg-white rounded;
  540. }
  541. .gva-btn-list {
  542. @apply mb-3 flex gap-3 items-center;
  543. }
  544. #nprogress .bar {
  545. background: #29d !important;
  546. }