checkbox.wxss 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. .t-float-left {
  2. float: left;
  3. }
  4. .t-float-right {
  5. float: right;
  6. }
  7. @keyframes tdesign-fade-out {
  8. from {
  9. opacity: 1;
  10. }
  11. to {
  12. opacity: 0;
  13. }
  14. }
  15. .hotspot-expanded.relative {
  16. position: relative;
  17. }
  18. .hotspot-expanded::after {
  19. content: '';
  20. display: block;
  21. position: absolute;
  22. left: 0;
  23. top: 0;
  24. right: 0;
  25. bottom: 0;
  26. transform: scale(1.5);
  27. }
  28. .t-checkbox {
  29. display: flex;
  30. flex-direction: row;
  31. font-size: 32rpx;
  32. padding: 32rpx 32rpx;
  33. position: relative;
  34. background: white;
  35. }
  36. .t-checkbox--right {
  37. flex-direction: row-reverse;
  38. }
  39. .t-checkbox .limit-title-row {
  40. display: -webkit-box;
  41. -webkit-box-orient: vertical;
  42. overflow: hidden;
  43. }
  44. .t-checkbox .image-center {
  45. position: absolute;
  46. top: 50%;
  47. transform: translateY(-50%);
  48. }
  49. .t-checkbox__icon-left {
  50. margin-right: 20rpx;
  51. width: 40rpx;
  52. }
  53. .t-checkbox__icon-right {
  54. right: 0px;
  55. display: contents;
  56. position: absolute;
  57. top: 50%;
  58. transform: translateY(-50%);
  59. }
  60. .t-checkbox__icon-image {
  61. width: 48rpx;
  62. height: 48rpx;
  63. vertical-align: sub;
  64. }
  65. .t-checkbox__icon {
  66. line-height: 48rpx;
  67. }
  68. .t-checkbox__btn {
  69. font-size: 48rpx;
  70. display: block;
  71. line-height: 40rpx;
  72. color: #dcdcdc;
  73. width: 48rpx;
  74. }
  75. .t-checkbox__content {
  76. flex: 1;
  77. line-height: 48rpx;
  78. margin-right: 10px;
  79. }
  80. .t-checkbox__title {
  81. display: -webkit-box;
  82. -webkit-box-orient: vertical;
  83. overflow: hidden;
  84. }
  85. .t-checkbox__description {
  86. color: rgba(0, 0, 0, 0.4);
  87. display: -webkit-box;
  88. -webkit-box-orient: vertical;
  89. overflow: hidden;
  90. font-size: 28rpx;
  91. line-height: 44rpx;
  92. }
  93. .t-checkbox__btn.t-is-checked {
  94. color: #0052d9;
  95. }
  96. .t-checkbox__btn.t-is-disabled {
  97. cursor: not-allowed;
  98. color: #dcdcdc;
  99. }
  100. .t-checkbox__content.t-is-disabled {
  101. cursor: not-allowed;
  102. color: rgba(0, 0, 0, 0.26);
  103. }
  104. .t-checkbox__border {
  105. position: absolute;
  106. bottom: 0;
  107. border-top: 1rpx solid #e7e7e7;
  108. width: 100%;
  109. }
  110. .t-checkbox__border--left {
  111. left: 80rpx;
  112. width: calc(100% - 80rpx);
  113. }
  114. .t-checkbox__border--right {
  115. right: 80rpx;
  116. width: calc(100% - 80rpx);
  117. }
  118. .t-checkbox--tag {
  119. font-size: 28rpx;
  120. padding-top: 16rpx;
  121. padding-bottom: 16rpx;
  122. text-align: center;
  123. background-color: #f3f3f3;
  124. border-radius: 8rpx;
  125. }
  126. .t-checkbox--tag.t-is-actived {
  127. color: #0052d9;
  128. background-color: #ecf2fe;
  129. }
  130. .t-checkbox--tag .t-checkbox__content {
  131. margin-right: 0;
  132. }