adminLeft.less 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380
  1. @charset "utf-8";
  2. @import './core';
  3. body {
  4. color: @base_color;
  5. font-size: @base_size;
  6. line-height: 1.7;
  7. font-family: Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
  8. -webkit-font-smoothing: subpixel-antialiased;
  9. background: @base_bg_color;
  10. }
  11. * {
  12. box-sizing: border-box;
  13. }
  14. html,
  15. body,
  16. #root {
  17. margin: 0;
  18. padding: 0;
  19. }
  20. #root {
  21. background: @admin_bg_color;
  22. .block {
  23. margin-bottom: 20px;
  24. }
  25. .admin {
  26. .ant-layout-sider-collapsed {
  27. #logo {
  28. h1 {
  29. display: none;
  30. }
  31. }
  32. }
  33. #logo {
  34. height: 64px;
  35. position: relative;
  36. line-height: 64px;
  37. padding-left: 24px;
  38. transition: all 0.3s;
  39. background: #002140;
  40. overflow: hidden;
  41. img {
  42. display: inline-block;
  43. vertical-align: middle;
  44. height: 32px;
  45. }
  46. h1 {
  47. color: #fff;
  48. display: inline-block;
  49. vertical-align: middle;
  50. font-size: 24px;
  51. margin: 0 0 0 24px;
  52. font-weight: 600;
  53. }
  54. }
  55. .header-menu {
  56. line-height: 64px;
  57. margin-left: 50px;
  58. float: left;
  59. }
  60. .slider-menu {
  61. color: #fff;
  62. font-size: 28px;
  63. line-height: 64px;
  64. position: absolute;
  65. left: 20px;
  66. display: none;
  67. }
  68. .left-slider {
  69. width: 200px;
  70. background: #fff;
  71. overflow-y: 'auto';
  72. z-index: 10;
  73. .ant-layout-sider-children {
  74. display: flex;
  75. flex-direction: column;
  76. }
  77. .ant-menu {
  78. padding: 10px 0;
  79. flex: 1;
  80. }
  81. }
  82. .page-layout {
  83. padding: 88px 24px 24px;
  84. }
  85. .page-content {
  86. height: 100%;
  87. overflow: hidden;
  88. overflow-y: auto;
  89. }
  90. .page-content.default-mode.custom {
  91. background: unset;
  92. padding: unset;
  93. }
  94. .page-content.default-mode {
  95. background: #fff;
  96. padding: 24px;
  97. }
  98. .page-content.float-side-mode.custom {
  99. margin: -24px;
  100. padding: 24px;
  101. position: relative;
  102. .page-view {
  103. padding: unset;
  104. background: unset;
  105. }
  106. }
  107. .page-content.float-side-mode {
  108. margin: -24px;
  109. padding: 24px;
  110. position: relative;
  111. .page-view {
  112. height: 100%;
  113. padding: 24px;
  114. background: #fff;
  115. }
  116. .side-view {
  117. width: 0;
  118. background: #fff;
  119. transition: transform 0.3s;
  120. position: absolute;
  121. top: 0;
  122. bottom: 0;
  123. right: 0;
  124. z-index: 9;
  125. border-top: 1px solid #ddd;
  126. box-shadow: -2px 5px 5px #ddd;
  127. .close {
  128. position: absolute;
  129. cursor: pointer;
  130. width: 50px;
  131. height: 50px;
  132. text-align: center;
  133. line-height: 50px;
  134. top: 0;
  135. right: 0;
  136. color: @second_color;
  137. i {
  138. line-height: 50px;
  139. }
  140. }
  141. .close:hover {
  142. color: @base_color;
  143. }
  144. }
  145. }
  146. .page-content.side-mode.custom {
  147. margin: -24px;
  148. padding: 24px;
  149. padding-right: 0;
  150. position: relative;
  151. .page-view {
  152. padding: unset;
  153. background: unset;
  154. margin-right: 24px;
  155. overflow: hidden;
  156. }
  157. }
  158. .page-content.side-mode {
  159. margin: -24px;
  160. padding: 24px;
  161. padding-right: 0;
  162. background: unset;
  163. display: flex;
  164. flex-direction: row;
  165. .page-view {
  166. height: 100%;
  167. overflow-y: auto;
  168. padding: 24px;
  169. background: #fff;
  170. margin-right: 24px;
  171. flex: 1;
  172. }
  173. .side-view {
  174. width: 0;
  175. flex: unset;
  176. background: #fff;
  177. transition: width 0.3s;
  178. position: relative;
  179. .side-btn {
  180. text-align: center;
  181. position: absolute;
  182. top: 50%;
  183. left: -20px;
  184. transform: translateY(-50%);
  185. width: 20px;
  186. height: 100px;
  187. border-top: 1px solid #eee;
  188. border-left: 1px solid #eee;
  189. border-bottom: 1px solid #eee;
  190. border-top-left-radius: 5px;
  191. border-bottom-left-radius: 5px;
  192. background: #fff;
  193. line-height: 100px;
  194. cursor: pointer;
  195. }
  196. }
  197. }
  198. .page-content.all {
  199. .side-view {
  200. width: 100% !important;
  201. }
  202. }
  203. .page-content.error {
  204. background: #fff;
  205. padding-top: 80px;
  206. text-align: center;
  207. width: 100%;
  208. height: 100%;
  209. box-sizing: border-box;
  210. img.image {
  211. margin-top: 100px;
  212. width: 150px;
  213. }
  214. h3 {
  215. color: #444;
  216. margin: 30px;
  217. }
  218. }
  219. .plate-title {
  220. font-size: 20px;
  221. font-weight: 600;
  222. margin-bottom: 20px;
  223. }
  224. #module-menu {
  225. display: inline-block;
  226. }
  227. #right-layout {
  228. position: relative;
  229. }
  230. #layout-header {
  231. position: absolute;
  232. top: 0;
  233. left: 0;
  234. right: 0;
  235. overflow: hidden;
  236. background: #fff;
  237. padding: 0;
  238. padding-right: 24px;
  239. z-index: 1;
  240. .trigger {
  241. vertical-align: top;
  242. font-size: 18px;
  243. line-height: 64px;
  244. padding: 0 24px;
  245. cursor: pointer;
  246. transition: all 0.3s;
  247. }
  248. .trigger:hover {
  249. background: @second_bg_color;
  250. }
  251. .user-info {
  252. line-height: 64px;
  253. padding: 0 15px;
  254. cursor: pointer;
  255. transition: all 0.3s;
  256. .avatar {
  257. margin-right: 5px;
  258. }
  259. }
  260. .user-info:hover {
  261. background: @second_bg_color;
  262. }
  263. .company-name {
  264. line-height: 64px;
  265. font-size: 20px;
  266. padding: 0 30px;
  267. cursor: pointer;
  268. transition: all 0.3s;
  269. .logo-wrapper {
  270. margin-right: 10px;
  271. }
  272. }
  273. .company-name:hover {
  274. background: @second_bg_color;
  275. }
  276. .icon {
  277. line-height: 64px;
  278. padding: 0 15px;
  279. cursor: pointer;
  280. transition: all 0.3s;
  281. display: inline-block;
  282. color: #444;
  283. .anticon {
  284. line-height: 30px;
  285. padding: 0 5px;
  286. font-size: 16px;
  287. }
  288. }
  289. .icon:hover {
  290. background: @second_bg_color;
  291. }
  292. }
  293. .ant-breadcrumb {
  294. margin-bottom: 10px;
  295. }
  296. }
  297. .header-top-title {
  298. line-height: 44px;
  299. font-size: 18px;
  300. padding-left: 24px;
  301. margin-bottom: 24px;
  302. background: #fff;
  303. }
  304. }
  305. /* use css to set position of modal */
  306. .vertical-center-modal {
  307. text-align: center;
  308. white-space: nowrap;
  309. }
  310. .vertical-center-modal:before {
  311. content: '';
  312. display: inline-block;
  313. height: 100%;
  314. vertical-align: middle;
  315. width: 0;
  316. }
  317. .vertical-center-modal .ant-modal {
  318. display: inline-block;
  319. vertical-align: middle;
  320. top: 0;
  321. text-align: left;
  322. }