console.layout.less 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347
  1. @import "console.config.less";
  2. .layui-layout {
  3. > .layui-header {
  4. left: 200px;
  5. right: 0;
  6. height: 50px;
  7. position: absolute;
  8. color: @TopHeaderTextColor !important;
  9. background: @TopHeaderBackColor !important;
  10. > ul.layui-nav {
  11. margin: 0;
  12. padding: 0;
  13. white-space: nowrap;
  14. .layui-logo-hide {
  15. width: 50px !important;
  16. padding: 0 !important;
  17. display: none;
  18. text-align: center;
  19. }
  20. &.layui-layout-left {
  21. left: 0;
  22. }
  23. &.layui-layout-right {
  24. .headimg {
  25. width: 20px;
  26. height: 20px;
  27. }
  28. }
  29. .layui-nav-item > a {
  30. height: 50px;
  31. padding: 0 18px;
  32. overflow: hidden;
  33. line-height: 50px;
  34. &:hover {
  35. color: @TopHeaderNavHoverTextColor
  36. }
  37. .layui-icon {
  38. font-size: 16px !important;
  39. }
  40. }
  41. }
  42. .layui-nav-item {
  43. height: 50px;
  44. line-height: 50px;
  45. > a {
  46. color: @TopHeaderNavNormalTextColor !important;
  47. background: @TopHeaderNavNormalBackColor !important;
  48. &:hover {
  49. color: @TopHeaderNavHoverTextColor !important;
  50. background: @TopHeaderNavHoverBackColor !important;
  51. }
  52. }
  53. &.layui-this > a {
  54. color: @TopHeaderNavActiveTextColor !important;
  55. background: @TopHeaderNavActiveBackColor !important;
  56. }
  57. .layui-nav-child {
  58. top: 50px;
  59. border: 0;
  60. padding: 0;
  61. line-height: 48px;
  62. border-radius: 0;
  63. + a.layui-elip {
  64. padding-right: 35px;
  65. img {
  66. width: 20px;
  67. height: 20px;
  68. margin-right: 5px;
  69. border-radius: 50%;
  70. }
  71. }
  72. &.layui-show + a {
  73. background: #fff;
  74. }
  75. dd {
  76. a {
  77. padding: 0;
  78. margin-top: 1px;
  79. text-align: center;
  80. .layui-icon {
  81. margin-right: 5px;
  82. }
  83. }
  84. }
  85. }
  86. }
  87. .layui-nav-bar, .layui-nav-item:after {
  88. display: none !important
  89. }
  90. }
  91. > .layui-side {
  92. top: 0;
  93. bottom: 0;
  94. position: fixed;
  95. overflow: hidden;
  96. background-color: @LeftMainBackColor;
  97. .layui-logo,
  98. .layui-logo-mini {
  99. color: #fff;
  100. width: auto;
  101. height: 50px;
  102. display: block;
  103. overflow: hidden;
  104. position: relative;
  105. font-size: 18px;
  106. text-align: center;
  107. line-height: 50px;
  108. border-bottom: 1px solid rgba(0, 0, 0, .15);
  109. sup {
  110. font-size: 9px;
  111. line-height: 9px;
  112. padding-left: 5px;
  113. }
  114. }
  115. .layui-logo-mini {
  116. display: none;
  117. }
  118. .layui-nav-bar {
  119. display: none !important;
  120. }
  121. .layui-side-scroll {
  122. top: 51px;
  123. bottom: 0;
  124. width: 100% !important;
  125. height: 100% !important;
  126. overflow: auto;
  127. position: absolute;
  128. &:after {
  129. height: 50px;
  130. display: block;
  131. content: '';
  132. }
  133. &::-webkit-scrollbar {
  134. width: 3px !important;
  135. &-track {
  136. background: #ccc !important
  137. }
  138. &-thumb {
  139. background-color: #666 !important
  140. }
  141. }
  142. .layui-nav-item {
  143. border-bottom: 1px solid rgba(0, 0, 0, .2);
  144. .layui-nav-child {
  145. padding: 0;
  146. background-color: @LeftMainSubBackColor;
  147. }
  148. dd, dd > a {
  149. color: @LeftMainNavNormalTextColor;
  150. background-color: @LeftMainNavNormalBackColor;
  151. }
  152. dd.layui-this, dd.layui-this > a {
  153. color: @LeftMainNavActiveTextColor;
  154. background-color: @LeftMainNavActiveBackColor;
  155. }
  156. a {
  157. height: 45px;
  158. display: block;
  159. line-height: 45px;
  160. padding-top: 0;
  161. padding-bottom: 0;
  162. &:hover {
  163. color: @LeftMainNavHoverTextColor;
  164. background: @LeftMainNavHoverBackColor
  165. }
  166. .nav-icon, .nav-text {
  167. padding-left: 5px
  168. }
  169. }
  170. }
  171. }
  172. }
  173. > .layui-body {
  174. top: 50px;
  175. bottom: 0;
  176. overflow: auto;
  177. background: @BodyMainBackColor;
  178. > .layui-card {
  179. overflow: visible;
  180. position: absolute;
  181. min-width: 100%;
  182. min-height: 100%;
  183. box-shadow: none;
  184. background: none !important;
  185. > .layui-card-header {
  186. left: 200px;
  187. right: 0;
  188. z-index: 3;
  189. height: 50px;
  190. border: none;
  191. position: fixed;
  192. background: #fff;
  193. line-height: 50px;
  194. box-shadow: @MaxOuterShadow;
  195. }
  196. > .layui-card-header + .layui-card-body {
  197. top: 50px;
  198. }
  199. > .layui-card-body {
  200. z-index: 2;
  201. padding: 15px;
  202. > .layui-tab.layui-tab-card {
  203. border: none;
  204. box-shadow: @MaxOuterShadow;
  205. }
  206. > .layui-tab.layui-tab-card > .layui-tab-content.think-box-shadow {
  207. box-shadow: none;
  208. }
  209. }
  210. }
  211. }
  212. }
  213. .layui-layout-left-mini {
  214. .layui-header {
  215. left: 50px;
  216. }
  217. > .layui-body {
  218. left: 50px;
  219. > .layui-card {
  220. > .layui-card-header {
  221. left: 50px;
  222. }
  223. }
  224. }
  225. > .layui-side {
  226. .layui-logo {
  227. display: none;
  228. }
  229. .layui-logo-mini {
  230. display: block;
  231. }
  232. .layui-nav-more {
  233. display: none !important
  234. }
  235. .layui-nav-item {
  236. a {
  237. padding: 0
  238. }
  239. .nav-text {
  240. display: none
  241. }
  242. .nav-icon {
  243. padding: 0 !important;
  244. display: inline-block !important;
  245. }
  246. .layui-nav-child {
  247. padding: 0;
  248. display: block !important;
  249. background-color: rgba(0, 0, 0, .3) !important
  250. }
  251. }
  252. &, .layui-nav-tree, .layui-side-scroll {
  253. width: 50px;
  254. text-align: center;
  255. }
  256. }
  257. [data-target-menu-type] i {
  258. display: inline-block;
  259. transform: rotate(180deg);
  260. -ms-transform: rotate(180deg);
  261. -webkit-transform: rotate(180deg);
  262. }
  263. }
  264. .layui-layout-left-hide {
  265. > .layui-body {
  266. left: 0 !important;
  267. > .layui-card {
  268. > .layui-card-header {
  269. left: 0 !important;
  270. }
  271. }
  272. }
  273. > .layui-header {
  274. left: 0 !important;
  275. .layui-logo-hide {
  276. display: inline-block !important;
  277. }
  278. }
  279. > .layui-side {
  280. display: none !important;
  281. }
  282. [data-target-menu-type] {
  283. display: none !important;
  284. }
  285. }