index.css 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. @import '../common/index.css';
  2. .van-radio {
  3. display: -webkit-flex;
  4. display: flex;
  5. -webkit-align-items: center;
  6. align-items: center;
  7. overflow: hidden;
  8. -webkit-user-select: none;
  9. user-select: none;
  10. }
  11. .van-radio__icon-wrap {
  12. -webkit-flex: none;
  13. flex: none;
  14. }
  15. .van-radio__icon {
  16. display: -webkit-flex;
  17. display: flex;
  18. -webkit-align-items: center;
  19. align-items: center;
  20. -webkit-justify-content: center;
  21. justify-content: center;
  22. box-sizing: border-box;
  23. width: 1em;
  24. height: 1em;
  25. color: transparent;
  26. text-align: center;
  27. transition-property: color, border-color, background-color;
  28. border: 1px solid #c8c9cc;
  29. border: 1px solid var(--radio-border-color, #c8c9cc);
  30. font-size: 20px;
  31. font-size: var(--radio-size, 20px);
  32. transition-duration: 0.2s;
  33. transition-duration: var(--radio-transition-duration, 0.2s);
  34. }
  35. .van-radio__icon--round {
  36. border-radius: 100%;
  37. }
  38. .van-radio__icon--checked {
  39. color: #fff;
  40. color: var(--white, #fff);
  41. background-color: #1989fa;
  42. background-color: var(--radio-checked-icon-color, #1989fa);
  43. border-color: #1989fa;
  44. border-color: var(--radio-checked-icon-color, #1989fa);
  45. }
  46. .van-radio__icon--disabled {
  47. background-color: #ebedf0;
  48. background-color: var(--radio-disabled-background-color, #ebedf0);
  49. border-color: #c8c9cc;
  50. border-color: var(--radio-disabled-icon-color, #c8c9cc);
  51. }
  52. .van-radio__icon--disabled.van-radio__icon--checked {
  53. color: #c8c9cc;
  54. color: var(--radio-disabled-icon-color, #c8c9cc);
  55. }
  56. .van-radio__label {
  57. word-wrap: break-word;
  58. margin-left: 10px;
  59. margin-left: var(--radio-label-margin, 10px);
  60. color: #323233;
  61. color: var(--radio-label-color, #323233);
  62. line-height: 20px;
  63. line-height: var(--radio-size, 20px);
  64. }
  65. .van-radio__label--left {
  66. float: left;
  67. margin: 0 10px 0 0;
  68. margin: 0 var(--radio-label-margin, 10px) 0 0;
  69. }
  70. .van-radio__label--disabled {
  71. color: #c8c9cc;
  72. color: var(--radio-disabled-label-color, #c8c9cc);
  73. }
  74. .van-radio__label:empty {
  75. margin: 0;
  76. }