动态菜单和动态路由的 antd pro

BasicList.less 3.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. @import '~antd/lib/style/themes/default.less';
  2. @import '../../utils/utils.less';
  3. .standardList {
  4. :global {
  5. .ant-card-head {
  6. border-bottom: none;
  7. }
  8. .ant-card-head-title {
  9. line-height: 32px;
  10. padding: 24px 0;
  11. }
  12. .ant-card-extra {
  13. padding: 24px 0;
  14. }
  15. .ant-list-pagination {
  16. text-align: right;
  17. margin-top: 24px;
  18. }
  19. .ant-avatar-lg {
  20. width: 48px;
  21. height: 48px;
  22. line-height: 48px;
  23. }
  24. }
  25. .headerInfo {
  26. position: relative;
  27. text-align: center;
  28. & > span {
  29. color: @text-color-secondary;
  30. display: inline-block;
  31. font-size: @font-size-base;
  32. line-height: 22px;
  33. margin-bottom: 4px;
  34. }
  35. & > p {
  36. color: @heading-color;
  37. font-size: 24px;
  38. line-height: 32px;
  39. margin: 0;
  40. }
  41. & > em {
  42. background-color: @border-color-split;
  43. position: absolute;
  44. height: 56px;
  45. width: 1px;
  46. top: 0;
  47. right: 0;
  48. }
  49. }
  50. .listContent {
  51. font-size: 0;
  52. .listContentItem {
  53. color: @text-color-secondary;
  54. display: inline-block;
  55. vertical-align: middle;
  56. font-size: @font-size-base;
  57. margin-left: 40px;
  58. > span {
  59. line-height: 20px;
  60. }
  61. > p {
  62. margin-top: 4px;
  63. margin-bottom: 0;
  64. line-height: 22px;
  65. }
  66. }
  67. }
  68. .extraContentSearch {
  69. margin-left: 16px;
  70. width: 272px;
  71. }
  72. }
  73. @media screen and (max-width: @screen-xs) {
  74. .standardList {
  75. :global {
  76. .ant-list-item-content {
  77. display: block;
  78. flex: none;
  79. width: 100%;
  80. }
  81. .ant-list-item-action {
  82. margin-left: 0;
  83. }
  84. }
  85. .listContent {
  86. margin-left: 0;
  87. & > div {
  88. margin-left: 0;
  89. }
  90. }
  91. .listCard {
  92. :global {
  93. .ant-card-head-title {
  94. overflow: visible;
  95. }
  96. }
  97. }
  98. }
  99. }
  100. @media screen and (max-width: @screen-sm) {
  101. .standardList {
  102. .extraContentSearch {
  103. margin-left: 0;
  104. width: 100%;
  105. }
  106. .headerInfo {
  107. margin-bottom: 16px;
  108. & > em {
  109. display: none;
  110. }
  111. }
  112. }
  113. }
  114. @media screen and (max-width: @screen-md) {
  115. .standardList {
  116. .listContent {
  117. & > div {
  118. display: block;
  119. }
  120. & > div:last-child {
  121. top: 0;
  122. width: 100%;
  123. }
  124. }
  125. }
  126. .listCard {
  127. :global {
  128. .ant-radio-group {
  129. display: block;
  130. margin-bottom: 8px;
  131. }
  132. }
  133. }
  134. }
  135. @media screen and (max-width: @screen-lg) and (min-width: @screen-md) {
  136. .standardList {
  137. .listContent {
  138. & > div {
  139. display: block;
  140. }
  141. & > div:last-child {
  142. top: 0;
  143. width: 100%;
  144. }
  145. }
  146. }
  147. }
  148. @media screen and (max-width: @screen-xl) {
  149. .standardList {
  150. .listContent {
  151. & > div {
  152. margin-left: 24px;
  153. }
  154. & > div:last-child {
  155. top: 0;
  156. }
  157. }
  158. }
  159. }
  160. @media screen and (max-width: 1400px) {
  161. .standardList {
  162. .listContent {
  163. text-align: right;
  164. & > div:last-child {
  165. top: 0;
  166. }
  167. }
  168. }
  169. }