index.less 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. @import '../../style/themes/index';
  2. @import '../../style/mixins/index';
  3. @check-list-prefix-cls: ~'@{ant-prefix}-check-list';
  4. .@{check-list-prefix-cls} {
  5. position: fixed;
  6. right: 32px;
  7. bottom: 32px;
  8. z-index: 999;
  9. font-size: @font-size-base;
  10. cursor: pointer;
  11. .@{check-list-prefix-cls}-button {
  12. display: flex;
  13. gap: @margin-xs;
  14. align-items: center;
  15. justify-content: center;
  16. min-width: 110px;
  17. height: 40px;
  18. border-radius: 20px;
  19. }
  20. .@{check-list-prefix-cls}-icon {
  21. font-size: @heading-3-size;
  22. line-height: 24px;
  23. }
  24. .@{check-list-prefix-cls}-description {
  25. font-size: @font-size-base;
  26. }
  27. }
  28. .@{check-list-prefix-cls}-content {
  29. display: block;
  30. width: 303px;
  31. .@{check-list-prefix-cls}-header {
  32. display: flex;
  33. align-items: center;
  34. justify-content: space-between;
  35. padding: @padding-sm @padding-sm @padding-md;
  36. .@{check-list-prefix-cls}-header-title {
  37. font-weight: 500;
  38. font-size: @heading-4-size;
  39. }
  40. .@{check-list-prefix-cls}-header-extra {
  41. cursor: pointer;
  42. }
  43. }
  44. .@{check-list-prefix-cls}-header-finish {
  45. width: 304px;
  46. padding-top: @margin-sm;
  47. text-align: center;
  48. .@{check-list-prefix-cls}-header-finish-icon {
  49. width: 64px;
  50. height: 64px;
  51. color: @primary-color;
  52. font-size: 64px;
  53. }
  54. .@{check-list-prefix-cls}-header-finish-title {
  55. margin-top: @margin-xs;
  56. margin-bottom: @margin-xs;
  57. font-weight: 500;
  58. font-size: @font-size-lg;
  59. }
  60. }
  61. .@{check-list-prefix-cls}-progressBar {
  62. display: flex;
  63. justify-content: space-between;
  64. margin: @margin-sm @margin-md;
  65. margin-top: 0;
  66. .@{check-list-prefix-cls}-progressBar-progress {
  67. flex: auto;
  68. }
  69. }
  70. .@{check-list-prefix-cls}-steps-content {
  71. max-height: 250px;
  72. overflow-y: scroll;
  73. }
  74. .@{check-list-prefix-cls}-steps {
  75. display: flex;
  76. align-items: center;
  77. justify-content: space-between;
  78. height: 52px;
  79. padding-right: @padding-sm;
  80. padding-left: @padding-sm;
  81. border-radius: 6px;
  82. cursor: pointer;
  83. .@{check-list-prefix-cls}-steps-item {
  84. display: flex;
  85. gap: 12px;
  86. align-items: center;
  87. justify-content: center;
  88. width: calc(100% - 22px);
  89. font-weight: 400;
  90. .@{check-list-prefix-cls}-steps-item-circle {
  91. display: flex;
  92. flex: 0 0 28px;
  93. align-items: center;
  94. justify-content: center;
  95. width: 28px;
  96. height: 28px;
  97. font-weight: 600;
  98. background-color: @component-background;
  99. border: @border-width-base solid @border-color-base;
  100. border-radius: 50%;
  101. user-select: none;
  102. .@{check-list-prefix-cls}-steps-number {
  103. color: @primary-color;
  104. font-size: @font-size-lg;
  105. }
  106. .@{check-list-prefix-cls}-steps-checkoutlined {
  107. color: @component-background;
  108. font-size: @font-size-base;
  109. }
  110. }
  111. .@{check-list-prefix-cls}-steps-item-description {
  112. flex: 1;
  113. overflow: hidden;
  114. line-height: 2;
  115. white-space: nowrap;
  116. text-overflow: ellipsis;
  117. }
  118. }
  119. .@{check-list-prefix-cls}-steps-item-arrows {
  120. flex: 0 0 22px;
  121. width: 38px;
  122. height: 38px;
  123. color: @primary-color;
  124. font-size: 22px;
  125. }
  126. }
  127. .@{check-list-prefix-cls}-checked {
  128. .@{check-list-prefix-cls}-steps-item .@{check-list-prefix-cls}-steps-item-circle {
  129. background-color: @primary-color;
  130. border: none;
  131. }
  132. .@{check-list-prefix-cls}-steps-item .@{check-list-prefix-cls}-steps-item-description {
  133. font-weight: 500;
  134. text-decoration: line-through;
  135. text-decoration-thickness: 2px;
  136. text-decoration-color: @text-color;
  137. opacity: 0.85;
  138. }
  139. }
  140. .@{check-list-prefix-cls}-highlight {
  141. background-color: @info-color-deprecated-bg;
  142. .@{check-list-prefix-cls}-steps-item .@{check-list-prefix-cls}-steps-item-circle {
  143. border: @border-width-base solid @primary-color;
  144. .@{check-list-prefix-cls}-steps-number {
  145. color: @primary-color;
  146. }
  147. }
  148. .@{check-list-prefix-cls}-steps-item .@{check-list-prefix-cls}-steps-item-description {
  149. font-weight: 600;
  150. }
  151. }
  152. .@{check-list-prefix-cls}-footer {
  153. padding: @padding-sm @padding-sm 0;
  154. color: @text-color-secondary;
  155. font-size: @font-size-base;
  156. text-decoration: underline;
  157. cursor: pointer;
  158. }
  159. .@{check-list-prefix-cls}-close-check {
  160. display: flex;
  161. flex-direction: column;
  162. padding: @padding-sm;
  163. .@{check-list-prefix-cls}-close-check-title {
  164. margin-bottom: @margin-lg;
  165. font-weight: 500;
  166. font-size: @font-size-lg;
  167. }
  168. .@{check-list-prefix-cls}-close-check-action {
  169. display: flex;
  170. flex-direction: row;
  171. gap: @margin-xs;
  172. margin-bottom: @margin-md;
  173. }
  174. .@{check-list-prefix-cls}-close-check-other {
  175. color: @text-color-secondary;
  176. font-size: @font-size-base;
  177. cursor: pointer;
  178. }
  179. }
  180. }