main.scss 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029
  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. .demo-form-inline {
  489. margin-bottom: 10px;
  490. }
  491. }
  492. // table
  493. .has-gutter {
  494. tr {
  495. th {
  496. background-color: #fafafa;
  497. }
  498. }
  499. }
  500. .el-table--striped {
  501. .el-table__body {
  502. tr.el-table__row--striped {
  503. td {
  504. background: #fff!important;
  505. }
  506. }
  507. }
  508. }
  509. .el-table th,
  510. .el-table tr {
  511. background-color: #fafafa;
  512. }
  513. .el-pagination {
  514. .btn-prev,
  515. .btn-next {
  516. border: 1px solid #ddd;
  517. border-radius: 4px;
  518. }
  519. .el-pager {
  520. li {
  521. color: #666;
  522. font-size: 12px;
  523. margin: 0 5px;
  524. border: 1px solid #ddd;
  525. border-radius: 4px;
  526. }
  527. }
  528. padding: 20px 0!important;
  529. }
  530. .el-row {
  531. padding: 10px 0;
  532. .el-col>label {
  533. line-height: 30px;
  534. text-align: right;
  535. width: 80%;
  536. padding-right: 15px;
  537. display: inline-block;
  538. }
  539. .line {
  540. line-height: 30px;
  541. text-align: center;
  542. }
  543. }
  544. // edit_container
  545. .edit_container {
  546. background-color: #fff;
  547. padding: 15px;
  548. .el-button {
  549. margin: 15px 0;
  550. }
  551. }
  552. .edit {
  553. background-color: #fff;
  554. padding: 15px;
  555. .el-button {
  556. margin: 15px 0;
  557. }
  558. }
  559. // upload-demo
  560. .upload-demo,
  561. .upload {
  562. background-color: #fff;
  563. padding: 15px;
  564. .el-upload-list__item-status-label {
  565. right: 0;
  566. left: 120px;
  567. }
  568. .el-upload__tip {
  569. margin: 10px 0;
  570. }
  571. }
  572. // system
  573. .system {
  574. padding: 15px;
  575. .el-input__inner {
  576. width: 80%;
  577. }
  578. }
  579. // 导航
  580. #app {
  581. .el-container {
  582. position: relative;
  583. height: 100%;
  584. width: 100%;
  585. }
  586. .el-container.mobile.openside {
  587. position: fixed;
  588. top: 0;
  589. }
  590. .hideside {
  591. .aside {
  592. width: 54px!important;
  593. }
  594. }
  595. .el-aside {
  596. -webkit-transition: width .2s;
  597. transition: width .2s;
  598. width: 220px;
  599. background-color: #304156;
  600. height: 100%;
  601. position: fixed;
  602. font-size: 0;
  603. top: 0;
  604. bottom: 0;
  605. left: 0;
  606. z-index: 1001;
  607. overflow: hidden;
  608. }
  609. .mobile.hideside {
  610. .el-aside {
  611. // pointer-events: none;
  612. -webkit-transition-duration: .2s;
  613. transition-duration: .2s;
  614. -webkit-transform: translate3d(-210px, 0, 0);
  615. transform: translate3d(-220px, 0, 0);
  616. }
  617. }
  618. .mobile {
  619. .el-aside {
  620. -webkit-transition: -webkit-transform .28s;
  621. transition: -webkit-transform .28s;
  622. transition: transform .28s;
  623. transition: transform .28s, -webkit-transform .28s;
  624. width: 210px!important
  625. }
  626. }
  627. .el-container {
  628. position: relative;
  629. height: 100%;
  630. width: 100%;
  631. .el-aside {
  632. // transition: none;
  633. .aside {
  634. background: #000;
  635. .el-menu {
  636. border-right: none;
  637. }
  638. }
  639. }
  640. }
  641. .main-cont.el-main {
  642. min-height: 100%;
  643. -webkit-transition: margin-left .28s;
  644. transition: margin-left .28s;
  645. margin-left: 220px;
  646. position: relative;
  647. }
  648. .hideside {
  649. .main-cont.el-main {
  650. margin-left: 54px;
  651. }
  652. }
  653. .mobile {
  654. .main-cont.el-main {
  655. margin-left: 0px;
  656. }
  657. }
  658. .openside.mobile {
  659. .shadowBg {
  660. background: #000;
  661. opacity: .3;
  662. width: 100%;
  663. top: 0;
  664. height: 100%;
  665. position: absolute;
  666. z-index: 999;
  667. left: 0;
  668. }
  669. }
  670. }
  671. .el-menu .el-menu--inline {
  672. background: #2c3b41;
  673. }
  674. .el-submenu .el-submenu {
  675. background-color: #000408 !important;
  676. }
  677. .aside .el-scrollbar .el-scrollbar__view .el-submenu__title:hover {
  678. background-color: #000408 !important;
  679. }
  680. .el-submenu {
  681. .aside .el-scrollbar .el-scrollbar__view .el-submenu__title:hover {
  682. background-color: #000408 !important;
  683. }
  684. }
  685. .el-menu--vertical {
  686. .el-menu {
  687. margin-left: -8px;
  688. background-color: rgb(48, 65, 86);
  689. .el-menu-item {
  690. background-color: rgb(48, 65, 86);
  691. }
  692. .el-menu-item:focus,
  693. .el-menu-item:hover {
  694. background-color: #263445;
  695. color: #fff;
  696. }
  697. }
  698. }
  699. // 导航*****
  700. // add 5.13
  701. .el-container {
  702. .admin-box {
  703. padding: 24px 24px 40px 24px;
  704. margin: 115px 24px 24px 24px;
  705. border-radius: 2px;
  706. .button-box {
  707. border: none;
  708. padding: 0 0 10px 0px;
  709. }
  710. .el-table--border {
  711. border-radius: 4px;
  712. margin-bottom: 15px;
  713. }
  714. .el-table--border {
  715. th {
  716. border-left: 1px solid #e8e8e8;
  717. }
  718. }
  719. .el-table {
  720. th {
  721. padding: 5px 0;
  722. .cell {
  723. min-height: 34px;
  724. line-height: 34px;
  725. }
  726. }
  727. td {
  728. padding: 8px 0;
  729. }
  730. td,
  731. th.is-leaf {
  732. border-bottom: 1px solid #e8e8e8;
  733. }
  734. }
  735. .search-term {
  736. border-left: none;
  737. border-right: none;
  738. padding: 0 5px;
  739. .el-form-item {
  740. margin-bottom: 10px;
  741. }
  742. }
  743. .el-pagination {
  744. padding: 20px 0 0 0;
  745. }
  746. .upload-demo,
  747. .upload {
  748. padding: 0;
  749. }
  750. .system {
  751. padding: 0;
  752. }
  753. .el-form.el-form--inline {
  754. .el-form-item:last-child {
  755. margin-bottom: 0;
  756. }
  757. }
  758. .edit_container,
  759. .edit {
  760. padding: 0;
  761. }
  762. }
  763. .admin-box:after,
  764. .admin-box:before {
  765. content: "";
  766. display: block;
  767. clear: both;
  768. }
  769. .tips {
  770. margin-top: 10px;
  771. font-size: 14px;
  772. font-weight: 400;
  773. color: #606266;
  774. }
  775. }
  776. .el-container.layout-cont {
  777. .header-cont,
  778. .breadcrumb {
  779. height: 40px !important;
  780. line-height: 40px !important;
  781. }
  782. .main-cont.el-main {
  783. background-color: #f0f2f5;
  784. .menu-total {
  785. font-size: 22px;
  786. color: #838383;
  787. margin-top: 7px;
  788. }
  789. // background-color: #f0f2f5;
  790. }
  791. }
  792. .el-container.layout-cont {
  793. .main-cont {
  794. .router-history {
  795. padding-bottom: 8px;
  796. padding-top: 5px;
  797. border-color: #f9f9f9;
  798. box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
  799. .el-tabs__header {
  800. margin: 0px 0 0 0;
  801. .el-tabs__item {
  802. line-height: 35px;
  803. height: 35px;
  804. }
  805. }
  806. }
  807. }
  808. }
  809. .el-table__row {
  810. .el-button.el-button--text.el-button--small {
  811. position: relative;
  812. }
  813. // .el-button.el-button--text.el-button--small::after {
  814. // content: '';
  815. // position: absolute;
  816. // width: 1px;
  817. // height: 50%;
  818. // top: 5px;
  819. // margin-left: 15px;
  820. // background-color: #e8e8e8;
  821. // }
  822. .cell {
  823. button:last-child::after {
  824. content: ''!important;
  825. position: absolute!important;
  826. width: 0px!important;
  827. }
  828. }
  829. }
  830. .clear:after,
  831. .clear:before {
  832. content: "";
  833. display: block;
  834. clear: both;
  835. }
  836. .el-table--striped .el-table__body tr.el-table__row--level-1 td:first-child {
  837. .cell {
  838. .el-table__indent {
  839. border-right: 1.5px solid #ccc;
  840. margin-left: 6px;
  841. }
  842. .el-table__placeholder {
  843. width: 10px;
  844. }
  845. }
  846. }
  847. .el-table--striped .el-table__body tr.el-table__row--level-2 td:first-child {
  848. .cell {
  849. .el-table__indent {
  850. border-right: 1.5px solid #ccc;
  851. margin-left: 6px;
  852. }
  853. .el-table__placeholder {
  854. width: 10px;
  855. }
  856. }
  857. }
  858. .el-input-number__decrease, .el-input-number__increase{
  859. position: absolute;
  860. z-index: 1;
  861. top: 6px !important;
  862. width: 42px;
  863. height: 26px;
  864. line-height: 26px;
  865. text-align: center;
  866. background: #F5F7FA;
  867. color: #606266;
  868. cursor: pointer;
  869. font-size: 13px;
  870. }