console.display.less 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850
  1. @charset "UTF-8";
  2. @import "console.config.less";
  3. // +----------------------------------------------------------------------
  4. // | ThinkAdmin
  5. // +----------------------------------------------------------------------
  6. // | 版权所有 2014~2021 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
  7. // +----------------------------------------------------------------------
  8. // | 官方网站: http://demo.thinkadmin.top
  9. // +----------------------------------------------------------------------
  10. // | 开源协议 ( https://mit-license.org )
  11. // +----------------------------------------------------------------------
  12. // | gitee 代码仓库:https://gitee.com/zoujingli/ThinkAdmin
  13. // | github 代码仓库:https://github.com/zoujingli/ThinkAdmin
  14. // +----------------------------------------------------------------------
  15. .headimg {
  16. width: 35px;
  17. height: 35px;
  18. display: inline-block;
  19. overflow: hidden;
  20. text-align: center;
  21. margin-right: 5px;
  22. border-radius: 50%;
  23. vertical-align: middle;
  24. background-size: cover;
  25. background-repeat: no-repeat;
  26. background-position: center center;
  27. &-no {
  28. border: none;
  29. box-shadow: none;
  30. border-radius: 0;
  31. }
  32. &-xs {
  33. width: 28px;
  34. height: 28px;
  35. }
  36. &-md {
  37. width: 55px;
  38. height: 55px;
  39. }
  40. > img {
  41. width: 110%;
  42. height: 110%;
  43. max-width: 110%;
  44. max-height: 110%;
  45. margin: -5% 0 0 -5%;
  46. }
  47. & + * {
  48. vertical-align: middle;
  49. }
  50. }
  51. fieldset {
  52. margin: 0 0 10px 0;
  53. border: 1px solid @BoxBorderColor;
  54. padding: 10px 20px 5px 20px;
  55. background: #fff;
  56. border-radius: @BoxBorderRadius;
  57. legend {
  58. color: #666;
  59. padding: 0 10px;
  60. font-size: 13px;
  61. }
  62. }
  63. .layui-tab, .layui-card {
  64. border-radius: @BoxBorderRadius;
  65. }
  66. .layui-tab {
  67. .layui-tab-title {
  68. border-top-left-radius: @BoxBorderRadius;
  69. border-top-right-radius: @BoxBorderRadius;
  70. > li:first-child {
  71. padding: 0 15px 0 17px;
  72. margin-left: 0 !important;
  73. border-top-left-radius: @BoxBorderRadius;
  74. &:after {
  75. border-left: none
  76. }
  77. }
  78. }
  79. .layui-tab-content {
  80. border-bottom-left-radius: @BoxBorderRadius;
  81. border-bottom-right-radius: @BoxBorderRadius;
  82. }
  83. > .layui-tab-content {
  84. padding: 20px;
  85. background: #fff;
  86. }
  87. }
  88. .layui-card {
  89. > .layui-card-header {
  90. padding: 0 20px;
  91. }
  92. > .layui-card-body {
  93. padding: 20px;
  94. }
  95. }
  96. .layui-code {
  97. border-radius: @BoxBorderRadius;
  98. }
  99. .layui-btn {
  100. border: 1px solid #009688;
  101. &:hover:not(.layui-btn-disabled) {
  102. box-shadow: @ShadowMaxInset;
  103. }
  104. &-warm {
  105. border: 1px solid #FFB800;
  106. }
  107. &-danger {
  108. border: 1px solid #FF5722;
  109. }
  110. &-normal {
  111. border: 1px solid #1E9FFF;
  112. }
  113. &-disabled {
  114. border: 1px solid @BoxBorderColor;
  115. }
  116. &-primary {
  117. background: #fff;
  118. }
  119. &-group {
  120. border: 1px solid #098;
  121. overflow: hidden;
  122. background: #009688;
  123. line-height: 28px;
  124. border-radius: 2px;
  125. + .layui-btn {
  126. margin-left: 8px;
  127. }
  128. .layui-btn {
  129. height: 28px;
  130. line-height: 28px;
  131. border-width: 0 !important;
  132. border-radius: 0 !important;
  133. + .layui-btn {
  134. margin-left: 1px !important;
  135. }
  136. &-primary:hover {
  137. border-color: #009688;
  138. }
  139. }
  140. }
  141. .layui-icon {
  142. float: left;
  143. margin-right: 5px;
  144. }
  145. & + .layui-btn {
  146. margin-left: 8px;
  147. }
  148. }
  149. .layui-badge {
  150. margin-right: 5px;
  151. &-middle {
  152. width: 1em;
  153. height: auto;
  154. padding: 5px;
  155. line-height: 16px;
  156. white-space: normal;
  157. vertical-align: middle;
  158. }
  159. }
  160. /*! 搜索表单样式 */
  161. .form-search {
  162. .layui-btn {
  163. height: 32px;
  164. padding: 0 10px;
  165. font-size: 13px;
  166. line-height: 32px;
  167. .layui-icon {
  168. font-size: 15px
  169. }
  170. }
  171. .layui-form-label {
  172. width: auto !important;
  173. height: 32px;
  174. padding: 0 8px;
  175. line-height: 32px;
  176. border-color: @InputBorderNormalColor;
  177. }
  178. .layui-input-inline {
  179. width: 170px;
  180. display: inline-block !important;
  181. margin: 0 10px 0 -1px !important;
  182. input, select {
  183. width: 100%;
  184. height: 32px;
  185. padding: 0 8px;
  186. line-height: 32px;
  187. border-color: @InputBorderNormalColor;
  188. }
  189. }
  190. .layui-form-select dl {
  191. top: 31px;
  192. padding: 0;
  193. border-color: @InputBorderActiveColor;
  194. }
  195. }
  196. /* 表单验证异常提示 */
  197. .label-required {
  198. &-prev:before {
  199. width: 1em;
  200. color: red;
  201. content: '*';
  202. display: inline-block;
  203. position: absolute;
  204. text-align: left;
  205. font-weight: 700;
  206. line-height: 1.6em;
  207. margin-left: -0.8em;
  208. }
  209. &:after, &-next:after {
  210. top: 6px;
  211. right: 5px;
  212. color: red;
  213. content: '*';
  214. position: absolute;
  215. margin-left: 4px;
  216. font-weight: 700;
  217. line-height: 1.8em
  218. }
  219. &-null:before {
  220. content: none !important
  221. }
  222. }
  223. .layui-input, .layui-select {
  224. line-height: 38px;
  225. border-color: @InputBorderNormalColor;
  226. &:hover, &:active, &:focus {
  227. border-color: @InputBorderActiveColor;
  228. }
  229. }
  230. .layui-disabled, .layui-disabled:hover {
  231. color: #333 !important;
  232. background: #EEE !important;
  233. }
  234. .layui-form-checkbox.layui-form-checked {
  235. i {
  236. border-color: #5FB878;
  237. }
  238. }
  239. label.think-radio, label.think-checkbox {
  240. cursor: pointer;
  241. margin-right: 10px;
  242. display: inline-block;
  243. }
  244. .think-radio, .think-checkbox {
  245. margin-top: 10px;
  246. font-weight: 400;
  247. line-height: 18px;
  248. input[type=radio], input[type=checkbox] {
  249. width: 18px;
  250. height: 18px;
  251. cursor: pointer;
  252. border: 1px solid @RadioBorderNormalColor;
  253. position: relative;
  254. background: #fff;
  255. margin-right: 5px;
  256. vertical-align: bottom;
  257. display: inline-block !important;
  258. box-sizing: border-box !important;
  259. appearance: none;
  260. -webkit-appearance: none;
  261. &:checked {
  262. border-color: #009688;
  263. &:after {
  264. display: block;
  265. position: relative;
  266. animation-duration: .3s;
  267. -webkit-animation-duration: .3s;
  268. animation-fill-mode: both;
  269. -webkit-animation-fill-mode: both;
  270. animation-name: layui-scale-spring;
  271. -webkit-animation-name: layui-scale-spring;
  272. }
  273. }
  274. }
  275. input[type=radio] {
  276. border-radius: 1em;
  277. &:checked:after {
  278. top: 4px;
  279. left: 4px;
  280. width: 8px;
  281. height: 8px;
  282. cursor: pointer;
  283. content: '';
  284. background: #009688;
  285. border-radius: 1em;
  286. }
  287. }
  288. input[type=checkbox] {
  289. border-radius: 1px;
  290. &:checked:after {
  291. color: #009688;
  292. cursor: pointer;
  293. padding: 2px;
  294. content: "\e605";
  295. font-size: 12px;
  296. font-style: normal;
  297. font-weight: 700;
  298. font-family: layui-icon !important;
  299. -webkit-font-smoothing: antialiased;
  300. -moz-osx-font-smoothing: grayscale
  301. }
  302. }
  303. }
  304. .layui-table {
  305. td, th {
  306. font-size: 12px;
  307. }
  308. td.list-table-check-td + td,
  309. th.list-table-check-td + th {
  310. padding-left: 5px;
  311. }
  312. .list-table-sort-td {
  313. width: 10px !important;
  314. text-align: center !important;
  315. padding-left: 5px !important;
  316. padding-right: 5px !important;
  317. button {
  318. width: 56px;
  319. background: #009688
  320. }
  321. input {
  322. width: 50px;
  323. color: #666;
  324. padding: 2px;
  325. font-size: 9pt;
  326. border: 1px solid @InputBorderNormalColor;
  327. text-align: center;
  328. line-height: 18px
  329. }
  330. }
  331. .list-table-check-td {
  332. width: 10px !important;
  333. text-align: center !important;
  334. padding-left: 15px !important;
  335. padding-right: 15px !important;
  336. input {
  337. margin: 0 !important;
  338. vertical-align: middle
  339. }
  340. }
  341. }
  342. .layui-table-page {
  343. .layui-laypage {
  344. .layui-laypage-prev,
  345. .layui-laypage-next {
  346. padding: 0 8px;
  347. border-radius: 3px;
  348. }
  349. .layui-laypage-prev {
  350. margin-left: 0 !important;
  351. }
  352. .layui-laypage-next {
  353. margin-right: 6px !important;
  354. }
  355. }
  356. }
  357. .layui-layer-content {
  358. .layui-form.layui-card {
  359. margin: 0;
  360. box-shadow: none !important;
  361. .layui-card-body {
  362. padding: 20px 40px 0 0;
  363. }
  364. }
  365. }
  366. .layui-layer-dialog {
  367. .layui-layer-content {
  368. .layui-layer-ico {
  369. top: 50% !important;
  370. margin-top: -15px !important
  371. }
  372. }
  373. }
  374. .laydate-footer-btns {
  375. span {
  376. line-height: 24px !important
  377. }
  378. }
  379. .layui-tags {
  380. display: flex;
  381. flex-wrap: wrap;
  382. vertical-align: middle;
  383. .layui-tag {
  384. color: #FFF;
  385. height: 38px;
  386. margin: 3px 4px 3px 0;
  387. padding: 0 4px 0 10px;
  388. display: inline-block;
  389. font-size: 14px;
  390. line-height: 38px;
  391. border-radius: 2px;
  392. white-space: nowrap;
  393. background: #1E9FFF !important;
  394. user-select: none;
  395. -ms-user-select: none;
  396. -moz-user-select: none;
  397. -webkit-user-select: none;
  398. .layui-icon {
  399. font-size: 14px;
  400. font-weight: 700;
  401. margin-left: 5px;
  402. &:hover {
  403. cursor: pointer;
  404. color: #FF5722;
  405. }
  406. }
  407. &-input {
  408. width: 100px;
  409. resize: none;
  410. margin: 3px 8px 3px 0;
  411. overflow: hidden;
  412. white-space: nowrap;
  413. }
  414. }
  415. }
  416. /** 手机盒子及微信菜单 */
  417. .mobile-preview {
  418. width: 317px;
  419. height: 580px;
  420. position: relative;
  421. background: url(../img/wechat/mobile_head.png) no-repeat 0 0;
  422. box-shadow: @ShadowMinOuter;
  423. border-radius: @BoxBorderRadius;
  424. .mobile-header {
  425. color: #fff;
  426. width: auto;
  427. margin: 0 30px;
  428. overflow: hidden;
  429. font-size: 15px;
  430. padding-top: 30px;
  431. text-align: center;
  432. white-space: nowrap;
  433. text-overflow: ellipsis;
  434. word-wrap: normal;
  435. user-select: none;
  436. -moz-user-select: none;
  437. -webkit-user-select: none;
  438. pointer-events: none;
  439. -webkit-pointer-events: none;
  440. }
  441. .mobile-body {
  442. top: 60px;
  443. left: 0;
  444. right: 0;
  445. bottom: 0;
  446. border: 1px solid #ccc;
  447. position: absolute;
  448. background: #f5f5f5;
  449. border-radius: 0 0 @BoxBorderRadius @BoxBorderRadius;
  450. iframe {
  451. width: 100%;
  452. height: 100%
  453. }
  454. }
  455. .mobile-footer {
  456. left: 0;
  457. right: 0;
  458. bottom: 0;
  459. margin: 0;
  460. border: 1px solid #ccc;
  461. position: absolute;
  462. padding-left: 43px;
  463. background: url(../img/wechat/mobile_foot.png) no-repeat 0 0;
  464. list-style-type: none;
  465. border-radius: 0 0 @BoxBorderRadius @BoxBorderRadius;
  466. li {
  467. float: left;
  468. width: 33.33%;
  469. position: relative;
  470. text-align: center;
  471. line-height: 50px;
  472. a {
  473. width: auto;
  474. color: #616161;
  475. border: 1px solid hsla(0, 0%, 100%, 0);
  476. display: block;
  477. overflow: hidden;
  478. word-wrap: normal;
  479. margin-top: -1px;
  480. border-left: 1px solid #e7e7eb;
  481. white-space: nowrap;
  482. text-overflow: ellipsis;
  483. margin-bottom: -1px;
  484. text-decoration: none;
  485. &:hover {
  486. background: rgba(0, 0, 0, .02)
  487. }
  488. &.active {
  489. border: 1px solid #44b549 !important;
  490. box-shadow: 0 0 1px #44b549
  491. }
  492. span:before {
  493. width: 1px;
  494. height: 1px;
  495. content: '';
  496. display: inline-block
  497. }
  498. }
  499. > .close {
  500. top: 1px;
  501. right: 1px;
  502. width: 18px;
  503. height: 18px;
  504. display: none;
  505. cursor: pointer;
  506. position: absolute;
  507. text-align: center;
  508. line-height: 18px
  509. }
  510. &:hover > .close {
  511. display: inline-block;
  512. &:hover {
  513. color: #fff !important;
  514. background: #999 !important
  515. }
  516. }
  517. }
  518. .icon {
  519. &-add, &-sub {
  520. display: inline-block;
  521. vertical-align: middle;
  522. &::before {
  523. content: none;
  524. }
  525. }
  526. &-add {
  527. width: 14px;
  528. height: 14px;
  529. border-bottom: none !important;
  530. background: url(../img/wechat/index.png) 0 0 no-repeat
  531. }
  532. &-sub {
  533. width: 7px;
  534. height: 7px;
  535. margin-right: 2px;
  536. background: url(../img/wechat/index.png) 0 -3pc no-repeat
  537. }
  538. }
  539. .sub-menu {
  540. width: 100%;
  541. bottom: 60px;
  542. margin: -1px;
  543. display: block;
  544. position: absolute;
  545. border: 1px solid #d0d0d0;
  546. background-color: #fafafa;
  547. ul li {
  548. float: none;
  549. width: 100%;
  550. padding: 0;
  551. z-index: 11;
  552. display: block;
  553. a {
  554. padding: 0 5px;
  555. border: 1px solid hsla(0, 0%, 100%, 0);
  556. &.bottom-border {
  557. margin: -1px -1px 0;
  558. border-bottom: 1px solid #e7e7eb
  559. }
  560. }
  561. &:last-child a.bottom-border {
  562. border-bottom-color: #fff
  563. }
  564. }
  565. }
  566. .arrow {
  567. left: 50%;
  568. position: absolute;
  569. margin-left: -6px;
  570. }
  571. .arrow_in, .arrow_out {
  572. width: 0;
  573. height: 0;
  574. z-index: 10;
  575. border: 6px dashed transparent;
  576. display: inline-block;
  577. border-top-style: solid;
  578. border-bottom-width: 0;
  579. }
  580. .arrow_in {
  581. bottom: -5px;
  582. z-index: 3;
  583. border-top-color: #fafafa
  584. }
  585. .arrow_out {
  586. bottom: -6px;
  587. z-index: 2;
  588. border-top-color: #d0d0d0
  589. }
  590. }
  591. }
  592. /* 下拉样式 */
  593. .layui-nav {
  594. .layui-nav-item {
  595. .layui-nav-more {
  596. top: 0;
  597. right: 15px;
  598. width: auto;
  599. height: auto;
  600. border: none;
  601. padding: 0 !important;
  602. font-size: 14px !important;
  603. font-style: normal;
  604. font-family: "layui-icon" !important;
  605. -moz-osx-font-smoothing: grayscale;
  606. -webkit-font-smoothing: antialiased;
  607. &::before {
  608. content: "\e619"
  609. }
  610. }
  611. & .layui-nav-mored, &ed .layui-nav-more {
  612. border: none;
  613. transform: rotate(180deg);
  614. -o-transform: rotate(180deg);
  615. -ms-transform: rotate(180deg);
  616. -moz-transform: rotate(180deg);
  617. -webkit-transform: rotate(180deg)
  618. }
  619. }
  620. }
  621. /*! 重置 Iframe 页面样式 */
  622. .iframe-pagination {
  623. padding: 20px;
  624. &:after {
  625. content: '';
  626. height: 30px;
  627. display: block;
  628. }
  629. .pagination-container {
  630. left: 0;
  631. right: 0;
  632. bottom: 0;
  633. padding: 5px 20px;
  634. position: fixed;
  635. background: #fff;
  636. border-top: 1px solid #ddd;
  637. }
  638. }
  639. /*! 首页加载动画 */
  640. .layui-page-loader {
  641. top: 0;
  642. width: 100%;
  643. height: 100%;
  644. z-index: 9999999;
  645. position: fixed;
  646. background-color: @LoadBackColor;
  647. .loader {
  648. top: 50%;
  649. width: 50px;
  650. height: 50px;
  651. margin: -30px auto 40px;
  652. z-index: 999999;
  653. position: relative;
  654. background-color: @LoadBackColor;
  655. }
  656. .loader:before {
  657. top: 59px;
  658. left: 0;
  659. width: 50px;
  660. height: 7px;
  661. opacity: 0.1;
  662. content: "";
  663. background: #000;
  664. border-radius: 50%;
  665. position: absolute;
  666. animation: shadow .5s linear infinite;
  667. }
  668. .loader:after {
  669. top: 0;
  670. left: 0;
  671. width: 50px;
  672. height: 50px;
  673. content: "";
  674. position: absolute;
  675. border-radius: 3px;
  676. background-color: #5FB878;
  677. animation: loading .5s linear infinite;
  678. }
  679. }
  680. @-webkit-keyframes loading {
  681. 17% {
  682. border-bottom-right-radius: 3px;
  683. }
  684. 25% {
  685. transform: translateY(9px) rotate(22.5deg);
  686. }
  687. 50% {
  688. transform: translateY(18px) scale(1, 0.9) rotate(45deg);
  689. border-bottom-right-radius: 40px;
  690. }
  691. 75% {
  692. transform: translateY(9px) rotate(67.5deg);
  693. }
  694. 100% {
  695. transform: translateY(0) rotate(90deg);
  696. }
  697. }
  698. @keyframes loading {
  699. 17% {
  700. border-bottom-right-radius: 3px;
  701. }
  702. 25% {
  703. transform: translateY(9px) rotate(22.5deg);
  704. }
  705. 50% {
  706. border-bottom-right-radius: 40px;
  707. transform: translateY(18px) scale(1, 0.9) rotate(45deg);
  708. }
  709. 75% {
  710. transform: translateY(9px) rotate(67.5deg);
  711. }
  712. 100% {
  713. transform: translateY(0) rotate(90deg);
  714. }
  715. }
  716. @-webkit-keyframes shadow {
  717. 0%,
  718. 100% {
  719. transform: scale(1, 1);
  720. }
  721. 50% {
  722. transform: scale(1.2, 1);
  723. }
  724. }
  725. @keyframes shadow {
  726. 0%,
  727. 100% {
  728. transform: scale(1, 1);
  729. }
  730. 50% {
  731. transform: scale(1.2, 1);
  732. }
  733. }