console.layout.less 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397
  1. @charset "UTF-8";
  2. @import "console.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. }
  35. &.layui-layout-left {
  36. left: 0;
  37. }
  38. &.layui-layout-right {
  39. .headimg {
  40. width: 22px;
  41. height: 22px;
  42. }
  43. }
  44. .layui-nav-item > a {
  45. height: @TopHeaderHeight;
  46. padding: 0 18px;
  47. overflow: hidden;
  48. line-height: @TopHeaderHeight;
  49. &:hover {
  50. color: @TopHeaderNavHoverTextColor
  51. }
  52. .layui-icon {
  53. font-size: 16px;
  54. }
  55. }
  56. }
  57. .layui-nav-item {
  58. height: @TopHeaderHeight;
  59. line-height: @TopHeaderHeight;
  60. > a {
  61. color: @TopHeaderNavNormalTextColor !important;
  62. background: @TopHeaderNavNormalBackColor !important;
  63. &:hover {
  64. color: @TopHeaderNavHoverTextColor !important;
  65. background: @TopHeaderNavHoverBackColor !important;
  66. }
  67. }
  68. &.layui-this > a {
  69. color: @TopHeaderNavActiveTextColor !important;
  70. background: @TopHeaderNavActiveBackColor !important;
  71. }
  72. .layui-nav-child {
  73. top: @BodyMainTop;
  74. border: 0;
  75. padding: 0;
  76. line-height: 48px;
  77. border-radius: 0;
  78. &.layui-show + a.layui-elip {
  79. background: @TopHeaderNavHoverBackColor !important;
  80. }
  81. + a.layui-elip {
  82. padding-right: 35px;
  83. img {
  84. width: 20px;
  85. height: 20px;
  86. margin-right: 5px;
  87. border-radius: 50%;
  88. }
  89. }
  90. &.layui-show + a {
  91. background: #FFF;
  92. }
  93. dd {
  94. margin: 0;
  95. a {
  96. padding: 0;
  97. text-align: center;
  98. &:hover {
  99. background: @TopHeaderNavHoverBackColor !important;
  100. }
  101. .layui-icon {
  102. margin-right: 5px;
  103. }
  104. }
  105. }
  106. }
  107. }
  108. .layui-nav-bar,
  109. .layui-nav-item:after {
  110. display: none !important
  111. }
  112. }
  113. > .layui-side {
  114. top: 0;
  115. bottom: 0;
  116. width: @LayoutDefaLeftSzie;
  117. position: fixed;
  118. overflow: hidden;
  119. background-color: @LeftMainBackColor;
  120. .layui-logo,
  121. .layui-logo-mini {
  122. color: #FFF;
  123. width: auto;
  124. height: @TopHeaderHeight;
  125. display: block;
  126. overflow: hidden;
  127. position: relative;
  128. font-size: 18px;
  129. text-align: center;
  130. line-height: @TopHeaderHeight;
  131. border-bottom: 1px solid rgba(0, 0, 0, .15);
  132. sup {
  133. font-size: 9px;
  134. line-height: 9px;
  135. padding-left: 5px;
  136. }
  137. }
  138. .layui-logo-mini {
  139. display: none;
  140. }
  141. .layui-nav-bar {
  142. display: none !important;
  143. }
  144. .layui-side-scroll {
  145. top: @BodyMainTop;
  146. bottom: 0;
  147. width: 100% !important;
  148. height: 100% !important;
  149. overflow: auto;
  150. position: absolute;
  151. .layui-nav-tree {
  152. width: @LayoutDefaLeftSzie;
  153. }
  154. &:after {
  155. height: @TopHeaderHeight;
  156. display: block;
  157. content: '';
  158. }
  159. &::-webkit-scrollbar {
  160. width: 3px !important;
  161. &-track {
  162. background: #ccc !important
  163. }
  164. &-thumb {
  165. background-color: #666 !important
  166. }
  167. }
  168. .layui-nav-item {
  169. border-bottom: 1px solid rgba(0, 0, 0, .2);
  170. .layui-nav-child {
  171. padding: 0;
  172. background-color: @LeftMainSubBackColor;
  173. }
  174. dd, dd > a {
  175. color: @LeftMainNavNormalTextColor;
  176. background-color: @LeftMainNavNormalBackColor;
  177. }
  178. dd.layui-this,
  179. dd.layui-this > a {
  180. color: @LeftMainNavActiveTextColor;
  181. background-color: @LeftMainNavActiveBackColor;
  182. }
  183. a {
  184. height: 45px;
  185. display: block;
  186. line-height: 45px;
  187. padding-top: 0;
  188. padding-bottom: 0;
  189. color: @LeftMainNavNormalTextColor;
  190. &:hover {
  191. color: @LeftMainNavHoverTextColor;
  192. background: @LeftMainNavHoverBackColor
  193. }
  194. .nav-icon {
  195. padding-right: 5px;
  196. }
  197. }
  198. }
  199. }
  200. }
  201. > .layui-body {
  202. top: @BodyMainTop;
  203. left: @LayoutDefaLeftSzie;
  204. padding: 0;
  205. background: @BodyMainBackColor;
  206. box-shadow: @ShadowDownInset;
  207. > .layui-card {
  208. box-shadow: none !important;
  209. background: none !important;
  210. > .layui-card-body {
  211. top: 0;
  212. width: 100%;
  213. bottom: 0;
  214. padding: 0;
  215. z-index: 2;
  216. overflow: auto;
  217. position: absolute;
  218. box-sizing: border-box;
  219. > .layui-card-table {
  220. padding: 15px;
  221. box-sizing: border-box;
  222. }
  223. > .layui-card-html {
  224. padding: 15px;
  225. min-width: 100%;
  226. position: absolute;
  227. box-sizing: border-box;
  228. }
  229. > div > .layui-tab.layui-tab-card {
  230. border: none;
  231. box-shadow: @ShadowMaxOuter;
  232. & > .layui-tab-content.think-box-shadow {
  233. box-shadow: none;
  234. }
  235. }
  236. }
  237. > .layui-card-header {
  238. top: @BodyMainTop;
  239. left: @LayoutDefaLeftSzie;
  240. right: 0;
  241. height: 45px;
  242. border: none;
  243. z-index: 3;
  244. padding: 0 15px;
  245. position: fixed;
  246. background: #FFF;
  247. line-height: 45px;
  248. box-shadow: @ShadowMaxOuter;
  249. & + .layui-card-body {
  250. top: 45px;
  251. }
  252. }
  253. }
  254. }
  255. }
  256. .layui-layout-left-mini {
  257. .layui-header {
  258. left: @LayoutMiniLeftSize;
  259. }
  260. > .layui-body {
  261. left: @LayoutMiniLeftSize;
  262. > .layui-card {
  263. > .layui-card-header {
  264. left: @LayoutMiniLeftSize;
  265. }
  266. }
  267. }
  268. > .layui-side {
  269. .layui-logo {
  270. display: none;
  271. }
  272. .layui-logo-mini {
  273. display: block;
  274. }
  275. .layui-nav-more {
  276. display: none !important
  277. }
  278. .layui-nav-item {
  279. a {
  280. padding: 0
  281. }
  282. .nav-text {
  283. display: none
  284. }
  285. .nav-icon {
  286. padding: 0 !important;
  287. display: inline-block !important;
  288. }
  289. .layui-nav-child {
  290. padding: 0;
  291. display: block !important;
  292. background-color: rgba(0, 0, 0, .3) !important
  293. }
  294. }
  295. &, .layui-nav-tree, .layui-side-scroll, .layui-side-scroll .layui-nav-tree {
  296. width: @LayoutMiniLeftSize;
  297. text-align: center;
  298. }
  299. }
  300. [data-target-menu-type] i {
  301. display: inline-block;
  302. transform: rotate(180deg);
  303. -ms-transform: rotate(180deg);
  304. -webkit-transform: rotate(180deg);
  305. }
  306. }
  307. .layui-layout-left-hide {
  308. > .layui-body {
  309. left: 0 !important;
  310. > .layui-card {
  311. > .layui-card-header {
  312. left: 0 !important;
  313. }
  314. }
  315. }
  316. > .layui-header {
  317. left: 0 !important;
  318. .layui-logo-hide {
  319. display: inline-block !important;
  320. }
  321. }
  322. > .layui-side {
  323. display: none !important;
  324. }
  325. [data-target-menu-type] {
  326. display: none !important;
  327. }
  328. }