admin.less 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. @charset "utf-8";
  2. @import './core';
  3. #root {
  4. .admin {
  5. background: @admin_bg_color;
  6. height: 100%;
  7. >.ant-layout {
  8. height: 100%;
  9. }
  10. #layout-header.collapsed {
  11. #logo {
  12. width: 80px;
  13. h1 {
  14. display: none;
  15. }
  16. }
  17. }
  18. #layout-header {
  19. overflow: hidden;
  20. padding: 0;
  21. padding-right: 24px;
  22. color: hsla(0, 0%, 100%, 0.65);
  23. #logo {
  24. width: 200px;
  25. height: 64px;
  26. position: relative;
  27. line-height: 64px;
  28. padding-left: 24px;
  29. transition: all 0.3s;
  30. background: #002140;
  31. overflow: hidden;
  32. display: inline-block;
  33. img {
  34. display: inline-block;
  35. vertical-align: middle;
  36. height: 32px;
  37. }
  38. h1 {
  39. color: #fff;
  40. display: inline-block;
  41. vertical-align: middle;
  42. font-size: 20px;
  43. margin: 0 0 0 12px;
  44. font-family: Avenir, Helvetica Neue, Arial, Helvetica, sans-serif;
  45. font-weight: 600;
  46. }
  47. }
  48. .header-menu {
  49. display: inline-block;
  50. line-height: 64px;
  51. padding: 0 24px;
  52. vertical-align: top;
  53. }
  54. .user-info {
  55. line-height: 64px;
  56. padding: 0 15px;
  57. cursor: pointer;
  58. transition: all 0.3s;
  59. }
  60. .user-info:hover {
  61. color: #fff;
  62. }
  63. .icon {
  64. font-size: 18px;
  65. line-height: 64px;
  66. padding: 0 20px;
  67. cursor: pointer;
  68. transition: all 0.3s;
  69. }
  70. .icon:hover {
  71. color: #fff;
  72. }
  73. }
  74. .left-slider {
  75. background: #fff;
  76. overflow-y: 'auto';
  77. .ant-layout-sider-trigger {
  78. background: #fff;
  79. color: @base_color;
  80. }
  81. .ant-layout-sider-trigger:hover {
  82. color: @theme_color;
  83. }
  84. .left-menu {
  85. padding: 10px 0;
  86. }
  87. }
  88. .page-layout {
  89. padding: 24px;
  90. overflow-y: auto;
  91. }
  92. .page-content {
  93. height: 100%;
  94. position: relative;
  95. padding-top: 20px;
  96. .ant-breadcrumb {
  97. top: -10px;
  98. position: absolute;
  99. }
  100. .page {
  101. height: 100%;
  102. }
  103. }
  104. .ant-form.ant-form-inline {
  105. margin-bottom: 10px;
  106. }
  107. .ant-form-inline .ant-form-item {
  108. margin-bottom: 10px;
  109. }
  110. .ant-table-row {
  111. span {
  112. a {
  113. margin-right: 10px;
  114. }
  115. }
  116. }
  117. }
  118. }
  119. /* use css to set position of modal */
  120. .vertical-center-modal {
  121. text-align: center;
  122. white-space: nowrap;
  123. }
  124. .vertical-center-modal:before {
  125. content: '';
  126. display: inline-block;
  127. height: 100%;
  128. vertical-align: middle;
  129. width: 0;
  130. }
  131. .vertical-center-modal .ant-modal {
  132. display: inline-block;
  133. vertical-align: middle;
  134. top: 0;
  135. text-align: left;
  136. }