radio-chip.less 937 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. .radio-chip {
  2. background: @white;
  3. border: 1px solid @neutral-60;
  4. border-radius: 999px;
  5. color: @neutral-90;
  6. cursor: pointer;
  7. display: inline-flex;
  8. font-weight: 400;
  9. gap: 4px;
  10. inline-size: fit-content;
  11. line-height: 1.4;
  12. padding: 8px 16px 8px 8px;
  13. @media only screen and (max-width: @screen-sm-min) {
  14. width: 100%;
  15. }
  16. &:hover {
  17. background: @neutral-20;
  18. }
  19. &:focus-within {
  20. box-shadow: 0px 0px 0px 2px @blue-30;
  21. }
  22. input[type='radio'] {
  23. accent-color: @green-50;
  24. cursor: pointer;
  25. height: 16px;
  26. margin: 4px;
  27. width: 15px;
  28. }
  29. }
  30. .radio-chip[data-disabled='true'] {
  31. border-color: @neutral-20;
  32. &:hover {
  33. background: @white;
  34. cursor: not-allowed;
  35. }
  36. }
  37. .radio-group {
  38. display: flex;
  39. flex-direction: column;
  40. flex-wrap: wrap;
  41. grid-gap: 16px;
  42. height: 180px;
  43. width: 100%;
  44. @media (max-width: @screen-sm-min) {
  45. flex-wrap: nowrap;
  46. height: 100%;
  47. }
  48. }