console.layout.less 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459
  1. /* 页面布局 - 全局 */
  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. box-shadow: none;
  14. > .layui-card-body {
  15. padding: 15px 15px
  16. }
  17. > .layui-card-header {
  18. height: 50px;
  19. border: none;
  20. line-height: 50px;
  21. box-shadow: 0 2px 3px 0 rgba(0, 0, 0, .1);
  22. background: #fff
  23. }
  24. }
  25. }
  26. }
  27. /* 页面布局 - 头部 */
  28. .layui-header {
  29. height: 50px;
  30. background: #393D49 !important;
  31. [data-target-menu-type] {
  32. // box-shadow: 0 1px 1px 0 rgba(0, 0, 0, .15);
  33. border-left: 1px solid rgba(0, 0, 0, 0);
  34. border-right: 1px solid rgba(0, 0, 0, .15);
  35. }
  36. .layui-layout-left,
  37. .layui-layout-right {
  38. padding: 0
  39. }
  40. .layui-logo {
  41. color: #fff;
  42. width: 199px;
  43. height: auto;
  44. font-size: 18px;
  45. line-height: 49px;
  46. border-right: 1px solid rgba(0, 0, 0, .15);
  47. border-bottom: 1px solid rgba(0, 0, 0, .15);
  48. sup {
  49. font-size: 9px;
  50. line-height: 9px
  51. }
  52. }
  53. .layui-nav-item {
  54. height: 50px;
  55. line-height: 50px;
  56. &.layui-this {
  57. background: #009688
  58. }
  59. > a {
  60. color: #fff !important
  61. }
  62. .layui-nav-child {
  63. top: 49px;
  64. padding: 0;
  65. border: none;
  66. line-height: 45px;
  67. + a {
  68. padding-right: 35px
  69. }
  70. &.layui-show + a {
  71. background: #fff
  72. }
  73. &.layui-show + a span {
  74. color: #333
  75. }
  76. dd a {
  77. padding: 0;
  78. color: #333;
  79. text-align: center;
  80. border-top: 1px solid #eaedf1
  81. }
  82. }
  83. }
  84. .layui-nav-bar, .layui-nav-item:after {
  85. display: none !important
  86. }
  87. .layui-layout-right {
  88. > li > a {
  89. border-left: 1px solid rgba(0, 0, 0, .15);
  90. border-right: 1px solid rgba(0, 0, 0, 0);
  91. }
  92. }
  93. }
  94. /* 页面布局 - 左则 */
  95. .layui-layout {
  96. > .layui-side {
  97. .layui-nav-bar {
  98. display: none !important
  99. }
  100. .layui-side-scroll {
  101. width: 100% !important
  102. }
  103. .layui-nav-item {
  104. border-bottom: 1px solid rgba(0, 0, 0, .2);
  105. a {
  106. height: 45px;
  107. display: block;
  108. line-height: 45px;
  109. color: #fff !important;
  110. &:hover {
  111. background: hsla(0, 0%, 39%, .2) !important
  112. }
  113. }
  114. }
  115. .layui-nav-itemed {
  116. border-bottom: none !important
  117. }
  118. .layui-nav-tree-top a {
  119. height: 28px !important;
  120. line-height: 28px !important
  121. }
  122. }
  123. &.layui-layout-left-mini {
  124. > .layui-body {
  125. left: 50px
  126. }
  127. > .layui-side {
  128. .layui-nav-more {
  129. display: none !important
  130. }
  131. .layui-nav-item {
  132. a {
  133. padding: 0
  134. }
  135. .nav-text {
  136. display: none
  137. }
  138. .nav-icon {
  139. display: inline-block !important;
  140. padding: 0 !important
  141. }
  142. .layui-nav-child {
  143. padding: 0;
  144. display: block !important;
  145. background-color: rgba(0, 0, 0, .3) !important
  146. }
  147. }
  148. &, .layui-nav-tree, .layui-side-scroll {
  149. width: 50px;
  150. text-align: center
  151. }
  152. }
  153. [data-target-menu-type] i {
  154. display: inline-block;
  155. -webkit-transform: rotate(180deg);
  156. transform: rotate(180deg);
  157. -ms-transform: rotate(180deg)
  158. }
  159. }
  160. &.layui-layout-left-hide {
  161. > .layui-body {
  162. left: 0 !important
  163. }
  164. > .layui-side {
  165. display: none
  166. }
  167. [data-target-menu-type] {
  168. display: none;
  169. }
  170. }
  171. }
  172. /* 通用分页 */
  173. .pagination-container {
  174. line-height: 40px;
  175. > span {
  176. color: #666;
  177. font-size: 9pt
  178. }
  179. > ul {
  180. float: right;
  181. display: inline-block;
  182. margin: 0;
  183. padding: 0;
  184. > li {
  185. z-index: 1;
  186. display: inline-block;
  187. &.active {
  188. z-index: 2;
  189. > span {
  190. color: #fff;
  191. border-color: #098;
  192. padding-right: 1px;
  193. background: #009688 !important
  194. }
  195. }
  196. > a, > span {
  197. color: #333;
  198. width: 33px;
  199. height: 30px;
  200. border: 1px solid #dcdcdc;
  201. display: inline-block;
  202. margin-left: -1px;
  203. text-align: center;
  204. line-height: 28px
  205. }
  206. > span {
  207. background: #dcdcdc;
  208. cursor: default
  209. }
  210. > a:hover {
  211. background: #dcdcdc;
  212. border-color: #dcdcdc
  213. }
  214. }
  215. }
  216. }
  217. /** 手机盒子及微信菜单 */
  218. .mobile-preview {
  219. width: 317px;
  220. height: 580px;
  221. position: relative;
  222. background: url(../img/wechat/mobile_head.png) no-repeat 0 0;
  223. .mobile-header {
  224. color: #fff;
  225. width: auto;
  226. margin: 0 30px;
  227. overflow: hidden;
  228. font-size: 15px;
  229. padding-top: 30px;
  230. text-align: center;
  231. white-space: nowrap;
  232. text-overflow: ellipsis;
  233. word-wrap: normal;
  234. user-select: none;
  235. pointer-events: none;
  236. -moz-user-select: none;
  237. -webkit-user-select: none;
  238. -webkit-pointer-events: none
  239. }
  240. .mobile-body {
  241. top: 60px;
  242. left: 0;
  243. right: 0;
  244. bottom: 0;
  245. position: absolute;
  246. border: 1px solid #ccc;
  247. background: #f5f5f5;
  248. iframe {
  249. width: 100%;
  250. height: 100%
  251. }
  252. }
  253. .mobile-footer {
  254. left: 0;
  255. right: 0;
  256. bottom: 0;
  257. margin: 0;
  258. position: absolute;
  259. padding-left: 43px;
  260. border: 1px solid #ccc;
  261. list-style-type: none;
  262. background: url(../img/wechat/mobile_foot.png) no-repeat 0 0;
  263. li {
  264. float: left;
  265. width: 33.33%;
  266. position: relative;
  267. text-align: center;
  268. line-height: 50px;
  269. a {
  270. width: auto;
  271. display: block;
  272. overflow: hidden;
  273. border: 1px solid hsla(0, 0%, 100%, 0);
  274. border-left: 1px solid #e7e7eb;
  275. margin-top: -1px;
  276. margin-bottom: -1px;
  277. color: #616161;
  278. white-space: nowrap;
  279. text-decoration: none;
  280. text-overflow: ellipsis;
  281. word-wrap: normal;
  282. &:hover {
  283. background: rgba(0, 0, 0, .02)
  284. }
  285. &.active {
  286. border: 1px solid #44b549 !important;
  287. box-shadow: 0 0 1px #44b549
  288. }
  289. span:before {
  290. width: 1px;
  291. height: 1px;
  292. content: '';
  293. display: inline-block
  294. }
  295. }
  296. > .close {
  297. top: 1px;
  298. right: 1px;
  299. width: 18px;
  300. height: 18px;
  301. display: none;
  302. cursor: pointer;
  303. position: absolute;
  304. text-align: center;
  305. line-height: 18px
  306. }
  307. &:hover > .close {
  308. display: inline-block;
  309. &:hover {
  310. color: #fff !important;
  311. background: #999 !important
  312. }
  313. }
  314. }
  315. .icon-add {
  316. width: 14px;
  317. height: 14px;
  318. border-bottom: none !important;
  319. background: url(../img/wechat/index.png) 0 0 no-repeat
  320. }
  321. .icon-add, .icon-sub {
  322. display: inline-block;
  323. vertical-align: middle
  324. }
  325. .icon-sub {
  326. width: 7px;
  327. height: 7px;
  328. margin-right: 2px;
  329. background: url(../img/wechat/index.png) 0 -3pc no-repeat
  330. }
  331. .sub-menu {
  332. width: 100%;
  333. bottom: 60px;
  334. margin: -1px;
  335. display: block;
  336. position: absolute;
  337. border: 1px solid #d0d0d0;
  338. background-color: #fafafa;
  339. ul, ul li {
  340. float: none;
  341. padding: 0;
  342. z-index: 11;
  343. display: block;
  344. width: 100%
  345. }
  346. ul li {
  347. a {
  348. padding: 0 5px;
  349. border: 1px solid hsla(0, 0%, 100%, 0);
  350. &.bottom-border {
  351. margin: -1px -1px 0;
  352. border-bottom: 1px solid #e7e7eb
  353. }
  354. }
  355. &:last-child a.bottom-border {
  356. border-bottom-color: #fff
  357. }
  358. }
  359. }
  360. .arrow {
  361. left: 50%;
  362. position: absolute;
  363. margin-left: -6px
  364. }
  365. .arrow_in, .arrow_out {
  366. width: 0;
  367. height: 0;
  368. z-index: 10;
  369. display: inline-block;
  370. border: 6px dashed transparent;
  371. border-bottom-width: 0;
  372. border-top-style: solid
  373. }
  374. .arrow_in {
  375. z-index: 3;
  376. bottom: -5px;
  377. border-top-color: #fafafa
  378. }
  379. .arrow_out {
  380. z-index: 2;
  381. bottom: -6px;
  382. border-top-color: #d0d0d0
  383. }
  384. }
  385. }