link.wxss 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  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-link--small .t-link__content {
  29. font-size: 24rpx;
  30. line-height: 40rpx;
  31. }
  32. .t-link--small .t-link__prefix-icon,
  33. .t-link--small .t-link__suffix-icon {
  34. font-size: 28rpx;
  35. }
  36. .t-link--medium .t-link__content {
  37. font-size: 28rpx;
  38. line-height: 44rpx;
  39. }
  40. .t-link--medium .t-link__prefix-icon,
  41. .t-link--medium .t-link__suffix-icon {
  42. font-size: 32rpx;
  43. }
  44. .t-link--large .t-link__content {
  45. font-size: 32rpx;
  46. line-height: 48rpx;
  47. }
  48. .t-link--large .t-link__prefix-icon,
  49. .t-link--large .t-link__suffix-icon {
  50. font-size: 36rpx;
  51. }
  52. .t-link--normal-primary {
  53. color: var(--td-link-normal-primary-color, var(--td-brand-color, var(--td-primary-color-8, #0052d9)));
  54. }
  55. .t-link--normal-primary.t-link--underline::after {
  56. border-color: var(--td-link-normal-primary-color, var(--td-brand-color, var(--td-primary-color-8, #0052d9)));
  57. }
  58. .t-link--normal-success {
  59. color: var(--td-link-normal-success-color, var(--td-success-color, var(--td-success-color-5, #00a870)));
  60. }
  61. .t-link--normal-success.t-link--underline::after {
  62. border-color: var(--td-link-normal-success-color, var(--td-success-color, var(--td-success-color-5, #00a870)));
  63. }
  64. .t-link--normal-warning {
  65. color: var(--td-link-normal-warning-color, var(--td-warning-color, var(--td-warning-color-5, #ed7b2f)));
  66. }
  67. .t-link--normal-warning.t-link--underline::after {
  68. border-color: var(--td-link-normal-warning-color, var(--td-warning-color, var(--td-warning-color-5, #ed7b2f)));
  69. }
  70. .t-link--normal-default {
  71. color: var(--td-link-normal-default-color, var(--td-font-gray-1, rgba(0, 0, 0, 0.9)));
  72. }
  73. .t-link--normal-default.t-link--underline::after {
  74. border-color: var(--td-link-normal-default-color, var(--td-font-gray-1, rgba(0, 0, 0, 0.9)));
  75. }
  76. .t-link--normal-danger {
  77. color: var(--td-link-normal-danger-color, var(--td-error-color, var(--td-error-color-6, #e34d59)));
  78. }
  79. .t-link--normal-danger.t-link--underline::after {
  80. border-color: var(--td-link-normal-danger-color, var(--td-error-color, var(--td-error-color-6, #e34d59)));
  81. }
  82. .t-link--active-primary {
  83. color: var(--td-link-active-primary-color, var(--td-brand-color-active, var(--td-primary-color-9, #0034b5)));
  84. }
  85. .t-link--active-primary.t-link--underline::after {
  86. border-color: var(--td-link-active-primary-color, var(--td-brand-color-active, var(--td-primary-color-9, #0034b5)));
  87. }
  88. .t-link--active-success {
  89. color: var(--td-link-active-success-color, var(--td-success-color-active, var(--td-success-color-6, #078d5c)));
  90. }
  91. .t-link--active-success.t-link--underline::after {
  92. border-color: var(--td-link-active-success-color, var(--td-success-color-active, var(--td-success-color-6, #078d5c)));
  93. }
  94. .t-link--active-warning {
  95. color: var(--td-link-active-warning-color, var(--td-warning-color-active, var(--td-warning-color-6, #d35a21)));
  96. }
  97. .t-link--active-warning.t-link--underline::after {
  98. border-color: var(--td-link-active-warning-color, var(--td-warning-color-active, var(--td-warning-color-6, #d35a21)));
  99. }
  100. .t-link--active-default {
  101. color: var(--td-link-active-default-color, var(--td-brand-color-active, var(--td-primary-color-9, #0034b5)));
  102. }
  103. .t-link--active-default.t-link--underline::after {
  104. border-color: var(--td-link-active-default-color, var(--td-brand-color-active, var(--td-primary-color-9, #0034b5)));
  105. }
  106. .t-link--active-danger {
  107. color: var(--td-link-active-danger-color, var(--td-error-color-active, var(--td-error-color-7, #c9353f)));
  108. }
  109. .t-link--active-danger.t-link--underline::after {
  110. border-color: var(--td-link-active-danger-color, var(--td-error-color-active, var(--td-error-color-7, #c9353f)));
  111. }
  112. .t-link--disabled-primary {
  113. color: var(--td-link-disabled-primary-color, var(--td-brand-color-disabled, var(--td-primary-color-3, #bbd3fb)));
  114. }
  115. .t-link--disabled-primary.t-link--underline::after {
  116. border-color: var(--td-link-disabled-primary-color, var(--td-brand-color-disabled, var(--td-primary-color-3, #bbd3fb)));
  117. }
  118. .t-link--disabled-success {
  119. color: var(--td-link-disabled-success-color, var(--td-success-color-disabled, var(--td-success-color-3, #85dbbe)));
  120. }
  121. .t-link--disabled-success.t-link--underline::after {
  122. border-color: var(--td-link-disabled-success-color, var(--td-success-color-disabled, var(--td-success-color-3, #85dbbe)));
  123. }
  124. .t-link--disabled-warning {
  125. color: var(--td-link-disabled-warning-color, var(--td-warning-color-disabled, var(--td-warning-color-3, #f7c797)));
  126. }
  127. .t-link--disabled-warning.t-link--underline::after {
  128. border-color: var(--td-link-disabled-warning-color, var(--td-warning-color-disabled, var(--td-warning-color-3, #f7c797)));
  129. }
  130. .t-link--disabled-default {
  131. color: var(--td-link-disabled-default-color, var(--td-text-color-disabled, var(--td-font-gray-4, rgba(0, 0, 0, 0.26))));
  132. }
  133. .t-link--disabled-default.t-link--underline::after {
  134. border-color: var(--td-link-disabled-default-color, var(--td-text-color-disabled, var(--td-font-gray-4, rgba(0, 0, 0, 0.26))));
  135. }
  136. .t-link--disabled-danger {
  137. color: var(--td-link-disabled-danger-color, var(--td-error-color-disabled, var(--td-error-color-3, #f8b9be)));
  138. }
  139. .t-link--disabled-danger.t-link--underline::after {
  140. border-color: var(--td-link-disabled-danger-color, var(--td-error-color-disabled, var(--td-error-color-3, #f8b9be)));
  141. }
  142. .t-link {
  143. position: relative;
  144. display: flex;
  145. align-items: center;
  146. box-sizing: content-box;
  147. }
  148. .t-link--underline::after {
  149. content: '';
  150. position: absolute;
  151. left: 0;
  152. right: 0;
  153. height: 0;
  154. bottom: 0;
  155. opacity: 1;
  156. border-bottom: 1px solid #cd0be7;
  157. }
  158. .t-link__prefix-icon + .t-link__content:not(:empty) {
  159. padding-left: 8rpx;
  160. }
  161. .t-link__content:not(:empty) + .t-link__suffix-icon {
  162. padding-left: 8rpx;
  163. }