cascader.wxss 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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, #000000);
  33. border-radius: 24rpx 24rpx 0 0;
  34. --td-radio-icon-checked-color: var(--td-cascader-active-color, #0052d9);
  35. --td-tab-item-active-color: var(--td-cascader-active-color, #0052d9);
  36. --td-tab-track-color: var(--td-cascader-active-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: 16px;
  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: 640rpx;
  59. }
  60. .t-cascader__options-title {
  61. margin-top: 40rpx;
  62. color: var(--td-cascader-options-title-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: 88rpx;
  81. }
  82. .t-cascader__steps {
  83. padding: 0 16px;
  84. border-bottom: 1px solid var(--td-cascader-border-color, #e6e6e6);
  85. }
  86. .t-cascader__step-dot {
  87. position: relative;
  88. width: 16rpx;
  89. height: 16rpx;
  90. border-radius: 50%;
  91. border: 1px solid var(--td-cascader-active-color, #0052d9);
  92. box-sizing: border-box;
  93. }
  94. .t-cascader__step-dot:not(.t-cascader__step-dot--last)::after {
  95. content: '';
  96. display: block;
  97. position: absolute;
  98. left: 50%;
  99. top: 30rpx;
  100. height: 36rpx;
  101. width: 1px;
  102. background: var(--td-cascader-active-color, #0052d9);
  103. transform: translateX(-50%);
  104. }
  105. .t-cascader__step-dot--active {
  106. background: var(--td-cascader-active-color, #0052d9);
  107. border-color: var(--td-cascader-active-color, #0052d9);
  108. }
  109. .t-cascader__step-label {
  110. padding-left: 16px;
  111. font-size: 16px;
  112. }
  113. .t-cascader__step-label--active {
  114. color: var(--td-cascader-active-color, #0052d9);
  115. font-weight: 600;
  116. }
  117. .t-cascader__step-arrow {
  118. color: var(--td-cascader-step-arrow-color, rgba(0, 0, 0, 0.4));
  119. margin-left: auto;
  120. }