index.less 884 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. @import (reference) '../variable.less';
  2. @radioGroupPrefix: ant-radio-group;
  3. .@{radioGroupPrefix} {
  4. &-horizontal {
  5. .@{radioGroupPrefix}-body {
  6. display: flex;
  7. flex-wrap: wrap;
  8. justify-content: flex-start;
  9. .ant-list-item-line {
  10. padding-right: 0;
  11. }
  12. .ant-radio-item {
  13. flex-flow: 0;
  14. }
  15. .ant-list-item-line::after {
  16. display: none;
  17. }
  18. }
  19. }
  20. &-header:empty,
  21. &-footer:empty {
  22. display: none;
  23. }
  24. &-header,
  25. &-footer {
  26. display: flex;
  27. align-items: center;
  28. padding: @v-spacing-standard @v-spacing-large;
  29. line-height: 1.4;
  30. font-size: 30 * @rpx;
  31. color: @radio-header-color;
  32. }
  33. &-body {
  34. position: relative;
  35. overflow: hidden;
  36. .ant-radio-item-content {
  37. .ant-radio-group-item-label-default:not(:nth-child(1)) {
  38. display: none;
  39. }
  40. }
  41. }
  42. }