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

index.less 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. @import '~antd/lib/style/themes/default.less';
  2. .pageHeader {
  3. background: @component-background;
  4. padding: 16px 32px 0 32px;
  5. border-bottom: @border-width-base @border-style-base @border-color-split;
  6. .detail {
  7. display: flex;
  8. }
  9. .row {
  10. display: flex;
  11. }
  12. .breadcrumb {
  13. margin-bottom: 16px;
  14. }
  15. .tabs {
  16. margin: 0 0 -17px -8px;
  17. :global {
  18. .ant-tabs-bar {
  19. border-bottom: @border-width-base @border-style-base @border-color-split;
  20. }
  21. }
  22. }
  23. .logo {
  24. flex: 0 1 auto;
  25. margin-right: 16px;
  26. padding-top: 1px;
  27. > img {
  28. width: 28px;
  29. height: 28px;
  30. border-radius: @border-radius-base;
  31. display: block;
  32. }
  33. }
  34. .title {
  35. font-size: 20px;
  36. font-weight: 500;
  37. color: @heading-color;
  38. }
  39. .action {
  40. margin-left: 56px;
  41. min-width: 266px;
  42. :global {
  43. .ant-btn-group:not(:last-child),
  44. .ant-btn:not(:last-child) {
  45. margin-right: 8px;
  46. }
  47. .ant-btn-group > .ant-btn {
  48. margin-right: 0;
  49. }
  50. }
  51. }
  52. .title,
  53. .action,
  54. .content,
  55. .extraContent,
  56. .main {
  57. // IE auto is no have height
  58. flex: 1;
  59. }
  60. .title,
  61. .action {
  62. margin-bottom: 16px;
  63. }
  64. .logo,
  65. .content,
  66. .extraContent {
  67. margin-bottom: 16px;
  68. }
  69. .action,
  70. .extraContent {
  71. text-align: right;
  72. }
  73. .extraContent {
  74. margin-left: 88px;
  75. min-width: 242px;
  76. }
  77. }
  78. @media screen and (max-width: @screen-xl) {
  79. .pageHeader {
  80. .extraContent {
  81. margin-left: 44px;
  82. }
  83. }
  84. }
  85. @media screen and (max-width: @screen-lg) {
  86. .pageHeader {
  87. .extraContent {
  88. margin-left: 20px;
  89. }
  90. }
  91. }
  92. @media screen and (max-width: @screen-md) {
  93. .pageHeader {
  94. .row {
  95. display: block;
  96. }
  97. .action,
  98. .extraContent {
  99. margin-left: 0;
  100. text-align: left;
  101. }
  102. }
  103. }
  104. @media screen and (max-width: @screen-sm) {
  105. .pageHeader {
  106. .detail {
  107. display: block;
  108. }
  109. }
  110. }
  111. @media screen and (max-width: @screen-xs) {
  112. .pageHeader {
  113. .action {
  114. :global {
  115. .ant-btn-group,
  116. .ant-btn {
  117. display: block;
  118. margin-bottom: 8px;
  119. }
  120. .ant-btn-group > .ant-btn {
  121. display: inline-block;
  122. margin-bottom: 0;
  123. }
  124. }
  125. }
  126. }
  127. }