_layout.less 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431
  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. line-height: @TopHeaderHeight;
  132. border-bottom: @TopHeaderBottomLine;
  133. .headimg {
  134. margin: 0 10px 0 0;
  135. }
  136. .headtxt {
  137. font-size: 18px;
  138. sup {
  139. font-size: 9px;
  140. line-height: 9px;
  141. padding-left: 5px;
  142. }
  143. }
  144. }
  145. .layui-nav-bar {
  146. display: none !important;
  147. }
  148. .layui-side-scroll {
  149. top: @BodyMainTop;
  150. bottom: 0;
  151. width: 100% !important;
  152. height: 100% !important;
  153. overflow: auto;
  154. position: absolute;
  155. .layui-side-icon {
  156. display: none;
  157. }
  158. .layui-side-icon:after,
  159. .layui-side-tree:after {
  160. height: @TopHeaderHeight;
  161. display: block;
  162. content: '';
  163. }
  164. .layui-nav-tree {
  165. width: @LayoutDefaLeftSzie;
  166. background: none !important;
  167. > li.layui-this {
  168. background: @LeftMainNavActiveBackColor;
  169. > a {
  170. background: none !important;
  171. }
  172. }
  173. }
  174. #defaScrollbar();
  175. .layui-nav-item {
  176. > a {
  177. background: rgba(100, 100, 100, .30) !important;
  178. &:hover {
  179. background-color: rgba(100, 100, 100, .35) !important;
  180. }
  181. }
  182. .layui-nav-child {
  183. padding: 0;
  184. background-color: unset !important;
  185. }
  186. dd, dd > a {
  187. background-color: @LeftMainNavNormalBackColor;
  188. }
  189. dd.layui-this {
  190. background: none !important;
  191. > a {
  192. color: @LeftMainNavActiveTextColor;
  193. background-color: @LeftMainNavActiveBackColor;
  194. }
  195. }
  196. a {
  197. height: 45px;
  198. display: block;
  199. line-height: 45px;
  200. padding-top: 0;
  201. padding-bottom: 0;
  202. color: @LeftMainNavNormalTextColor;
  203. &:hover {
  204. color: @LeftMainNavHoverTextColor;
  205. background: @LeftMainNavHoverBackColor
  206. }
  207. .nav-icon {
  208. padding-right: 5px;
  209. }
  210. }
  211. }
  212. }
  213. }
  214. > .layui-body {
  215. top: @BodyMainTop;
  216. left: @LayoutDefaLeftSzie;
  217. padding: 0;
  218. background: @BodyMainBackColor;
  219. box-shadow: @ShadowDownInset;
  220. > .think-page-loader {
  221. left: @LayoutDefaLeftSzie
  222. }
  223. > .think-page-body > .layui-card {
  224. box-shadow: none !important;
  225. background: none !important;
  226. > .layui-card-body {
  227. top: 0;
  228. width: 100%;
  229. bottom: 0;
  230. padding: 0;
  231. z-index: 2;
  232. overflow: auto;
  233. position: absolute;
  234. box-sizing: border-box;
  235. > .layui-card-table {
  236. padding: 15px;
  237. box-sizing: border-box;
  238. }
  239. > .layui-card-html {
  240. padding: 15px;
  241. min-width: 100%;
  242. position: absolute;
  243. box-sizing: border-box;
  244. }
  245. > div > .layui-tab.layui-tab-card {
  246. border: none;
  247. box-shadow: @ShadowMaxOuter;
  248. & > .layui-tab-content.think-box-shadow {
  249. box-shadow: none;
  250. }
  251. }
  252. }
  253. > .layui-card-header {
  254. top: @BodyMainTop;
  255. left: @LayoutDefaLeftSzie;
  256. right: 0;
  257. height: 45px;
  258. border: none;
  259. z-index: 3;
  260. padding: 0 15px;
  261. position: fixed;
  262. background: #FFF;
  263. line-height: 45px;
  264. box-shadow: @ShadowMaxOuter;
  265. & + .layui-card-body {
  266. top: 45px;
  267. }
  268. }
  269. }
  270. }
  271. }
  272. .layui-layout-left-mini {
  273. .layui-header {
  274. left: @LayoutMiniLeftSize !important;
  275. }
  276. > .layui-body {
  277. left: @LayoutMiniLeftSize !important;
  278. > .think-page-loader {
  279. left: @LayoutMiniLeftSize !important;
  280. }
  281. > .think-page-body > .layui-card > .layui-card-header {
  282. left: @LayoutMiniLeftSize !important;
  283. }
  284. }
  285. > .layui-side {
  286. .layui-logo {
  287. .headimg {
  288. margin: 0;
  289. display: inline-block;
  290. }
  291. .headtxt {
  292. display: none;
  293. }
  294. }
  295. .layui-nav-more {
  296. display: none !important
  297. }
  298. .layui-nav-item {
  299. a {
  300. padding: 0
  301. }
  302. .nav-text {
  303. display: none
  304. }
  305. .nav-icon {
  306. padding: 0 !important;
  307. font-size: 16px !important;
  308. display: inline-block !important;
  309. #defaTransition();
  310. }
  311. .layui-nav-child {
  312. padding: 0;
  313. display: block !important;
  314. background-color: rgba(0, 0, 0, .3) !important
  315. }
  316. }
  317. &,
  318. .layui-nav-tree,
  319. .layui-side-scroll,
  320. .layui-side-scroll .layui-nav-tree {
  321. width: @LayoutMiniLeftSize;
  322. text-align: center;
  323. }
  324. }
  325. [data-target-menu-type] i {
  326. display: inline-block;
  327. transform: rotate(180deg);
  328. -ms-transform: rotate(180deg);
  329. -webkit-transform: rotate(180deg);
  330. }
  331. }
  332. .layui-layout-left-hide {
  333. > .layui-header {
  334. left: 0 !important;
  335. .layui-logo-hide {
  336. display: inline-block !important;
  337. }
  338. }
  339. > .layui-side {
  340. display: none !important;
  341. }
  342. > .layui-body {
  343. left: 0 !important;
  344. > .think-page-loader {
  345. left: 0 !important;
  346. }
  347. > .think-page-body > .layui-card > .layui-card-header {
  348. left: 0 !important;
  349. }
  350. }
  351. [data-target-menu-type] {
  352. display: none !important;
  353. }
  354. }