_layout.less 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466
  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. position: absolute;
  22. box-sizing: content-box;
  23. background: @TopHeaderBackColor !important;
  24. border-bottom: @TopHeaderBottomLine !important;
  25. > ul.layui-nav {
  26. margin: 0;
  27. padding: 0;
  28. white-space: nowrap;
  29. .layui-logo-hide {
  30. width: 50px !important;
  31. padding: 0 !important;
  32. display: none;
  33. text-align: center;
  34. .headimg {
  35. margin: 0;
  36. }
  37. }
  38. &.layui-layout-left {
  39. left: 0;
  40. }
  41. &.layui-layout-right {
  42. .headimg {
  43. width: 20px;
  44. height: 20px;
  45. margin-bottom: 0;
  46. }
  47. }
  48. .layui-nav-item > a {
  49. height: @TopHeaderHeight;
  50. padding: 0 18px;
  51. overflow: hidden;
  52. line-height: @TopHeaderHeight;
  53. &:hover {
  54. color: @TopHeaderNavHoverTextColor
  55. }
  56. .layui-icon {
  57. font-size: 16px;
  58. }
  59. }
  60. }
  61. .layui-nav-item {
  62. height: @TopHeaderHeight;
  63. line-height: @TopHeaderHeight;
  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: @BodyMainTop;
  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: @LayoutDefaLeftSzie;
  120. position: fixed;
  121. overflow: hidden;
  122. background-color: @LeftMainBackColor;
  123. .layui-logo {
  124. color: #FFF;
  125. width: auto;
  126. height: @TopHeaderHeight;
  127. display: block;
  128. overflow: hidden;
  129. position: relative;
  130. text-align: center;
  131. box-shadow: none !important;
  132. line-height: @TopHeaderHeight;
  133. border-bottom: @TopHeaderBottomLine;
  134. .headimg {
  135. margin: 0 10px 0 0;
  136. }
  137. .headtxt {
  138. font-size: 18px;
  139. sup {
  140. font-size: 9px;
  141. line-height: 9px;
  142. padding-left: 5px;
  143. }
  144. }
  145. }
  146. .layui-side-target {
  147. &:before {
  148. color: #FFF;
  149. width: 100%;
  150. height: 100%;
  151. display: block;
  152. content: "\e65b";
  153. line-height: 50px;
  154. text-align: center;
  155. font-size: 10px;
  156. font-style: normal;
  157. font-family: layui-icon !important;
  158. transform: rotate(180deg);
  159. -webkit-font-smoothing: antialiased;
  160. -moz-osx-font-smoothing: grayscale;
  161. }
  162. top: 50%;
  163. right: 0;
  164. color: #fff;
  165. width: 12px;
  166. height: 50px;
  167. z-index: 99;
  168. cursor: pointer;
  169. display: block;
  170. position: absolute;
  171. margin-top: -25px;
  172. background: rgba(0, 0, 0, 0.4);
  173. border-top-left-radius: 100%;
  174. border-bottom-left-radius: 100%;
  175. }
  176. .layui-nav-bar {
  177. display: none !important;
  178. }
  179. .layui-side-scroll {
  180. top: @BodyMainTop;
  181. bottom: 0;
  182. width: 100% !important;
  183. height: 100% !important;
  184. overflow: auto;
  185. position: absolute;
  186. .layui-side-icon {
  187. display: none;
  188. }
  189. .layui-side-tree {
  190. #defaScrollbar();
  191. }
  192. .layui-side-icon:after,
  193. .layui-side-tree:after {
  194. height: @TopHeaderHeight;
  195. content: '';
  196. display: block;
  197. }
  198. .layui-nav-tree {
  199. width: @LayoutDefaLeftSzie;
  200. background: none !important;
  201. > li.layui-this {
  202. background: @LeftMainNavActiveBackColor;
  203. > a {
  204. background: none !important;
  205. }
  206. }
  207. }
  208. .layui-nav-item {
  209. // border-bottom: @TopHeaderBottomLine;
  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. &:hover {
  234. color: @LeftMainNavActiveTextColor;
  235. }
  236. .nav-icon {
  237. padding-right: 5px;
  238. }
  239. }
  240. }
  241. }
  242. }
  243. > .layui-body {
  244. top: @BodyMainTop;
  245. left: @LayoutDefaLeftSzie;
  246. padding: 0;
  247. background: @BodyMainBackColor;
  248. box-shadow: @ShadowDownInset;
  249. > .think-page-loader {
  250. left: @LayoutDefaLeftSzie
  251. }
  252. > .think-page-body > .layui-card {
  253. box-shadow: none !important;
  254. background: none !important;
  255. > .layui-card-body {
  256. top: 0;
  257. width: 100%;
  258. bottom: 0;
  259. padding: 0;
  260. z-index: 2;
  261. overflow: auto;
  262. position: absolute;
  263. box-sizing: border-box;
  264. > .layui-card-table {
  265. padding: 15px;
  266. box-sizing: border-box;
  267. }
  268. > .layui-card-html {
  269. padding: 15px;
  270. min-width: 100%;
  271. position: absolute;
  272. box-sizing: border-box;
  273. }
  274. > div > .layui-tab.layui-tab-card {
  275. border: none;
  276. box-shadow: @ShadowMaxOuter;
  277. & > .layui-tab-content.think-box-shadow {
  278. box-shadow: none;
  279. }
  280. }
  281. }
  282. > .layui-card-header {
  283. top: @BodyMainTop;
  284. left: @LayoutDefaLeftSzie;
  285. right: 0;
  286. height: 45px;
  287. border: none;
  288. z-index: 3;
  289. padding: 0 15px;
  290. position: fixed;
  291. background: #FFF;
  292. line-height: 45px;
  293. box-shadow: @ShadowMaxOuter;
  294. & + .layui-card-body {
  295. top: 45px;
  296. }
  297. }
  298. }
  299. }
  300. }
  301. .layui-layout-left-mini {
  302. .layui-header {
  303. left: @LayoutMiniLeftSize !important;
  304. }
  305. > .layui-body {
  306. left: @LayoutMiniLeftSize !important;
  307. > .think-page-loader {
  308. left: @LayoutMiniLeftSize !important;
  309. }
  310. > .think-page-body > .layui-card > .layui-card-header {
  311. left: @LayoutMiniLeftSize !important;
  312. }
  313. }
  314. > .layui-side {
  315. .layui-logo {
  316. .headimg {
  317. margin: 0;
  318. display: inline-block;
  319. }
  320. .headtxt {
  321. display: none;
  322. }
  323. }
  324. .layui-nav-more {
  325. display: none !important
  326. }
  327. .layui-side-target:before {
  328. transform: rotate(0deg);
  329. }
  330. .layui-nav-item {
  331. a {
  332. padding: 0
  333. }
  334. .nav-text {
  335. display: none
  336. }
  337. .nav-icon {
  338. padding: 0 !important;
  339. font-size: 16px !important;
  340. display: inline-block !important;
  341. #defaTransition();
  342. }
  343. .layui-nav-child {
  344. padding: 0;
  345. display: block !important;
  346. background-color: rgba(0, 0, 0, .3) !important
  347. }
  348. }
  349. &,
  350. .layui-nav-tree,
  351. .layui-side-scroll,
  352. .layui-side-scroll .layui-nav-tree {
  353. width: @LayoutMiniLeftSize;
  354. text-align: center;
  355. }
  356. }
  357. [data-target-menu-type] i {
  358. display: inline-block;
  359. transform: rotate(180deg);
  360. -ms-transform: rotate(180deg);
  361. -webkit-transform: rotate(180deg);
  362. }
  363. }
  364. .layui-layout-left-hide {
  365. > .layui-header {
  366. left: 0 !important;
  367. .layui-logo-hide {
  368. display: inline-block !important;
  369. }
  370. }
  371. > .layui-side {
  372. display: none !important;
  373. }
  374. > .layui-body {
  375. left: 0 !important;
  376. > .think-page-loader {
  377. left: 0 !important;
  378. }
  379. > .think-page-body > .layui-card > .layui-card-header {
  380. left: 0 !important;
  381. }
  382. }
  383. [data-target-menu-type] {
  384. display: none !important;
  385. }
  386. }