index.acss 2.4 KB

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