index.wxss 2.0 KB

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