index.css 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. /* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
  2. /* stylelint-disable no-duplicate-selectors */
  3. @keyframes antCheckboxEffect {
  4. 0% {
  5. transform: scale(1);
  6. opacity: 0.5;
  7. }
  8. 100% {
  9. transform: scale(1.6);
  10. opacity: 0;
  11. }
  12. }
  13. .ant-checkbox {
  14. box-sizing: border-box;
  15. margin: 0;
  16. padding: 0;
  17. color: rgba(0, 0, 0, 0.85);
  18. font-size: 14px;
  19. font-variant: tabular-nums;
  20. line-height: 1.5715;
  21. list-style: none;
  22. font-feature-settings: 'tnum';
  23. position: relative;
  24. top: 0.2em;
  25. line-height: 1;
  26. white-space: nowrap;
  27. outline: none;
  28. cursor: pointer;
  29. }
  30. .ant-checkbox-wrapper:hover .ant-checkbox-inner,
  31. .ant-checkbox:hover .ant-checkbox-inner,
  32. .ant-checkbox-input:focus + .ant-checkbox-inner {
  33. border-color: #1890ff;
  34. }
  35. .ant-checkbox-checked::after {
  36. position: absolute;
  37. top: 0;
  38. left: 0;
  39. width: 100%;
  40. height: 100%;
  41. border: 1px solid #1890ff;
  42. border-radius: 2px;
  43. visibility: hidden;
  44. animation: antCheckboxEffect 0.36s ease-in-out;
  45. animation-fill-mode: backwards;
  46. content: '';
  47. }
  48. .ant-checkbox:hover::after,
  49. .ant-checkbox-wrapper:hover .ant-checkbox::after {
  50. visibility: visible;
  51. }
  52. .ant-checkbox-inner {
  53. position: relative;
  54. top: 0;
  55. left: 0;
  56. display: block;
  57. width: 16px;
  58. height: 16px;
  59. direction: ltr;
  60. background-color: #fff;
  61. border: 1px solid #d9d9d9;
  62. border-radius: 2px;
  63. border-collapse: separate;
  64. transition: all 0.3s;
  65. }
  66. .ant-checkbox-inner::after {
  67. position: absolute;
  68. top: 50%;
  69. left: 21.5%;
  70. display: table;
  71. width: 5.71428571px;
  72. height: 9.14285714px;
  73. border: 2px solid #fff;
  74. border-top: 0;
  75. border-left: 0;
  76. transform: rotate(45deg) scale(0) translate(-50%, -50%);
  77. opacity: 0;
  78. transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6), opacity 0.1s;
  79. content: ' ';
  80. }
  81. .ant-checkbox-input {
  82. position: absolute;
  83. top: 0;
  84. right: 0;
  85. bottom: 0;
  86. left: 0;
  87. z-index: 1;
  88. width: 100%;
  89. height: 100%;
  90. cursor: pointer;
  91. opacity: 0;
  92. }
  93. .ant-checkbox-checked .ant-checkbox-inner::after {
  94. position: absolute;
  95. display: table;
  96. border: 2px solid #fff;
  97. border-top: 0;
  98. border-left: 0;
  99. transform: rotate(45deg) scale(1) translate(-50%, -50%);
  100. opacity: 1;
  101. transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s;
  102. content: ' ';
  103. }
  104. .ant-checkbox-checked .ant-checkbox-inner {
  105. background-color: #1890ff;
  106. border-color: #1890ff;
  107. }
  108. .ant-checkbox-disabled {
  109. cursor: not-allowed;
  110. }
  111. .ant-checkbox-disabled.ant-checkbox-checked .ant-checkbox-inner::after {
  112. border-color: rgba(0, 0, 0, 0.25);
  113. animation-name: none;
  114. }
  115. .ant-checkbox-disabled .ant-checkbox-input {
  116. cursor: not-allowed;
  117. pointer-events: none;
  118. }
  119. .ant-checkbox-disabled .ant-checkbox-inner {
  120. background-color: #f5f5f5;
  121. border-color: #d9d9d9 !important;
  122. }
  123. .ant-checkbox-disabled .ant-checkbox-inner::after {
  124. border-color: #f5f5f5;
  125. border-collapse: separate;
  126. animation-name: none;
  127. }
  128. .ant-checkbox-disabled + span {
  129. color: rgba(0, 0, 0, 0.25);
  130. cursor: not-allowed;
  131. }
  132. .ant-checkbox-disabled:hover::after,
  133. .ant-checkbox-wrapper:hover .ant-checkbox-disabled::after {
  134. visibility: hidden;
  135. }
  136. .ant-checkbox-wrapper {
  137. box-sizing: border-box;
  138. margin: 0;
  139. padding: 0;
  140. color: rgba(0, 0, 0, 0.85);
  141. font-size: 14px;
  142. font-variant: tabular-nums;
  143. line-height: 1.5715;
  144. list-style: none;
  145. font-feature-settings: 'tnum';
  146. display: inline-flex;
  147. align-items: baseline;
  148. line-height: unset;
  149. cursor: pointer;
  150. }
  151. .ant-checkbox-wrapper::after {
  152. display: inline-block;
  153. width: 0;
  154. overflow: hidden;
  155. content: '\a0';
  156. }
  157. .ant-checkbox-wrapper.ant-checkbox-wrapper-disabled {
  158. cursor: not-allowed;
  159. }
  160. .ant-checkbox-wrapper + .ant-checkbox-wrapper {
  161. margin-left: 8px;
  162. }
  163. .ant-checkbox-wrapper.ant-checkbox-wrapper-in-form-item input[type='checkbox'] {
  164. width: 14px;
  165. height: 14px;
  166. }
  167. .ant-checkbox + span {
  168. padding-right: 8px;
  169. padding-left: 8px;
  170. }
  171. .ant-checkbox-group {
  172. box-sizing: border-box;
  173. margin: 0;
  174. padding: 0;
  175. color: rgba(0, 0, 0, 0.85);
  176. font-size: 14px;
  177. font-variant: tabular-nums;
  178. line-height: 1.5715;
  179. list-style: none;
  180. font-feature-settings: 'tnum';
  181. display: inline-block;
  182. }
  183. .ant-checkbox-group-item {
  184. margin-right: 8px;
  185. }
  186. .ant-checkbox-group-item:last-child {
  187. margin-right: 0;
  188. }
  189. .ant-checkbox-group-item + .ant-checkbox-group-item {
  190. margin-left: 0;
  191. }
  192. .ant-checkbox-indeterminate .ant-checkbox-inner {
  193. background-color: #fff;
  194. border-color: #d9d9d9;
  195. }
  196. .ant-checkbox-indeterminate .ant-checkbox-inner::after {
  197. top: 50%;
  198. left: 50%;
  199. width: 8px;
  200. height: 8px;
  201. background-color: #1890ff;
  202. border: 0;
  203. transform: translate(-50%, -50%) scale(1);
  204. opacity: 1;
  205. content: ' ';
  206. }
  207. .ant-checkbox-indeterminate.ant-checkbox-disabled .ant-checkbox-inner::after {
  208. background-color: rgba(0, 0, 0, 0.25);
  209. border-color: rgba(0, 0, 0, 0.25);
  210. }
  211. .ant-checkbox-rtl {
  212. direction: rtl;
  213. }
  214. .ant-checkbox-group-rtl .ant-checkbox-group-item {
  215. margin-right: 0;
  216. margin-left: 8px;
  217. }
  218. .ant-checkbox-group-rtl .ant-checkbox-group-item:last-child {
  219. margin-left: 0 !important;
  220. }
  221. .ant-checkbox-group-rtl .ant-checkbox-group-item + .ant-checkbox-group-item {
  222. margin-left: 8px;
  223. }
  224. .ant-checkbox + span:empty {
  225. display: none;
  226. }