_layout.less 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489
  1. @charset "UTF-8";
  2. @import "_config.less";
  3. // +----------------------------------------------------------------------
  4. // | ThinkAdmin
  5. // +----------------------------------------------------------------------
  6. // | 版权所有 2014~2022 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
  7. // +----------------------------------------------------------------------
  8. // | 官方网站: https://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: @LayoutDefaLeftSzie;
  18. right: 0;
  19. color: @TopHeaderTextColor !important;
  20. height: @TopHeaderHeight !important;
  21. z-index: 222;
  22. position: absolute;
  23. box-sizing: content-box;
  24. background: @TopHeaderBackColor !important;
  25. #NotSelect();
  26. > ul.layui-nav {
  27. margin: 0;
  28. padding: 0;
  29. white-space: nowrap;
  30. .layui-logo-hide {
  31. width: 50px !important;
  32. padding: 0 !important;
  33. display: none;
  34. text-align: center;
  35. .headimg {
  36. margin: 0;
  37. }
  38. }
  39. &.layui-layout-left {
  40. left: 0;
  41. }
  42. &.layui-layout-right {
  43. .headimg {
  44. width: 20px;
  45. height: 20px;
  46. margin-bottom: 0;
  47. }
  48. }
  49. .layui-nav-item > a {
  50. height: @TopHeaderHeight;
  51. padding: 0 18px;
  52. overflow: hidden;
  53. line-height: @TopHeaderHeight;
  54. &:hover {
  55. color: @TopHeaderNavHoverTextColor
  56. }
  57. .layui-icon {
  58. font-size: 16px;
  59. }
  60. }
  61. }
  62. .layui-nav-item {
  63. height: @TopHeaderHeight;
  64. line-height: @TopHeaderHeight;
  65. > a {
  66. color: @TopHeaderNavNormalTextColor !important;
  67. &:hover {
  68. color: @TopHeaderNavHoverTextColor !important;
  69. background: @TopHeaderNavHoverBackColor !important;
  70. }
  71. }
  72. &.layui-this > a {
  73. color: @TopHeaderNavActiveTextColor !important;
  74. background: @TopHeaderNavActiveBackColor !important;
  75. }
  76. .layui-nav-child {
  77. top: @BodyMainTop;
  78. border: 0;
  79. padding: 0;
  80. line-height: 48px;
  81. border-radius: 0;
  82. &.layui-show + a.layui-elip {
  83. background: @TopHeaderNavHoverBackColor !important;
  84. }
  85. + a.layui-elip {
  86. padding-right: 35px;
  87. img {
  88. width: 20px;
  89. height: 20px;
  90. margin-right: 5px;
  91. border-radius: 50%;
  92. }
  93. }
  94. &.layui-show + a {
  95. background: #FFF;
  96. }
  97. dd {
  98. margin: 0;
  99. a {
  100. padding: 0;
  101. text-align: center;
  102. &:hover {
  103. background: @TopHeaderNavHoverBackColor !important;
  104. }
  105. .layui-icon {
  106. margin-right: 5px;
  107. }
  108. }
  109. }
  110. }
  111. }
  112. .layui-nav-bar,
  113. .layui-nav-item:after {
  114. display: none !important
  115. }
  116. }
  117. > .layui-side {
  118. top: 0;
  119. bottom: 0;
  120. width: @LayoutDefaLeftSzie;
  121. z-index: 333;
  122. position: fixed;
  123. overflow: hidden;
  124. box-shadow: @ShadowBodyLeft;
  125. background-color: @LeftMainBackColor;
  126. #NotSelect();
  127. .layui-logo {
  128. color: #FFF;
  129. width: auto;
  130. height: @TopHeaderHeight;
  131. display: block;
  132. overflow: hidden;
  133. position: relative;
  134. text-align: center;
  135. box-shadow: none !important;
  136. line-height: @TopHeaderHeight;
  137. border-bottom: @BoxBottomLine;
  138. .headimg {
  139. margin: 0 10px 0 0;
  140. }
  141. .headtxt {
  142. font-size: 18px;
  143. font-weight: bold;
  144. sup {
  145. font-size: 9px;
  146. line-height: 9px;
  147. padding-left: 5px;
  148. }
  149. }
  150. }
  151. .layui-side-target {
  152. &:before {
  153. color: #FFF;
  154. width: 100%;
  155. height: 100%;
  156. display: block;
  157. content: "\e65b";
  158. line-height: 30px;
  159. text-align: center;
  160. transform: rotate(180deg);
  161. #iconLayout(10px);
  162. }
  163. top: 50%;
  164. color: #fff;
  165. right: -5px;
  166. width: 15px;
  167. height: 30px;
  168. z-index: 334;
  169. cursor: pointer;
  170. display: none;
  171. position: absolute;
  172. margin-top: -15px;
  173. background: rgba(0, 0, 0, 0.4);
  174. border-top-left-radius: 100%;
  175. border-bottom-left-radius: 100%;
  176. }
  177. .layui-nav-bar {
  178. display: none !important;
  179. }
  180. .layui-side-scroll {
  181. top: @BodyMainTop;
  182. bottom: 0;
  183. width: 100% !important;
  184. height: 100% !important;
  185. overflow: auto;
  186. position: absolute;
  187. .layui-side-icon {
  188. display: none;
  189. }
  190. .layui-side-tree {
  191. #defaScrollbar();
  192. }
  193. .layui-side-icon:after,
  194. .layui-side-tree:after {
  195. height: @TopHeaderHeight;
  196. content: '';
  197. display: block;
  198. }
  199. .layui-nav-tree {
  200. width: @LayoutDefaLeftSzie;
  201. background: none !important;
  202. > li.layui-this {
  203. background: @LeftMainNavActiveBackColor;
  204. > a {
  205. background: none !important;
  206. }
  207. }
  208. }
  209. .layui-nav-item {
  210. > a:hover {
  211. background-color: rgba(100, 100, 100, 0.1) !important;
  212. }
  213. .layui-nav-child {
  214. padding: 0;
  215. }
  216. dd, dd > a {
  217. background-color: @LeftMainNavNormalBackColor;
  218. }
  219. dd.layui-this {
  220. background: none !important;
  221. > a {
  222. color: @LeftMainNavActiveTextColor;
  223. background-color: @LeftMainNavActiveBackColor;
  224. }
  225. }
  226. a {
  227. height: 45px;
  228. display: block;
  229. line-height: 45px;
  230. padding-top: 0;
  231. padding-bottom: 0;
  232. color: @LeftMainNavNormalTextColor;
  233. .layui-nav-more {
  234. padding: 0;
  235. }
  236. &:hover {
  237. color: @LeftMainNavActiveTextColor;
  238. }
  239. .nav-icon {
  240. padding-right: 5px;
  241. }
  242. }
  243. }
  244. }
  245. }
  246. > .layui-body {
  247. top: @BodyMainTop;
  248. left: @LayoutDefaLeftSzie;
  249. padding: 0;
  250. z-index: 111;
  251. overflow: hidden;
  252. background: @BodyMainBackColor;
  253. > .think-page-loader {
  254. left: @LayoutDefaLeftSzie
  255. }
  256. > .think-page-body > .layui-card {
  257. box-shadow: none !important;
  258. background: none !important;
  259. > .layui-card-body {
  260. top: 0;
  261. width: 100%;
  262. bottom: 0;
  263. padding: 0;
  264. z-index: 2;
  265. overflow: auto;
  266. position: absolute;
  267. box-sizing: border-box;
  268. > .layui-card-html {
  269. padding: 15px;
  270. min-width: 100%;
  271. position: absolute;
  272. box-sizing: border-box;
  273. #bodyLayout();
  274. }
  275. > .layui-card-table {
  276. padding: 15px;
  277. box-sizing: border-box;
  278. #bodyLayout();
  279. }
  280. > div > .layui-tab.layui-tab-card {
  281. border: none;
  282. box-shadow: @ShadowOuterMax;
  283. & > .layui-tab-content.think-box-shadow {
  284. box-shadow: none;
  285. }
  286. }
  287. }
  288. > .layui-card-line {
  289. top: 0;
  290. left: 0;
  291. right: 0;
  292. z-index: 3;
  293. position: absolute;
  294. box-shadow: @ShadowBodyTop;
  295. }
  296. > .layui-card-header {
  297. top: @BodyMainTop;
  298. left: @LayoutDefaLeftSzie;
  299. border-top: @BoxBottomLine;
  300. border-bottom: 1px solid #fff !important;
  301. #NotSelect();
  302. right: 0;
  303. height: 45px;
  304. z-index: 4;
  305. padding: 0 15px;
  306. position: fixed;
  307. background: #FFF;
  308. line-height: 45px;
  309. & + .layui-card-line {
  310. top: 47px;
  311. & + .layui-card-body {
  312. top: 47px;
  313. }
  314. }
  315. }
  316. }
  317. }
  318. }
  319. .layui-layout-left-mini {
  320. .layui-header {
  321. left: @LayoutMiniLeftSize !important;
  322. }
  323. > .layui-body {
  324. left: @LayoutMiniLeftSize !important;
  325. > .think-page-loader {
  326. left: @LayoutMiniLeftSize !important;
  327. }
  328. > .think-page-body > .layui-card > .layui-card-header {
  329. left: @LayoutMiniLeftSize !important;
  330. }
  331. }
  332. > .layui-side {
  333. .layui-logo {
  334. .headimg {
  335. margin: 0;
  336. display: inline-block;
  337. }
  338. .headtxt {
  339. display: none;
  340. }
  341. }
  342. .layui-nav-more {
  343. display: none !important
  344. }
  345. .layui-side-target:before {
  346. transform: rotate(0deg);
  347. }
  348. .layui-nav-item {
  349. a {
  350. padding: 0
  351. }
  352. .nav-text {
  353. display: none
  354. }
  355. .nav-icon {
  356. padding: 0 !important;
  357. font-size: 16px !important;
  358. display: inline-block !important;
  359. #defaTransition();
  360. }
  361. .layui-nav-child {
  362. padding: 0;
  363. display: block !important;
  364. background-color: rgba(0, 0, 0, .3) !important
  365. }
  366. }
  367. &,
  368. .layui-nav-tree,
  369. .layui-side-scroll,
  370. .layui-side-scroll .layui-nav-tree {
  371. width: @LayoutMiniLeftSize;
  372. text-align: center;
  373. }
  374. }
  375. [data-target-menu-type] i {
  376. display: inline-block;
  377. transform: rotate(180deg);
  378. -ms-transform: rotate(180deg);
  379. -webkit-transform: rotate(180deg);
  380. }
  381. }
  382. .layui-layout-left-hide {
  383. > .layui-header {
  384. left: 0 !important;
  385. .layui-logo-hide {
  386. display: inline-block !important;
  387. }
  388. }
  389. > .layui-side {
  390. display: none !important;
  391. }
  392. > .layui-body {
  393. left: 0 !important;
  394. > .think-page-loader {
  395. left: 0 !important;
  396. }
  397. > .think-page-body > .layui-card > .layui-card-header {
  398. left: 0 !important;
  399. }
  400. }
  401. [data-target-menu-type] {
  402. display: none !important;
  403. }
  404. }