adminLeft.less 6.4 KB

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