adminLeft.less 6.7 KB

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