main.scss 18 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034
  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. }
  871. .table-button{
  872. margin-right:8px !important;
  873. }