_layout.less 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488
  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: @LayoutLeftDefaSize;
  18. right: 0;
  19. color: @TopHeaderTextColor !important;
  20. height: @LayoutHeadTopHeight !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. }
  47. }
  48. .layui-nav-item > a {
  49. height: @LayoutHeadTopHeight;
  50. padding: 0 18px;
  51. overflow: hidden;
  52. line-height: @LayoutHeadTopHeight;
  53. &:hover {
  54. color: @TopHeaderNavHoverTextColor
  55. }
  56. .layui-icon {
  57. font-size: 16px;
  58. }
  59. }
  60. }
  61. .layui-nav-item {
  62. height: @LayoutHeadTopHeight;
  63. line-height: @LayoutHeadTopHeight;
  64. > a {
  65. color: @TopHeaderNavNormalTextColor !important;
  66. &:hover {
  67. color: @TopHeaderNavHoverTextColor !important;
  68. background: @TopHeaderNavHoverBackColor !important;
  69. }
  70. }
  71. &.layui-this > a {
  72. color: @TopHeaderNavActiveTextColor !important;
  73. background: @TopHeaderNavActiveBackColor !important;
  74. }
  75. .layui-nav-child {
  76. top: @LayoutHeadTopHeight;
  77. border: 0;
  78. padding: 0;
  79. line-height: 48px;
  80. border-radius: 0;
  81. &.layui-show + a.layui-elip {
  82. background: @TopHeaderNavHoverBackColor !important;
  83. }
  84. + a.layui-elip {
  85. padding-right: 35px;
  86. img {
  87. width: 20px;
  88. height: 20px;
  89. margin-right: 5px;
  90. border-radius: 50%;
  91. }
  92. }
  93. &.layui-show + a {
  94. background: #FFF;
  95. }
  96. dd {
  97. margin: 0;
  98. a {
  99. padding: 0;
  100. text-align: center;
  101. &:hover {
  102. background: @TopHeaderNavHoverBackColor !important;
  103. }
  104. .layui-icon {
  105. margin-right: 5px;
  106. }
  107. }
  108. }
  109. }
  110. }
  111. .layui-nav-bar,
  112. .layui-nav-item:after {
  113. display: none !important
  114. }
  115. }
  116. > .layui-side {
  117. top: 0;
  118. bottom: 0;
  119. width: @LayoutLeftDefaSize;
  120. z-index: 333;
  121. position: fixed;
  122. overflow: hidden;
  123. box-shadow: @ShadowBodyLeft;
  124. background-color: @LeftMainBackColor;
  125. #NotSelect();
  126. .layui-logo {
  127. color: #FFF;
  128. width: auto;
  129. height: @LayoutHeadTopHeight;
  130. display: block;
  131. overflow: hidden;
  132. position: relative;
  133. text-align: center;
  134. box-shadow: none !important;
  135. line-height: @LayoutHeadTopHeight;
  136. border-bottom: @BoxBottomLine;
  137. .headimg {
  138. margin: 0 10px 0 0;
  139. }
  140. .headtxt {
  141. font-size: 18px;
  142. font-weight: bold;
  143. sup {
  144. font-size: 9px;
  145. line-height: 9px;
  146. padding-left: 5px;
  147. }
  148. }
  149. }
  150. .layui-side-target {
  151. &:before {
  152. color: #FFF;
  153. width: 100%;
  154. height: 100%;
  155. display: block;
  156. content: "\e602";
  157. text-align: center;
  158. font-weight: 700;
  159. line-height: 30px;
  160. transform: rotate(180deg);
  161. #iconLayout(14px);
  162. }
  163. top: 50%;
  164. color: #fff;
  165. right: -2px;
  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: @LayoutHeadTopHeight;
  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: @LayoutHeadTopHeight;
  196. content: '';
  197. display: block;
  198. }
  199. .layui-nav-tree {
  200. width: @LayoutLeftDefaSize;
  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: @LayoutLeftNavHeight;
  228. display: block;
  229. line-height: @LayoutLeftNavHeight;
  230. padding-top: 0;
  231. padding-bottom: 0;
  232. color: @LeftMainNavNormalTextColor;
  233. &:hover {
  234. color: @LeftMainNavActiveTextColor;
  235. }
  236. .nav-icon {
  237. padding-right: 5px;
  238. }
  239. .layui-nav-more {
  240. padding: 0;
  241. }
  242. }
  243. }
  244. }
  245. }
  246. > .layui-body {
  247. top: @LayoutHeadTopHeight;
  248. left: @LayoutLeftDefaSize;
  249. padding: 0;
  250. z-index: 111;
  251. background: @BodyMainBackColor;
  252. > .think-page-loader {
  253. left: @LayoutLeftDefaSize
  254. }
  255. > .think-page-body > .layui-card {
  256. box-shadow: none !important;
  257. background: none !important;
  258. > .layui-card-body {
  259. top: 0;
  260. width: 100%;
  261. bottom: 0;
  262. padding: 0;
  263. z-index: 2;
  264. overflow: auto;
  265. position: absolute;
  266. box-sizing: border-box;
  267. > .layui-card-html {
  268. padding: 15px;
  269. min-width: 100%;
  270. position: absolute;
  271. box-sizing: border-box;
  272. #bodyLayout();
  273. }
  274. > .layui-card-table {
  275. padding: 15px;
  276. box-sizing: border-box;
  277. #bodyLayout();
  278. }
  279. > div > .layui-tab.layui-tab-card {
  280. border: none;
  281. box-shadow: @ShadowOuterMax;
  282. & > .layui-tab-content.think-box-shadow {
  283. box-shadow: none;
  284. }
  285. }
  286. }
  287. > .layui-card-line {
  288. top: 0;
  289. left: 0;
  290. right: 0;
  291. z-index: 3;
  292. position: absolute;
  293. box-shadow: @ShadowBodyTop;
  294. }
  295. > .layui-card-header {
  296. top: @LayoutHeadTopHeight;
  297. left: @LayoutLeftDefaSize;
  298. border-top: @BoxBottomLine;
  299. border-bottom: 1px solid #fff !important;
  300. #NotSelect();
  301. right: 0;
  302. height: @LayoutBodyHeadHeight;
  303. z-index: 4;
  304. padding: 0 15px;
  305. position: fixed;
  306. background: #FFF;
  307. box-sizing: border-box;
  308. line-height: @LayoutBodyHeadHeight;
  309. & + .layui-card-line {
  310. top: @LayoutBodyHeadHeight;
  311. & + .layui-card-body {
  312. top: @LayoutBodyHeadHeight;
  313. }
  314. }
  315. }
  316. }
  317. }
  318. }
  319. .layui-layout-left-mini {
  320. .layui-header {
  321. left: @LayoutLeftMiniSize !important;
  322. }
  323. > .layui-body {
  324. left: @LayoutLeftMiniSize !important;
  325. > .think-page-loader {
  326. left: @LayoutLeftMiniSize !important;
  327. }
  328. > .think-page-body > .layui-card > .layui-card-header {
  329. left: @LayoutLeftMiniSize !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: @LayoutLeftMiniSize;
  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. }