console.layout.less 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315
  1. @import "console.dynamic.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. .layui-nav {
  222. .layui-nav-item {
  223. .layui-nav-more {
  224. top: 0;
  225. right: 15px;
  226. width: auto;
  227. height: auto;
  228. border: none;
  229. margin-top: 0;
  230. font-size: 14px;
  231. font-style: normal;
  232. font-family: "layui-icon" !important;
  233. -moz-osx-font-smoothing: grayscale;
  234. -webkit-font-smoothing: antialiased;
  235. &::before {
  236. content: "\e619"
  237. }
  238. }
  239. & .layui-nav-mored, &ed .layui-nav-more {
  240. border: none;
  241. margin-top: 0;
  242. transform: rotate(180deg);
  243. -o-transform: rotate(180deg);
  244. -ms-transform: rotate(180deg);
  245. -moz-transform: rotate(180deg);
  246. -webkit-transform: rotate(180deg)
  247. }
  248. }
  249. }
  250. .iframe-pagination {
  251. padding: 20px 20px 45px 20px;
  252. .pagination-container {
  253. left: 0;
  254. right: 0;
  255. bottom: 0;
  256. padding: 5px 20px;
  257. position: fixed;
  258. background: #fff;
  259. border-top: 1px solid #ddd;
  260. }
  261. }