cascader.wxss 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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-cascader {
  29. display: flex;
  30. flex-direction: column;
  31. background-color: #fff;
  32. color: var(--td-cascader-title-color, var(--td-text-level-1-color, #000000));
  33. border-radius: 24rpx 24rpx 0 0;
  34. --td-radio-icon-checked-color: var(--td-cascader-active-color, var(--td-primary-color, #0052d9));
  35. --td-tab-item-active-color: var(--td-cascader-active-color, var(--td-primary-color, #0052d9));
  36. --td-tab-track-color: var(--td-cascader-active-color, var(--td-primary-color, #0052d9));
  37. }
  38. .t-cascader__close-btn {
  39. right: 16px;
  40. top: 12px;
  41. position: absolute;
  42. }
  43. .t-cascader__title {
  44. position: relative;
  45. font-weight: 700;
  46. text-align: center;
  47. line-height: 48px;
  48. font-size: var(--td-cascder-title-font-size, 36rpx);
  49. }
  50. .t-cascader__content {
  51. width: 100%;
  52. flex: 1;
  53. display: flex;
  54. flex-direction: column;
  55. }
  56. .t-cascader__options {
  57. width: 100vw;
  58. height: var(--td-cascader-options-height, 640rpx);
  59. }
  60. .t-cascader__options-title {
  61. margin-top: 40rpx;
  62. color: var(--td-cascader-options-title-color, var(--td-text-placeholder-color, rgba(0, 0, 0, 0.4)));
  63. font-size: 28rpx;
  64. line-height: 44rpx;
  65. padding-left: 16px;
  66. }
  67. .t-cascader__options-content {
  68. flex: 1;
  69. height: 100%;
  70. overflow: auto;
  71. padding-left: 16px;
  72. }
  73. .t-cascader__options-container {
  74. display: flex;
  75. transition: all ease 0.3s;
  76. }
  77. .t-cascader__step {
  78. display: flex;
  79. align-items: center;
  80. height: var(--td-cascader-step-height, 88rpx);
  81. }
  82. .t-cascader__steps {
  83. padding: 0 32rpx 10rpx;
  84. position: relative;
  85. }
  86. .t-cascader__steps::after {
  87. content: '';
  88. display: block;
  89. position: absolute;
  90. top: unset;
  91. bottom: 0;
  92. left: unset;
  93. right: unset;
  94. background-color: var(--td-cascader-border-color, var(--td-border-level-1-color, #e6e6e6));
  95. }
  96. .t-cascader__steps::after {
  97. height: 1px;
  98. left: 0;
  99. right: 0;
  100. transform: scaleY(0.5);
  101. }
  102. .t-cascader__step-dot {
  103. position: relative;
  104. width: var(--td-cascader-step-dot-size, 16rpx);
  105. height: var(--td-cascader-step-dot-size, 16rpx);
  106. border-radius: 50%;
  107. border: 1px solid var(--td-cascader-active-color, var(--td-primary-color, #0052d9));
  108. box-sizing: border-box;
  109. }
  110. .t-cascader__step-dot:not(.t-cascader__step-dot--last)::after {
  111. content: '';
  112. display: block;
  113. position: absolute;
  114. left: 50%;
  115. top: calc(var(--td-cascader-step-dot-size, 16rpx) + 14rpx);
  116. height: 36rpx;
  117. width: 1px;
  118. background: var(--td-cascader-active-color, var(--td-primary-color, #0052d9));
  119. transform: translateX(-50%);
  120. }
  121. .t-cascader__step-dot--active {
  122. background: var(--td-cascader-active-color, var(--td-primary-color, #0052d9));
  123. border-color: var(--td-cascader-active-color, var(--td-primary-color, #0052d9));
  124. }
  125. .t-cascader__step-label {
  126. padding-left: 16px;
  127. font-size: 16px;
  128. }
  129. .t-cascader__step-label--active {
  130. color: var(--td-cascader-active-color, var(--td-primary-color, #0052d9));
  131. font-weight: 600;
  132. }
  133. .t-cascader__step-arrow {
  134. color: var(--td-cascader-step-arrow-color, var(--td-text-placeholder-color, rgba(0, 0, 0, 0.4)));
  135. margin-left: auto;
  136. }