console.layout.less 7.1 KB

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