console.layout.less 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313
  1. .layui-layout {
  2. > .layui-side {
  3. top: 50px;
  4. bottom: 0;
  5. overflow: auto
  6. }
  7. > .layui-body {
  8. top: 50px;
  9. bottom: 0;
  10. overflow: auto;
  11. > .layui-card {
  12. overflow: visible;
  13. position: absolute;
  14. min-width: 100%;
  15. min-height: 100%;
  16. box-shadow: none;
  17. background: none !important;
  18. > .layui-card-header {
  19. left: 200px;
  20. right: 0;
  21. z-index: 3;
  22. height: 50px;
  23. border: none;
  24. position: fixed;
  25. background: #fff;
  26. line-height: 50px;
  27. box-shadow: 0 2px 3px 0 rgba(0, 0, 0, .22);
  28. }
  29. > .layui-card-header + .layui-card-body {
  30. top: 50px;
  31. }
  32. > .layui-card-body {
  33. z-index: 2;
  34. padding: 15px;
  35. > .layui-tab.layui-tab-card {
  36. border: none;
  37. box-shadow: 0 2px 3px 0 rgba(0, 0, 0, .22);
  38. }
  39. > .layui-tab.layui-tab-card > .layui-tab-content.think-box-shadow {
  40. box-shadow: none;
  41. }
  42. }
  43. }
  44. }
  45. }
  46. /* 页面布局 - 头部 */
  47. .layui-header {
  48. height: 50px;
  49. background: #393D49 !important;
  50. [data-target-menu-type] {
  51. border-left: 1px solid rgba(0, 0, 0, 0);
  52. border-right: 1px solid rgba(0, 0, 0, .15);
  53. }
  54. .layui-layout-left, .layui-layout-right {
  55. margin: 0;
  56. padding: 0
  57. }
  58. .layui-logo {
  59. color: #fff;
  60. width: 199px;
  61. height: auto;
  62. font-size: 18px;
  63. line-height: 49px;
  64. border-right: 1px solid rgba(0, 0, 0, .15);
  65. border-bottom: 1px solid rgba(0, 0, 0, .15);
  66. sup {
  67. font-size: 9px;
  68. line-height: 9px;
  69. padding-left: 5px;
  70. }
  71. }
  72. .layui-nav-item {
  73. height: 50px;
  74. line-height: 50px;
  75. &.layui-this {
  76. background: #009688
  77. }
  78. > a {
  79. color: #fff !important
  80. }
  81. .layui-nav-child {
  82. top: 49px;
  83. border: 0;
  84. padding: 0;
  85. background: #eef;
  86. line-height: 45px;
  87. + a.layui-elip {
  88. padding-right: 35px;
  89. img {
  90. width: 20px;
  91. height: 20px;
  92. border-radius: 50%
  93. }
  94. span {
  95. padding-left: 5px;
  96. }
  97. }
  98. &.layui-show + a {
  99. background: #fff;
  100. span {
  101. color: #333
  102. }
  103. }
  104. dd {
  105. background: #fff;
  106. a {
  107. padding: 0;
  108. color: #333;
  109. margin-top: 1px;
  110. text-align: center;
  111. .layui-icon {
  112. margin-right: 5px;
  113. }
  114. }
  115. }
  116. }
  117. }
  118. .layui-nav-bar, .layui-nav-item:after {
  119. display: none !important
  120. }
  121. .layui-layout-right {
  122. > li > a {
  123. border-left: 1px solid rgba(0, 0, 0, .15);
  124. border-right: 1px solid rgba(0, 0, 0, 0);
  125. }
  126. }
  127. }
  128. /* 页面布局 - 左则 */
  129. .layui-layout {
  130. > .layui-side {
  131. .layui-nav-bar {
  132. display: none !important
  133. }
  134. .layui-side-scroll {
  135. width: 100% !important
  136. }
  137. .layui-nav-item {
  138. border-bottom: 1px solid rgba(0, 0, 0, .2);
  139. a {
  140. height: 45px;
  141. display: block;
  142. line-height: 45px;
  143. color: #fff !important;
  144. &:hover {
  145. background: hsla(0, 0%, 39%, .2) !important
  146. }
  147. .nav-icon, .nav-text {
  148. padding-left: 5px
  149. }
  150. }
  151. &ed {
  152. border-bottom: none !important;
  153. }
  154. }
  155. .layui-nav-tree-top a {
  156. height: 28px !important;
  157. line-height: 28px !important
  158. }
  159. }
  160. &.layui-layout-left-mini {
  161. > .layui-body {
  162. left: 50px;
  163. > .layui-card {
  164. > .layui-card-header {
  165. left: 50px;
  166. }
  167. }
  168. }
  169. > .layui-side {
  170. .layui-nav-more {
  171. display: none !important
  172. }
  173. .layui-nav-item {
  174. a {
  175. padding: 0
  176. }
  177. .nav-text {
  178. display: none
  179. }
  180. .nav-icon {
  181. display: inline-block !important;
  182. padding: 0 !important
  183. }
  184. .layui-nav-child {
  185. padding: 0;
  186. display: block !important;
  187. background-color: rgba(0, 0, 0, .3) !important
  188. }
  189. }
  190. &, .layui-nav-tree, .layui-side-scroll {
  191. width: 50px;
  192. text-align: center
  193. }
  194. }
  195. [data-target-menu-type] i {
  196. display: inline-block;
  197. transform: rotate(180deg);
  198. -ms-transform: rotate(180deg);
  199. -webkit-transform: rotate(180deg);
  200. }
  201. }
  202. &.layui-layout-left-hide {
  203. > .layui-body {
  204. left: 0 !important;
  205. > .layui-card {
  206. > .layui-card-header {
  207. left: 0 !important;
  208. }
  209. }
  210. }
  211. > .layui-side {
  212. display: none
  213. }
  214. [data-target-menu-type] {
  215. display: none;
  216. }
  217. }
  218. }
  219. /* 下拉样式 */
  220. .layui-nav {
  221. .layui-nav-item {
  222. .layui-nav-more {
  223. top: 0;
  224. right: 15px;
  225. width: auto;
  226. height: auto;
  227. border: none;
  228. margin-top: 0;
  229. font-size: 14px;
  230. font-style: normal;
  231. font-family: "layui-icon" !important;
  232. -moz-osx-font-smoothing: grayscale;
  233. -webkit-font-smoothing: antialiased;
  234. &::before {
  235. content: "\e619"
  236. }
  237. }
  238. & .layui-nav-mored, &ed .layui-nav-more {
  239. border: none;
  240. margin-top: 0;
  241. transform: rotate(180deg);
  242. -o-transform: rotate(180deg);
  243. -ms-transform: rotate(180deg);
  244. -moz-transform: rotate(180deg);
  245. -webkit-transform: rotate(180deg)
  246. }
  247. }
  248. }
  249. .iframe-pagination {
  250. padding: 20px 20px 45px 20px;
  251. .pagination-container {
  252. left: 0;
  253. right: 0;
  254. bottom: 0;
  255. padding: 5px 20px;
  256. position: fixed;
  257. background: #fff;
  258. border-top: 1px solid #ddd;
  259. }
  260. }