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

index.less 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. @import '~antd/lib/style/themes/default.less';
  2. .descriptionList {
  3. // offset the padding-bottom of last row
  4. :global {
  5. .ant-row {
  6. margin-bottom: -16px;
  7. overflow: hidden;
  8. }
  9. }
  10. .title {
  11. font-size: 14px;
  12. color: @heading-color;
  13. font-weight: 500;
  14. margin-bottom: 16px;
  15. }
  16. .term {
  17. // Line-height is 22px IE dom height will calculate error
  18. line-height: 20px;
  19. padding-bottom: 16px;
  20. margin-right: 8px;
  21. color: @heading-color;
  22. white-space: nowrap;
  23. display: table-cell;
  24. &:after {
  25. content: ':';
  26. margin: 0 8px 0 2px;
  27. position: relative;
  28. top: -0.5px;
  29. }
  30. }
  31. .detail {
  32. line-height: 22px;
  33. width: 100%;
  34. padding-bottom: 16px;
  35. color: @text-color;
  36. display: table-cell;
  37. }
  38. &.small {
  39. // offset the padding-bottom of last row
  40. :global {
  41. .ant-row {
  42. margin-bottom: -8px;
  43. }
  44. }
  45. .title {
  46. margin-bottom: 12px;
  47. color: @text-color;
  48. }
  49. .term,
  50. .detail {
  51. padding-bottom: 8px;
  52. }
  53. }
  54. &.large {
  55. .title {
  56. font-size: 16px;
  57. }
  58. }
  59. &.vertical {
  60. .term {
  61. padding-bottom: 8px;
  62. display: block;
  63. }
  64. .detail {
  65. display: block;
  66. }
  67. }
  68. }