main.scss 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853
  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. html {
  8. line-height: 1.15;
  9. /* 1 */
  10. -webkit-text-size-adjust: 100%;
  11. /* 2 */
  12. }
  13. /* Sections
  14. ========================================================================== */
  15. /**
  16. * Remove the margin in all browsers.
  17. */
  18. body {
  19. margin: 0;
  20. }
  21. /**
  22. * Render the `main` element consistently in IE.
  23. */
  24. main {
  25. display: block;
  26. }
  27. /**
  28. * Correct the font size and margin on `h1` elements within `section` and
  29. * `article` contexts in Chrome, Firefox, and Safari.
  30. */
  31. h1 {
  32. font-size: 2em;
  33. margin: 0.67em 0;
  34. }
  35. /* Grouping content
  36. ========================================================================== */
  37. /**
  38. * 1. Add the correct box sizing in Firefox.
  39. * 2. Show the overflow in Edge and IE.
  40. */
  41. hr {
  42. box-sizing: content-box;
  43. /* 1 */
  44. height: 0;
  45. /* 1 */
  46. overflow: visible;
  47. /* 2 */
  48. }
  49. /**
  50. * 1. Correct the inheritance and scaling of font size in all browsers.
  51. * 2. Correct the odd `em` font sizing in all browsers.
  52. */
  53. pre {
  54. font-family: monospace, monospace;
  55. /* 1 */
  56. font-size: 1em;
  57. /* 2 */
  58. }
  59. /* Text-level semantics
  60. ========================================================================== */
  61. /**
  62. * Remove the gray background on active links in IE 10.
  63. */
  64. a {
  65. background-color: transparent;
  66. }
  67. /**
  68. * 1. Remove the bottom border in Chrome 57-
  69. * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
  70. */
  71. abbr[title] {
  72. border-bottom: none;
  73. /* 1 */
  74. text-decoration: underline;
  75. /* 2 */
  76. text-decoration: underline dotted;
  77. /* 2 */
  78. }
  79. /**
  80. * Add the correct font weight in Chrome, Edge, and Safari.
  81. */
  82. b,
  83. strong {
  84. font-weight: bolder;
  85. }
  86. /**
  87. * 1. Correct the inheritance and scaling of font size in all browsers.
  88. * 2. Correct the odd `em` font sizing in all browsers.
  89. */
  90. code,
  91. kbd,
  92. samp {
  93. font-family: monospace, monospace;
  94. /* 1 */
  95. font-size: 1em;
  96. /* 2 */
  97. }
  98. /**
  99. * Add the correct font size in all browsers.
  100. */
  101. small {
  102. font-size: 80%;
  103. }
  104. /**
  105. * Prevent `sub` and `sup` elements from affecting the line height in
  106. * all browsers.
  107. */
  108. sub,
  109. sup {
  110. font-size: 75%;
  111. line-height: 0;
  112. position: relative;
  113. vertical-align: baseline;
  114. }
  115. sub {
  116. bottom: -0.25em;
  117. }
  118. sup {
  119. top: -0.5em;
  120. }
  121. /* Embedded content
  122. ========================================================================== */
  123. /**
  124. * Remove the border on images inside links in IE 10.
  125. */
  126. img {
  127. border-style: none;
  128. }
  129. /* Forms
  130. ========================================================================== */
  131. /**
  132. * 1. Change the font styles in all browsers.
  133. * 2. Remove the margin in Firefox and Safari.
  134. */
  135. button,
  136. input,
  137. optgroup,
  138. select,
  139. textarea {
  140. font-family: inherit;
  141. /* 1 */
  142. font-size: 100%;
  143. /* 1 */
  144. line-height: 1.15;
  145. /* 1 */
  146. margin: 0;
  147. /* 2 */
  148. }
  149. /**
  150. * Show the overflow in IE.
  151. * 1. Show the overflow in Edge.
  152. */
  153. button,
  154. input {
  155. /* 1 */
  156. overflow: visible;
  157. }
  158. /**
  159. * Remove the inheritance of text transform in Edge, Firefox, and IE.
  160. * 1. Remove the inheritance of text transform in Firefox.
  161. */
  162. button,
  163. select {
  164. /* 1 */
  165. text-transform: none;
  166. }
  167. /**
  168. * Correct the inability to style clickable types in iOS and Safari.
  169. */
  170. button,
  171. [type="button"],
  172. [type="reset"],
  173. [type="submit"] {
  174. -webkit-appearance: button;
  175. }
  176. /**
  177. * Remove the inner border and padding in Firefox.
  178. */
  179. button::-moz-focus-inner,
  180. [type="button"]::-moz-focus-inner,
  181. [type="reset"]::-moz-focus-inner,
  182. [type="submit"]::-moz-focus-inner {
  183. border-style: none;
  184. padding: 0;
  185. }
  186. /**
  187. * Restore the focus styles unset by the previous rule.
  188. */
  189. button:-moz-focusring,
  190. [type="button"]:-moz-focusring,
  191. [type="reset"]:-moz-focusring,
  192. [type="submit"]:-moz-focusring {
  193. outline: 1px dotted ButtonText;
  194. }
  195. /**
  196. * Correct the padding in Firefox.
  197. */
  198. fieldset {
  199. padding: 0.35em 0.75em 0.625em;
  200. }
  201. /**
  202. * 1. Correct the text wrapping in Edge and IE.
  203. * 2. Correct the color inheritance from `fieldset` elements in IE.
  204. * 3. Remove the padding so developers are not caught out when they zero out
  205. * `fieldset` elements in all browsers.
  206. */
  207. legend {
  208. box-sizing: border-box;
  209. /* 1 */
  210. color: inherit;
  211. /* 2 */
  212. display: table;
  213. /* 1 */
  214. max-width: 100%;
  215. /* 1 */
  216. padding: 0;
  217. /* 3 */
  218. white-space: normal;
  219. /* 1 */
  220. }
  221. /**
  222. * Add the correct vertical alignment in Chrome, Firefox, and Opera.
  223. */
  224. progress {
  225. vertical-align: baseline;
  226. }
  227. /**
  228. * Remove the default vertical scrollbar in IE 10+.
  229. */
  230. textarea {
  231. overflow: auto;
  232. }
  233. /**
  234. * 1. Add the correct box sizing in IE 10.
  235. * 2. Remove the padding in IE 10.
  236. */
  237. [type="checkbox"],
  238. [type="radio"] {
  239. box-sizing: border-box;
  240. /* 1 */
  241. padding: 0;
  242. /* 2 */
  243. }
  244. /**
  245. * Correct the cursor style of increment and decrement buttons in Chrome.
  246. */
  247. [type="number"]::-webkit-inner-spin-button,
  248. [type="number"]::-webkit-outer-spin-button {
  249. height: auto;
  250. }
  251. /**
  252. * 1. Correct the odd appearance in Chrome and Safari.
  253. * 2. Correct the outline style in Safari.
  254. */
  255. [type="search"] {
  256. -webkit-appearance: textfield;
  257. /* 1 */
  258. outline-offset: -2px;
  259. /* 2 */
  260. }
  261. /**
  262. * Remove the inner padding in Chrome and Safari on macOS.
  263. */
  264. [type="search"]::-webkit-search-decoration {
  265. -webkit-appearance: none;
  266. }
  267. /**
  268. * 1. Correct the inability to style clickable types in iOS and Safari.
  269. * 2. Change font properties to `inherit` in Safari.
  270. */
  271. ::-webkit-file-upload-button {
  272. -webkit-appearance: button;
  273. /* 1 */
  274. font: inherit;
  275. /* 2 */
  276. }
  277. /* Interactive
  278. ========================================================================== */
  279. /*
  280. * Add the correct display in Edge, IE 10+, and Firefox.
  281. */
  282. details {
  283. display: block;
  284. }
  285. /*
  286. * Add the correct display in all browsers.
  287. */
  288. summary {
  289. display: list-item;
  290. }
  291. /* Misc
  292. ========================================================================== */
  293. /**
  294. * Add the correct display in IE 10+.
  295. */
  296. template {
  297. display: none;
  298. }
  299. /**
  300. * Add the correct display in IE 10.
  301. */
  302. [hidden] {
  303. display: none;
  304. }
  305. HTML,
  306. body,
  307. div,
  308. h1,
  309. h2,
  310. h3,
  311. h4,
  312. h5,
  313. h6,
  314. ul,
  315. ol,
  316. dl,
  317. li,
  318. dt,
  319. dd,
  320. p,
  321. blockquote,
  322. pre,
  323. form,
  324. fieldset,
  325. table,
  326. th,
  327. td {
  328. border: none;
  329. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  330. font-size: 14px;
  331. margin: 0px;
  332. padding: 0px;
  333. }
  334. html,
  335. body {
  336. height: 100%;
  337. width: 100%;
  338. }
  339. address,
  340. caption,
  341. cite,
  342. code,
  343. dfn,
  344. em,
  345. strong,
  346. th,
  347. var {
  348. font-style: normal;
  349. font-weight: normal;
  350. }
  351. a {
  352. text-decoration: none;
  353. }
  354. a:link {
  355. color: #fff;
  356. }
  357. a:visited {
  358. color: #fff;
  359. }
  360. a:hover {
  361. color: #fff;
  362. }
  363. a:active {
  364. color: #fff;
  365. }
  366. input::-ms-clear {
  367. display: none;
  368. }
  369. input::-ms-reveal {
  370. display: none;
  371. }
  372. input {
  373. -webkit-appearance: none;
  374. margin: 0;
  375. outline: none;
  376. padding: 0;
  377. }
  378. input::-webkit-input-placeholder {
  379. color: #ccc;
  380. }
  381. input::-ms-input-placeholder {
  382. color: #ccc;
  383. }
  384. input::-moz-placeholder {
  385. color: #ccc;
  386. }
  387. input[type=submit],
  388. input[type=button] {
  389. cursor: pointer;
  390. }
  391. button[disabled],
  392. input[disabled] {
  393. cursor: default;
  394. }
  395. img {
  396. border: none;
  397. }
  398. ul,
  399. ol,
  400. li {
  401. list-style-type: none;
  402. }
  403. .el-table__body-wrapper {
  404. tr {
  405. td {
  406. .cell {
  407. .el-button+.el-button {
  408. margin-left: 0;
  409. }
  410. }
  411. }
  412. }
  413. }
  414. // navbar
  415. .aside {
  416. .el-scrollbar {
  417. .el-scrollbar__view {
  418. .el-menu-vertical {
  419. background-color: #001529;
  420. }
  421. .el-menu-item:hover i,
  422. .el-menu-item:hover span {
  423. color: #fff;
  424. }
  425. li {
  426. background-color: #001529;
  427. ul {
  428. .el-menu-item {
  429. background-color: #000408;
  430. height: 44px;
  431. line-height: 44px;
  432. }
  433. .is-active {
  434. background-color: #1890ff;
  435. }
  436. }
  437. }
  438. .el-submenu__title:hover {
  439. background-color: #001529;
  440. }
  441. .el-submenu__title:hover i,
  442. .el-submenu__title:hover span {
  443. color: #fff;
  444. }
  445. .el-menu--inline {
  446. border-left: 5px solid #2c3b41;
  447. }
  448. }
  449. }
  450. }
  451. // layout
  452. .layout-cont {
  453. .main-cont {
  454. position: relative;
  455. &.el-main {
  456. background-color: #ecf0f5;
  457. padding: 0;
  458. }
  459. .breadcrumb {
  460. background-color: #fff;
  461. padding: 0 0 15px 15px;
  462. }
  463. }
  464. }
  465. .admin-box {
  466. padding: 15px 20px;
  467. .el-button {
  468. padding: 7px 10px;
  469. }
  470. .el-input__inner {
  471. height: 30px;
  472. line-height: 30px;
  473. }
  474. .el-input__icon {
  475. line-height: 30px;
  476. }
  477. }
  478. .button-box {
  479. background: #fff;
  480. border: 1px solid #ebeef5;
  481. border-bottom: none;
  482. }
  483. .search-term {
  484. background: #fff;
  485. padding: 0 15px;
  486. border-left: 1px solid #ebeef5;
  487. border-right: 1px solid #ebeef5;
  488. }
  489. // table
  490. .has-gutter {
  491. tr {
  492. th {
  493. background-color: #fafafa;
  494. }
  495. }
  496. }
  497. .el-table--striped {
  498. .el-table__body {
  499. tr.el-table__row--striped {
  500. td {
  501. background: #fff!important;
  502. }
  503. }
  504. }
  505. }
  506. .el-table th,
  507. .el-table tr {
  508. background-color: #fafafa;
  509. }
  510. .el-pagination {
  511. .btn-prev,
  512. .btn-next {
  513. border: 1px solid #ddd;
  514. border-radius: 4px;
  515. }
  516. .el-pager {
  517. li {
  518. color: #666;
  519. font-size: 12px;
  520. margin: 0 5px;
  521. border: 1px solid #ddd;
  522. border-radius: 4px;
  523. }
  524. }
  525. }
  526. // el-form
  527. .el-form {
  528. background-color: #fff;
  529. padding: 10px 0;
  530. }
  531. .el-row {
  532. padding: 10px 0;
  533. .el-col>label {
  534. line-height: 30px;
  535. text-align: right;
  536. width: 80%;
  537. padding-right: 15px;
  538. display: inline-block;
  539. }
  540. .line {
  541. line-height: 30px;
  542. text-align: center;
  543. }
  544. }
  545. // edit_container
  546. .edit_container {
  547. background-color: #fff;
  548. padding: 15px;
  549. .el-button {
  550. margin: 15px 0;
  551. }
  552. }
  553. .edit {
  554. background-color: #fff;
  555. padding: 15px;
  556. .el-button {
  557. margin: 15px 0;
  558. }
  559. }
  560. // upload-demo
  561. .upload-demo,
  562. .upload {
  563. background-color: #fff;
  564. padding: 15px;
  565. .el-upload-list__item-status-label {
  566. right: 0;
  567. left: 120px;
  568. }
  569. .el-upload__tip {
  570. margin: 10px 0;
  571. }
  572. }
  573. // system
  574. .system {
  575. padding: 15px;
  576. .el-input__inner {
  577. width: 80%;
  578. }
  579. }
  580. // 导航
  581. #app {
  582. .el-container {
  583. position: relative;
  584. height: 100%;
  585. width: 100%;
  586. }
  587. .el-container.mobile.openside {
  588. position: fixed;
  589. top: 0;
  590. }
  591. .hideside {
  592. .aside {
  593. width: 54px!important;
  594. }
  595. }
  596. .el-aside {
  597. -webkit-transition: width .2s;
  598. transition: width .2s;
  599. width: 220px;
  600. background-color: #304156;
  601. height: 100%;
  602. position: fixed;
  603. font-size: 0;
  604. top: 0;
  605. bottom: 0;
  606. left: 0;
  607. z-index: 1001;
  608. overflow: hidden;
  609. }
  610. .mobile.hideside {
  611. .el-aside {
  612. // pointer-events: none;
  613. -webkit-transition-duration: .2s;
  614. transition-duration: .2s;
  615. -webkit-transform: translate3d(-210px, 0, 0);
  616. transform: translate3d(-220px, 0, 0);
  617. }
  618. }
  619. .mobile {
  620. .el-aside {
  621. -webkit-transition: -webkit-transform .28s;
  622. transition: -webkit-transform .28s;
  623. transition: transform .28s;
  624. transition: transform .28s, -webkit-transform .28s;
  625. width: 210px!important
  626. }
  627. }
  628. .el-container {
  629. position: relative;
  630. height: 100%;
  631. width: 100%;
  632. .el-aside {
  633. // transition: none;
  634. .aside {
  635. background: #000;
  636. .el-menu {
  637. border-right: none;
  638. }
  639. }
  640. }
  641. }
  642. .main-cont.el-main {
  643. min-height: 100%;
  644. -webkit-transition: margin-left .28s;
  645. transition: margin-left .28s;
  646. margin-left: 220px;
  647. position: relative;
  648. }
  649. .hideside {
  650. .main-cont.el-main {
  651. margin-left: 54px;
  652. }
  653. }
  654. .mobile {
  655. .main-cont.el-main {
  656. margin-left: 0px;
  657. }
  658. }
  659. .openside.mobile {
  660. .shadowBg {
  661. background: #000;
  662. opacity: .3;
  663. width: 100%;
  664. top: 0;
  665. height: 100%;
  666. position: absolute;
  667. z-index: 999;
  668. left: 0;
  669. }
  670. }
  671. }
  672. .el-menu .el-menu--inline {
  673. background: #2c3b41;
  674. }
  675. .el-submenu .el-submenu {
  676. background-color: #000408 !important;
  677. }
  678. .aside .el-scrollbar .el-scrollbar__view .el-submenu__title:hover {
  679. background-color: #000408 !important;
  680. }
  681. .el-submenu {
  682. .aside .el-scrollbar .el-scrollbar__view .el-submenu__title:hover {
  683. background-color: #000408 !important;
  684. }
  685. }
  686. .el-menu--vertical {
  687. .el-menu {
  688. margin-left: -8px;
  689. background-color: rgb(48, 65, 86);
  690. .el-menu-item {
  691. background-color: rgb(48, 65, 86);
  692. }
  693. .el-menu-item:focus,
  694. .el-menu-item:hover {
  695. background-color: #263445;
  696. color: #fff;
  697. }
  698. }
  699. }
  700. // 导航*****