index.less 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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. // fix margin top error of following descriptionList
  11. & + & {
  12. :global {
  13. .ant-row {
  14. margin-top: 16px;
  15. }
  16. }
  17. }
  18. .title {
  19. margin-bottom: 16px;
  20. color: @heading-color;
  21. font-weight: 500;
  22. font-size: 14px;
  23. }
  24. .term {
  25. display: table-cell;
  26. padding-bottom: 16px;
  27. color: @heading-color;
  28. // Line-height is 22px IE dom height will calculate error
  29. line-height: 20px;
  30. white-space: nowrap;
  31. &::after {
  32. position: relative;
  33. top: -0.5px;
  34. margin: 0 8px 0 2px;
  35. content: ':';
  36. }
  37. }
  38. .detail {
  39. display: table-cell;
  40. width: 100%;
  41. padding-bottom: 16px;
  42. color: @text-color;
  43. line-height: 20px;
  44. }
  45. &.small {
  46. // offset the padding-bottom of last row
  47. :global {
  48. .ant-row {
  49. margin-bottom: -8px;
  50. }
  51. }
  52. // fix margin top error of following descriptionList
  53. & + .descriptionList {
  54. :global {
  55. .ant-row {
  56. margin-top: 8px;
  57. }
  58. }
  59. }
  60. .title {
  61. margin-bottom: 12px;
  62. color: @text-color;
  63. }
  64. .term,
  65. .detail {
  66. padding-bottom: 8px;
  67. }
  68. }
  69. &.large {
  70. .title {
  71. font-size: 16px;
  72. }
  73. }
  74. &.vertical {
  75. .term {
  76. display: block;
  77. padding-bottom: 8px;
  78. }
  79. .detail {
  80. display: block;
  81. }
  82. }
  83. }