global.less 3.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. @import '~antd/es/style/themes/default.less';
  2. html,
  3. body,
  4. #root {
  5. height: 100%;
  6. }
  7. .colorWeak {
  8. filter: invert(80%);
  9. }
  10. canvas {
  11. display: block;
  12. }
  13. body {
  14. text-rendering: optimizeLegibility;
  15. -webkit-font-smoothing: antialiased;
  16. -moz-osx-font-smoothing: grayscale;
  17. font-size: 16px;
  18. }
  19. ul,
  20. ol {
  21. list-style: none;
  22. }
  23. @media (max-width: @screen-xs) {
  24. .ant-table {
  25. width: 100%;
  26. overflow-x: auto;
  27. &-thead > tr,
  28. &-tbody > tr {
  29. > th,
  30. > td {
  31. white-space: pre;
  32. > span {
  33. display: block;
  34. }
  35. }
  36. }
  37. }
  38. }
  39. .ant-layout-header .ant-pro-global-header{
  40. background:#393C39;
  41. border-bottom: 0.6px solid rgb(156, 153, 153);
  42. }
  43. .ant-layout .ant-pro-sider-menu-sider.light .ant-pro-sider-menu-logo{
  44. background:#EF273A;
  45. box-shadow: none;
  46. border: none;
  47. a{
  48. h1{
  49. color: #fff;
  50. }
  51. }
  52. }
  53. .antd-pro-layouts-user-layout-container{
  54. .ant-input-affix-wrapper .ant-input-prefix{
  55. left:7px;
  56. }
  57. .ant-input-affix-wrapper .ant-input:not(:first-child) {
  58. padding-left: 40px;
  59. }
  60. }
  61. .ant-layout{
  62. .ant-menu-vertical .ant-menu-item,
  63. .ant-menu-vertical-left .ant-menu-item,
  64. .ant-menu-vertical-right .ant-menu-item,
  65. .ant-menu-inline .ant-menu-item,
  66. .ant-menu-vertical .ant-menu-submenu-title,
  67. .ant-menu-vertical-left .ant-menu-submenu-title,
  68. .ant-menu-vertical-right .ant-menu-submenu-title,
  69. .ant-menu-inline .ant-menu-submenu-title,
  70. .ant-input ,.ant-btn,.ant-select,.ant-table,.ant-form-item,.ant-form label,.ant-tabs-nav-container {
  71. font-size: 0.096rem;
  72. }
  73. .ant-input{
  74. height: 32px;
  75. border-radius: 4px;
  76. padding: 0 0 0 10px;
  77. align-items: center;
  78. }
  79. .ant-radio-button-wrapper{
  80. color: #FF7E48;
  81. border: 1px solid #FF7E48;
  82. }
  83. .ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) {
  84. color: #fff;
  85. background: #FF7E48;
  86. border-color: #FF7E48;
  87. box-shadow: none;
  88. }
  89. .ant-radio-button-wrapper:not(:first-child)::before{
  90. background: #FF7E48;
  91. }
  92. .ant-radio-button-wrapper:first-child {
  93. border-left: 1px solid #FF7E48;
  94. }
  95. .ant-radio-button-wrapper:hover{
  96. border-color: #FF7E48;
  97. color: #FF7E48; ;
  98. }
  99. .ant-row.ant-form-item .ant-form-item-label.ant-col-sm-3{
  100. min-width: 100px;
  101. }
  102. .ant-card-body{
  103. padding: 0;
  104. }
  105. .antd-pro-pages-index-echarts-styles-pie,.antd-pro-pages-index-echarts-styles-bar{
  106. padding: 40px;
  107. margin-bottom: 40px;
  108. }
  109. .ant-breadcrumb{
  110. font-size: 0.096rem;
  111. .anticon {
  112. font-size: 0.096rem;
  113. }
  114. }
  115. .ant-pro-global-header-trigger{
  116. display: none;
  117. }
  118. .ant-pro-sider-menu-sider.light{
  119. box-shadow: none;
  120. .ant-pro-sider-menu-logo h1{
  121. color: #fff;
  122. }
  123. }
  124. .ant-pro-page-header-wrap-page-header-warp{
  125. background:rgba(240,240,240,1);
  126. }
  127. .ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected{
  128. background:rgb(230, 227, 227)!important;
  129. border: none!important;
  130. }
  131. .ant-menu-inline .ant-menu-selected::after, .ant-menu-inline .ant-menu-item-selected::after{
  132. opacity: 0;
  133. }
  134. .ant-menu-inline > .ant-menu-item{
  135. height: 45px;
  136. line-height: 45px;
  137. margin: 0;
  138. .ant-menu-submenu-title{
  139. font-size: 16px!important;
  140. }
  141. }
  142. .ant-menu.ant-pro-sider-menu{
  143. padding: 0!important;
  144. }
  145. .ant-breadcrumb + .ant-page-header-heading{
  146. display: none;
  147. }
  148. .ant-page-header{
  149. height: 50px;
  150. padding:0 30px;
  151. line-height: 50px;
  152. .ant-breadcrumb{
  153. color: #333;
  154. }
  155. }
  156. .ant-pro-sider-menu-logo img{
  157. height: 41px;
  158. }
  159. .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab-active {
  160. color: #FF7E48;
  161. }
  162. .ant-table{
  163. line-height: 3;
  164. }
  165. .ant-modal-header{
  166. border-bottom: none;
  167. .ant-modal-title{
  168. font-size: 24px;
  169. line-height: 50px;
  170. }
  171. }
  172. .ant-modal-footer{
  173. border-top:none;
  174. }
  175. }
  176. :global {
  177. .ant-layout {
  178. min-height: 100vh;
  179. background-color: #f8f8f8;
  180. height: fit-content!important;
  181. }
  182. }