_layout.less 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461
  1. @charset "UTF-8";
  2. @import "_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: @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. content: "\e65b";
  149. color: #FFF;
  150. width: 100%;
  151. height: 100%;
  152. display: block;
  153. line-height: 50px;
  154. text-align: center;
  155. font-family: layui-icon !important;
  156. font-size: 10px;
  157. font-style: normal;
  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. .nav-icon {
  233. padding-right: 5px;
  234. }
  235. }
  236. }
  237. }
  238. }
  239. > .layui-body {
  240. top: @BodyMainTop;
  241. left: @LayoutDefaLeftSzie;
  242. padding: 0;
  243. background: @BodyMainBackColor;
  244. box-shadow: @ShadowDownInset;
  245. > .think-page-loader {
  246. left: @LayoutDefaLeftSzie
  247. }
  248. > .think-page-body > .layui-card {
  249. box-shadow: none !important;
  250. background: none !important;
  251. > .layui-card-body {
  252. top: 0;
  253. width: 100%;
  254. bottom: 0;
  255. padding: 0;
  256. z-index: 2;
  257. overflow: auto;
  258. position: absolute;
  259. box-sizing: border-box;
  260. > .layui-card-table {
  261. padding: 15px;
  262. box-sizing: border-box;
  263. }
  264. > .layui-card-html {
  265. padding: 15px;
  266. min-width: 100%;
  267. position: absolute;
  268. box-sizing: border-box;
  269. }
  270. > div > .layui-tab.layui-tab-card {
  271. border: none;
  272. box-shadow: @ShadowMaxOuter;
  273. & > .layui-tab-content.think-box-shadow {
  274. box-shadow: none;
  275. }
  276. }
  277. }
  278. > .layui-card-header {
  279. top: @BodyMainTop;
  280. left: @LayoutDefaLeftSzie;
  281. right: 0;
  282. height: 45px;
  283. border: none;
  284. z-index: 3;
  285. padding: 0 15px;
  286. position: fixed;
  287. background: #FFF;
  288. line-height: 45px;
  289. box-shadow: @ShadowMaxOuter;
  290. & + .layui-card-body {
  291. top: 45px;
  292. }
  293. }
  294. }
  295. }
  296. }
  297. .layui-layout-left-mini {
  298. .layui-header {
  299. left: @LayoutMiniLeftSize !important;
  300. }
  301. > .layui-body {
  302. left: @LayoutMiniLeftSize !important;
  303. > .think-page-loader {
  304. left: @LayoutMiniLeftSize !important;
  305. }
  306. > .think-page-body > .layui-card > .layui-card-header {
  307. left: @LayoutMiniLeftSize !important;
  308. }
  309. }
  310. > .layui-side {
  311. .layui-logo {
  312. .headimg {
  313. margin: 0;
  314. display: inline-block;
  315. }
  316. .headtxt {
  317. display: none;
  318. }
  319. }
  320. .layui-nav-more {
  321. display: none !important
  322. }
  323. .layui-side-target:before {
  324. transform: rotate(0deg);
  325. }
  326. .layui-nav-item {
  327. a {
  328. padding: 0
  329. }
  330. .nav-text {
  331. display: none
  332. }
  333. .nav-icon {
  334. padding: 0 !important;
  335. font-size: 16px !important;
  336. display: inline-block !important;
  337. #defaTransition();
  338. }
  339. .layui-nav-child {
  340. padding: 0;
  341. display: block !important;
  342. background-color: rgba(0, 0, 0, .3) !important
  343. }
  344. }
  345. &,
  346. .layui-nav-tree,
  347. .layui-side-scroll,
  348. .layui-side-scroll .layui-nav-tree {
  349. width: @LayoutMiniLeftSize;
  350. text-align: center;
  351. }
  352. }
  353. [data-target-menu-type] i {
  354. display: inline-block;
  355. transform: rotate(180deg);
  356. -ms-transform: rotate(180deg);
  357. -webkit-transform: rotate(180deg);
  358. }
  359. }
  360. .layui-layout-left-hide {
  361. > .layui-header {
  362. left: 0 !important;
  363. .layui-logo-hide {
  364. display: inline-block !important;
  365. }
  366. }
  367. > .layui-side {
  368. display: none !important;
  369. }
  370. > .layui-body {
  371. left: 0 !important;
  372. > .think-page-loader {
  373. left: 0 !important;
  374. }
  375. > .think-page-body > .layui-card > .layui-card-header {
  376. left: 0 !important;
  377. }
  378. }
  379. [data-target-menu-type] {
  380. display: none !important;
  381. }
  382. }