global.less 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. // Reset default browser styles
  2. * {
  3. box-sizing: border-box;
  4. }
  5. #root {
  6. min-height: 100vh;
  7. }
  8. html,
  9. body,
  10. ul,
  11. ol,
  12. li,
  13. dl,
  14. dt,
  15. dd,
  16. h1,
  17. h2,
  18. h3,
  19. h4,
  20. h5,
  21. h6,
  22. pre,
  23. code,
  24. form,
  25. fieldset,
  26. legend,
  27. input,
  28. textarea,
  29. p,
  30. blockquote,
  31. th,
  32. td,
  33. hr,
  34. button {
  35. margin: 0;
  36. padding: 0;
  37. font-size: 100%;
  38. font-family: inherit;
  39. vertical-align: baseline;
  40. border: 0 none;
  41. color: inherit;
  42. background: transparent;
  43. box-sizing: border-box;
  44. -webkit-font-smoothing: antialiased;
  45. -moz-osx-font-smoothing: grayscale;
  46. }
  47. // Remove list styles on ul, ol
  48. ul,
  49. ol {
  50. list-style: none;
  51. }
  52. // Remove link styles
  53. a {
  54. text-decoration: none;
  55. color: inherit;
  56. }
  57. // Remove table border
  58. table {
  59. border-collapse: collapse;
  60. border-spacing: 0;
  61. }
  62. // Remove input styling for IE
  63. input[type='text'],
  64. input[type='password'],
  65. input[type='number'],
  66. textarea {
  67. appearance: none;
  68. -webkit-appearance: none;
  69. -moz-appearance: none;
  70. // border-radius: 0;
  71. }
  72. // Remove button styling for IE
  73. button,
  74. input[type='submit'],
  75. input[type='reset'] {
  76. appearance: none;
  77. -webkit-appearance: none;
  78. -moz-appearance: none;
  79. border: 0 none;
  80. background: none;
  81. padding: 0;
  82. cursor: pointer;
  83. }
  84. // Remove outline on focus
  85. *:focus {
  86. outline: none;
  87. }
  88. #pg-photo-container {
  89. width: 100% !important;
  90. height: unset !important;
  91. }
  92. #pg-photo-container > img {
  93. width: 100% !important;
  94. height: unset !important;
  95. }
  96. .ant-pro-global-header {
  97. background: transparent;
  98. background-image: url(@/assets/header.png);
  99. background-size: cover;
  100. background-repeat: no-repeat;
  101. margin-inline: 0;
  102. height: 79px;
  103. }
  104. .ant-pro-layout .ant-layout-header.ant-pro-layout-header {
  105. background-color: transparent;
  106. height: 79px;
  107. }
  108. .ant-layout .ant-layout-header {
  109. height: 79px !important;
  110. line-height: 79px !important;
  111. }
  112. .ant-pro-global-header-logo-mix {
  113. margin-left: 62px;
  114. }
  115. .ant-layout-sider {
  116. height: calc(100% - 79px) !important;
  117. inset-block-start: 79px !important;
  118. background-size: 132% 100% !important;
  119. background-image: url(@/assets/SideMenu/background.png) !important;
  120. }
  121. .ant-menu-title-content {
  122. font-size: 18px;
  123. color: #e8f7fc;
  124. }
  125. .ant-pro-base-menu-icon {
  126. height: 20px;
  127. width: 20px;
  128. }
  129. .ant-pro-base-menu-item-icon {
  130. margin-right: 10px;
  131. }
  132. .ant-menu-item,
  133. .ant-menu-submenu {
  134. margin-top: 15px !important;
  135. margin-bottom: 15px !important;
  136. }
  137. .ant-menu-item,
  138. .ant-menu-submenu-title {
  139. border-bottom: 1px solid !important;
  140. border-image: linear-gradient(#3e6ab4, #5bbdfa) 2 2 2 2 !important;
  141. }
  142. .ant-menu-sub {
  143. margin-left: 32px !important;
  144. .ant-menu-item {
  145. margin-top: 10px !important;
  146. margin-bottom: 10px !important;
  147. }
  148. .ant-menu-title-content {
  149. font-size: 16px;
  150. color: #e8f7fc;
  151. }
  152. }
  153. .ant-menu-submenu-arrow {
  154. color: #e8f7fc !important;
  155. }
  156. .ant-menu-item-selected,
  157. .ant-pro-base-menu-collapsed
  158. .ant-menu-submenu-selected
  159. > .ant-menu-submenu-title,
  160. .ant-menu-item:active {
  161. background-image: url(@/assets/SideMenu/selectedBackground.png);
  162. background-color: transparent !important;
  163. }
  164. .ant-menu-submenu-popup {
  165. .ant-menu {
  166. background-color: #1b366f !important;
  167. }
  168. }