_layout.less 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477
  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. border-bottom: @TopHeaderBottomLine !important;
  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: @LeftMainRightShadow;
  125. background-color: @LeftMainBackColor;
  126. .layui-logo {
  127. color: #FFF;
  128. width: auto;
  129. height: @TopHeaderHeight;
  130. display: block;
  131. overflow: hidden;
  132. position: relative;
  133. text-align: center;
  134. box-shadow: none !important;
  135. line-height: @TopHeaderHeight;
  136. border-bottom: @TopHeaderBottomLine;
  137. .headimg {
  138. margin: 0 10px 0 0;
  139. }
  140. .headtxt {
  141. font-size: 18px;
  142. sup {
  143. font-size: 9px;
  144. line-height: 9px;
  145. padding-left: 5px;
  146. }
  147. }
  148. }
  149. .layui-side-target {
  150. &:before {
  151. color: #FFF;
  152. width: 100%;
  153. height: 100%;
  154. display: block;
  155. content: "\e65b";
  156. line-height: 50px;
  157. text-align: center;
  158. font-size: 10px;
  159. font-style: normal;
  160. font-family: layui-icon !important;
  161. transform: rotate(180deg);
  162. -webkit-font-smoothing: antialiased;
  163. -moz-osx-font-smoothing: grayscale;
  164. }
  165. top: 50%;
  166. right: 0;
  167. color: #fff;
  168. width: 12px;
  169. height: 50px;
  170. z-index: 99;
  171. cursor: pointer;
  172. display: block;
  173. position: absolute;
  174. margin-top: -25px;
  175. background: rgba(0, 0, 0, 0.4);
  176. border-top-left-radius: 100%;
  177. border-bottom-left-radius: 100%;
  178. }
  179. .layui-nav-bar {
  180. display: none !important;
  181. }
  182. .layui-side-scroll {
  183. top: @BodyMainTop;
  184. bottom: 0;
  185. width: 100% !important;
  186. height: 100% !important;
  187. overflow: auto;
  188. position: absolute;
  189. .layui-side-icon {
  190. display: none;
  191. }
  192. .layui-side-tree {
  193. #defaScrollbar();
  194. }
  195. .layui-side-icon:after,
  196. .layui-side-tree:after {
  197. height: @TopHeaderHeight;
  198. content: '';
  199. display: block;
  200. }
  201. .layui-nav-tree {
  202. width: @LayoutDefaLeftSzie;
  203. background: none !important;
  204. > li.layui-this {
  205. background: @LeftMainNavActiveBackColor;
  206. > a {
  207. background: none !important;
  208. }
  209. }
  210. }
  211. .layui-nav-item {
  212. > a:hover {
  213. background-color: rgba(100, 100, 100, 0.1) !important;
  214. }
  215. .layui-nav-child {
  216. padding: 0;
  217. }
  218. dd, dd > a {
  219. background-color: @LeftMainNavNormalBackColor;
  220. }
  221. dd.layui-this {
  222. background: none !important;
  223. > a {
  224. color: @LeftMainNavActiveTextColor;
  225. background-color: @LeftMainNavActiveBackColor;
  226. }
  227. }
  228. a {
  229. height: 45px;
  230. display: block;
  231. line-height: 45px;
  232. padding-top: 0;
  233. padding-bottom: 0;
  234. color: @LeftMainNavNormalTextColor;
  235. &:hover {
  236. color: @LeftMainNavActiveTextColor;
  237. }
  238. .nav-icon {
  239. padding-right: 5px;
  240. }
  241. }
  242. }
  243. }
  244. }
  245. > .layui-body {
  246. top: @BodyMainTop;
  247. left: @LayoutDefaLeftSzie;
  248. padding: 0;
  249. z-index: 111;
  250. background: @BodyMainBackColor;
  251. box-shadow: @ShadowDownInset;
  252. > .think-page-loader {
  253. left: @LayoutDefaLeftSzie
  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-table {
  268. padding: 15px;
  269. box-sizing: border-box;
  270. > form.layui-form {
  271. box-shadow: @ShadowMaxOuter;
  272. }
  273. }
  274. > .layui-card-html {
  275. padding: 15px;
  276. min-width: 100%;
  277. position: absolute;
  278. box-sizing: border-box;
  279. > form.layui-form {
  280. box-shadow: @ShadowMaxOuter;
  281. }
  282. }
  283. > div > .layui-tab.layui-tab-card {
  284. border: none;
  285. box-shadow: @ShadowMaxOuter;
  286. & > .layui-tab-content.think-box-shadow {
  287. box-shadow: none;
  288. }
  289. }
  290. }
  291. > .layui-card-header {
  292. top: @BodyMainTop;
  293. left: @LayoutDefaLeftSzie;
  294. right: 0;
  295. height: 45px;
  296. border: none;
  297. z-index: 3;
  298. padding: 0 15px;
  299. position: fixed;
  300. background: #FFF;
  301. line-height: 45px;
  302. box-shadow: @ShadowMaxOuter;
  303. & + .layui-card-body {
  304. top: 45px;
  305. }
  306. }
  307. }
  308. }
  309. }
  310. .layui-layout-left-mini {
  311. .layui-header {
  312. left: @LayoutMiniLeftSize !important;
  313. }
  314. > .layui-body {
  315. left: @LayoutMiniLeftSize !important;
  316. > .think-page-loader {
  317. left: @LayoutMiniLeftSize !important;
  318. }
  319. > .think-page-body > .layui-card > .layui-card-header {
  320. left: @LayoutMiniLeftSize !important;
  321. }
  322. }
  323. > .layui-side {
  324. .layui-logo {
  325. .headimg {
  326. margin: 0;
  327. display: inline-block;
  328. }
  329. .headtxt {
  330. display: none;
  331. }
  332. }
  333. .layui-nav-more {
  334. display: none !important
  335. }
  336. .layui-side-target:before {
  337. transform: rotate(0deg);
  338. }
  339. .layui-nav-item {
  340. a {
  341. padding: 0
  342. }
  343. .nav-text {
  344. display: none
  345. }
  346. .nav-icon {
  347. padding: 0 !important;
  348. font-size: 16px !important;
  349. display: inline-block !important;
  350. #defaTransition();
  351. }
  352. .layui-nav-child {
  353. padding: 0;
  354. display: block !important;
  355. background-color: rgba(0, 0, 0, .3) !important
  356. }
  357. }
  358. &,
  359. .layui-nav-tree,
  360. .layui-side-scroll,
  361. .layui-side-scroll .layui-nav-tree {
  362. width: @LayoutMiniLeftSize;
  363. text-align: center;
  364. }
  365. }
  366. [data-target-menu-type] i {
  367. display: inline-block;
  368. transform: rotate(180deg);
  369. -ms-transform: rotate(180deg);
  370. -webkit-transform: rotate(180deg);
  371. }
  372. }
  373. .layui-layout-left-hide {
  374. > .layui-header {
  375. left: 0 !important;
  376. .layui-logo-hide {
  377. display: inline-block !important;
  378. }
  379. }
  380. > .layui-side {
  381. display: none !important;
  382. }
  383. > .layui-body {
  384. left: 0 !important;
  385. > .think-page-loader {
  386. left: 0 !important;
  387. }
  388. > .think-page-body > .layui-card > .layui-card-header {
  389. left: 0 !important;
  390. }
  391. }
  392. [data-target-menu-type] {
  393. display: none !important;
  394. }
  395. }