console.layout.less 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616
  1. @import "console.config.less";
  2. .layui-layout {
  3. > .layui-side {
  4. top: 50px;
  5. bottom: 0;
  6. overflow: auto
  7. }
  8. > .layui-body {
  9. top: 50px;
  10. bottom: 0;
  11. overflow: auto;
  12. > .layui-card {
  13. overflow: visible;
  14. position: absolute;
  15. min-width: 100%;
  16. min-height: 100%;
  17. box-shadow: none;
  18. background: none !important;
  19. > .layui-card-header {
  20. left: 200px;
  21. right: 0;
  22. z-index: 3;
  23. height: 50px;
  24. border: none;
  25. position: fixed;
  26. background: #fff;
  27. line-height: 50px;
  28. box-shadow: @maxShadow;
  29. }
  30. > .layui-card-header + .layui-card-body {
  31. top: 50px;
  32. }
  33. > .layui-card-body {
  34. z-index: 2;
  35. padding: 15px;
  36. > .layui-tab.layui-tab-card {
  37. border: none;
  38. box-shadow: @maxShadow;
  39. }
  40. > .layui-tab.layui-tab-card > .layui-tab-content.think-box-shadow {
  41. box-shadow: none;
  42. }
  43. }
  44. }
  45. }
  46. }
  47. /* 页面布局 - 头部 */
  48. .layui-header {
  49. height: 50px;
  50. background: #393D49 !important;
  51. [data-target-menu-type] {
  52. border-left: 1px solid rgba(0, 0, 0, 0);
  53. border-right: 1px solid rgba(0, 0, 0, .15);
  54. }
  55. .layui-layout-left, .layui-layout-right {
  56. margin: 0;
  57. padding: 0
  58. }
  59. .layui-logo {
  60. color: #fff;
  61. width: 199px;
  62. height: auto;
  63. font-size: 18px;
  64. line-height: 49px;
  65. border-right: 1px solid rgba(0, 0, 0, .15);
  66. border-bottom: 1px solid rgba(0, 0, 0, .15);
  67. sup {
  68. font-size: 9px;
  69. line-height: 9px;
  70. padding-left: 5px;
  71. }
  72. }
  73. .layui-nav-item {
  74. height: 50px;
  75. line-height: 50px;
  76. &.layui-this {
  77. background: #009688
  78. }
  79. > a {
  80. color: #fff !important
  81. }
  82. .layui-nav-child {
  83. top: 49px;
  84. border: 0;
  85. padding: 0;
  86. background: #eef;
  87. line-height: 45px;
  88. + a.layui-elip {
  89. padding-right: 35px;
  90. img {
  91. width: 20px;
  92. height: 20px;
  93. border-radius: 50%
  94. }
  95. span {
  96. padding-left: 5px;
  97. }
  98. }
  99. &.layui-show + a {
  100. background: #fff;
  101. span {
  102. color: #333
  103. }
  104. }
  105. dd {
  106. background: #fff;
  107. a {
  108. padding: 0;
  109. color: #333;
  110. margin-top: 1px;
  111. text-align: center;
  112. .layui-icon {
  113. margin-right: 5px;
  114. }
  115. }
  116. }
  117. }
  118. }
  119. .layui-nav-bar, .layui-nav-item:after {
  120. display: none !important
  121. }
  122. .layui-layout-right {
  123. > li > a {
  124. border-left: 1px solid rgba(0, 0, 0, .15);
  125. border-right: 1px solid rgba(0, 0, 0, 0);
  126. }
  127. }
  128. }
  129. /* 页面布局 - 左则 */
  130. .layui-layout {
  131. > .layui-side {
  132. .layui-nav-bar {
  133. display: none !important
  134. }
  135. .layui-side-scroll {
  136. width: 100% !important
  137. }
  138. .layui-nav-item {
  139. border-bottom: 1px solid rgba(0, 0, 0, .2);
  140. a {
  141. height: 45px;
  142. display: block;
  143. line-height: 45px;
  144. color: #fff !important;
  145. &:hover {
  146. background: hsla(0, 0%, 39%, .2) !important
  147. }
  148. .nav-icon, .nav-text {
  149. padding-left: 5px
  150. }
  151. }
  152. &ed {
  153. border-bottom: none !important;
  154. }
  155. }
  156. .layui-nav-tree-top a {
  157. height: 28px !important;
  158. line-height: 28px !important
  159. }
  160. }
  161. &.layui-layout-left-mini {
  162. > .layui-body {
  163. left: 50px;
  164. > .layui-card {
  165. > .layui-card-header {
  166. left: 50px;
  167. }
  168. }
  169. }
  170. > .layui-side {
  171. .layui-nav-more {
  172. display: none !important
  173. }
  174. .layui-nav-item {
  175. a {
  176. padding: 0
  177. }
  178. .nav-text {
  179. display: none
  180. }
  181. .nav-icon {
  182. display: inline-block !important;
  183. padding: 0 !important
  184. }
  185. .layui-nav-child {
  186. padding: 0;
  187. display: block !important;
  188. background-color: rgba(0, 0, 0, .3) !important
  189. }
  190. }
  191. &, .layui-nav-tree, .layui-side-scroll {
  192. width: 50px;
  193. text-align: center
  194. }
  195. }
  196. [data-target-menu-type] i {
  197. display: inline-block;
  198. transform: rotate(180deg);
  199. -ms-transform: rotate(180deg);
  200. -webkit-transform: rotate(180deg);
  201. }
  202. }
  203. &.layui-layout-left-hide {
  204. > .layui-body {
  205. left: 0 !important;
  206. > .layui-card {
  207. > .layui-card-header {
  208. left: 0 !important;
  209. }
  210. }
  211. }
  212. > .layui-side {
  213. display: none
  214. }
  215. [data-target-menu-type] {
  216. display: none;
  217. }
  218. }
  219. }
  220. /** 手机盒子及微信菜单 */
  221. .mobile-preview {
  222. width: 317px;
  223. height: 580px;
  224. position: relative;
  225. background: url(../img/wechat/mobile_head.png) no-repeat 0 0;
  226. box-shadow: @minShadow;
  227. border-radius: @borderRadius;
  228. .mobile-header {
  229. color: #fff;
  230. width: auto;
  231. margin: 0 30px;
  232. overflow: hidden;
  233. font-size: 15px;
  234. padding-top: 30px;
  235. text-align: center;
  236. white-space: nowrap;
  237. text-overflow: ellipsis;
  238. word-wrap: normal;
  239. user-select: none;
  240. -moz-user-select: none;
  241. -webkit-user-select: none;
  242. pointer-events: none;
  243. -webkit-pointer-events: none;
  244. }
  245. .mobile-body {
  246. top: 60px;
  247. left: 0;
  248. right: 0;
  249. bottom: 0;
  250. border: 1px solid #ccc;
  251. position: absolute;
  252. background: #f5f5f5;
  253. border-radius: 0 0 @borderRadius @borderRadius;
  254. iframe {
  255. width: 100%;
  256. height: 100%
  257. }
  258. }
  259. .mobile-footer {
  260. left: 0;
  261. right: 0;
  262. bottom: 0;
  263. margin: 0;
  264. border: 1px solid #ccc;
  265. position: absolute;
  266. padding-left: 43px;
  267. background: url(../img/wechat/mobile_foot.png) no-repeat 0 0;
  268. list-style-type: none;
  269. border-radius: 0 0 @borderRadius @borderRadius;
  270. li {
  271. float: left;
  272. width: 33.33%;
  273. position: relative;
  274. text-align: center;
  275. line-height: 50px;
  276. a {
  277. width: auto;
  278. color: #616161;
  279. border: 1px solid hsla(0, 0%, 100%, 0);
  280. display: block;
  281. overflow: hidden;
  282. word-wrap: normal;
  283. margin-top: -1px;
  284. border-left: 1px solid #e7e7eb;
  285. white-space: nowrap;
  286. text-overflow: ellipsis;
  287. margin-bottom: -1px;
  288. text-decoration: none;
  289. &:hover {
  290. background: rgba(0, 0, 0, .02)
  291. }
  292. &.active {
  293. border: 1px solid #44b549 !important;
  294. box-shadow: 0 0 1px #44b549
  295. }
  296. span:before {
  297. width: 1px;
  298. height: 1px;
  299. content: '';
  300. display: inline-block
  301. }
  302. }
  303. > .close {
  304. top: 1px;
  305. right: 1px;
  306. width: 18px;
  307. height: 18px;
  308. display: none;
  309. cursor: pointer;
  310. position: absolute;
  311. text-align: center;
  312. line-height: 18px
  313. }
  314. &:hover > .close {
  315. display: inline-block;
  316. &:hover {
  317. color: #fff !important;
  318. background: #999 !important
  319. }
  320. }
  321. }
  322. .icon {
  323. &-add, &-sub {
  324. display: inline-block;
  325. vertical-align: middle
  326. }
  327. &-add {
  328. width: 14px;
  329. height: 14px;
  330. border-bottom: none !important;
  331. background: url(../img/wechat/index.png) 0 0 no-repeat
  332. }
  333. &-sub {
  334. width: 7px;
  335. height: 7px;
  336. margin-right: 2px;
  337. background: url(../img/wechat/index.png) 0 -3pc no-repeat
  338. }
  339. }
  340. .sub-menu {
  341. width: 100%;
  342. bottom: 60px;
  343. margin: -1px;
  344. display: block;
  345. position: absolute;
  346. border: 1px solid #d0d0d0;
  347. background-color: #fafafa;
  348. ul li {
  349. float: none;
  350. width: 100%;
  351. padding: 0;
  352. z-index: 11;
  353. display: block;
  354. a {
  355. padding: 0 5px;
  356. border: 1px solid hsla(0, 0%, 100%, 0);
  357. &.bottom-border {
  358. margin: -1px -1px 0;
  359. border-bottom: 1px solid #e7e7eb
  360. }
  361. }
  362. &:last-child a.bottom-border {
  363. border-bottom-color: #fff
  364. }
  365. }
  366. }
  367. .arrow {
  368. left: 50%;
  369. position: absolute;
  370. margin-left: -6px;
  371. }
  372. .arrow_in, .arrow_out {
  373. width: 0;
  374. height: 0;
  375. z-index: 10;
  376. border: 6px dashed transparent;
  377. display: inline-block;
  378. border-top-style: solid;
  379. border-bottom-width: 0;
  380. }
  381. .arrow_in {
  382. bottom: -5px;
  383. z-index: 3;
  384. border-top-color: #fafafa
  385. }
  386. .arrow_out {
  387. bottom: -6px;
  388. z-index: 2;
  389. border-top-color: #d0d0d0
  390. }
  391. }
  392. }
  393. /* 下拉样式 */
  394. .layui-nav {
  395. .layui-nav-item {
  396. .layui-nav-more {
  397. top: 0;
  398. right: 15px;
  399. width: auto;
  400. height: auto;
  401. border: none;
  402. margin-top: 0;
  403. font-size: 14px;
  404. font-style: normal;
  405. font-family: "layui-icon" !important;
  406. -moz-osx-font-smoothing: grayscale;
  407. -webkit-font-smoothing: antialiased;
  408. &::before {
  409. content: "\e619"
  410. }
  411. }
  412. & .layui-nav-mored, &ed .layui-nav-more {
  413. border: none;
  414. margin-top: 0;
  415. transform: rotate(180deg);
  416. -o-transform: rotate(180deg);
  417. -ms-transform: rotate(180deg);
  418. -moz-transform: rotate(180deg);
  419. -webkit-transform: rotate(180deg)
  420. }
  421. }
  422. }
  423. /*! 重置 Iframe 页面样式 */
  424. .iframe-pagination {
  425. padding: 20px 20px 45px 20px;
  426. .pagination-container {
  427. left: 0;
  428. right: 0;
  429. bottom: 0;
  430. padding: 5px 20px;
  431. position: fixed;
  432. background: #fff;
  433. border-top: 1px solid #ddd;
  434. }
  435. }
  436. /*! 首页加载动画 */
  437. .think-page-loader {
  438. top: 0;
  439. width: 100%;
  440. height: 100%;
  441. z-index: 9999999;
  442. position: fixed;
  443. background-color: whitesmoke;
  444. .loader {
  445. top: 50%;
  446. width: 50px;
  447. height: 50px;
  448. margin: -30px auto 40px;
  449. z-index: 999999;
  450. position: relative;
  451. background-color: whitesmoke;
  452. }
  453. .loader:before {
  454. top: 59px;
  455. left: 0;
  456. width: 50px;
  457. height: 7px;
  458. opacity: 0.1;
  459. content: "";
  460. background: #000;
  461. border-radius: 50%;
  462. position: absolute;
  463. animation: shadow .5s linear infinite;
  464. }
  465. .loader:after {
  466. top: 0;
  467. left: 0;
  468. width: 50px;
  469. height: 50px;
  470. content: "";
  471. position: absolute;
  472. border-radius: 3px;
  473. background-color: #5FB878;
  474. animation: loading .5s linear infinite;
  475. }
  476. }
  477. @-webkit-keyframes loading {
  478. 17% {
  479. border-bottom-right-radius: 3px;
  480. }
  481. 25% {
  482. transform: translateY(9px) rotate(22.5deg);
  483. }
  484. 50% {
  485. transform: translateY(18px) scale(1, 0.9) rotate(45deg);
  486. border-bottom-right-radius: 40px;
  487. }
  488. 75% {
  489. transform: translateY(9px) rotate(67.5deg);
  490. }
  491. 100% {
  492. transform: translateY(0) rotate(90deg);
  493. }
  494. }
  495. @keyframes loading {
  496. 17% {
  497. border-bottom-right-radius: 3px;
  498. }
  499. 25% {
  500. transform: translateY(9px) rotate(22.5deg);
  501. }
  502. 50% {
  503. border-bottom-right-radius: 40px;
  504. transform: translateY(18px) scale(1, 0.9) rotate(45deg);
  505. }
  506. 75% {
  507. transform: translateY(9px) rotate(67.5deg);
  508. }
  509. 100% {
  510. transform: translateY(0) rotate(90deg);
  511. }
  512. }
  513. @-webkit-keyframes shadow {
  514. 0%,
  515. 100% {
  516. transform: scale(1, 1);
  517. }
  518. 50% {
  519. transform: scale(1.2, 1);
  520. }
  521. }
  522. @keyframes shadow {
  523. 0%,
  524. 100% {
  525. transform: scale(1, 1);
  526. }
  527. 50% {
  528. transform: scale(1.2, 1);
  529. }
  530. }