index.css 2.2 KB

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