index.css 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350
  1. /* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
  2. /* stylelint-disable no-duplicate-selectors */
  3. .ant-radio-group {
  4. box-sizing: border-box;
  5. margin: 0;
  6. padding: 0;
  7. color: rgba(0, 0, 0, 0.85);
  8. font-size: 14px;
  9. font-variant: tabular-nums;
  10. line-height: 1.5715;
  11. list-style: none;
  12. font-feature-settings: 'tnum';
  13. display: inline-block;
  14. font-size: 0;
  15. }
  16. .ant-radio-group .ant-badge-count {
  17. z-index: 1;
  18. }
  19. .ant-radio-group > .ant-badge:not(:first-child) > .ant-radio-button-wrapper {
  20. border-left: none;
  21. }
  22. .ant-radio-wrapper {
  23. box-sizing: border-box;
  24. margin: 0;
  25. padding: 0;
  26. color: rgba(0, 0, 0, 0.85);
  27. font-size: 14px;
  28. font-variant: tabular-nums;
  29. line-height: 1.5715;
  30. list-style: none;
  31. font-feature-settings: 'tnum';
  32. position: relative;
  33. display: inline-flex;
  34. align-items: baseline;
  35. margin-right: 8px;
  36. cursor: pointer;
  37. }
  38. .ant-radio-wrapper-disabled {
  39. cursor: not-allowed;
  40. }
  41. .ant-radio-wrapper::after {
  42. display: inline-block;
  43. width: 0;
  44. overflow: hidden;
  45. content: '\a0';
  46. }
  47. .ant-radio-wrapper.ant-radio-wrapper-in-form-item input[type='radio'] {
  48. width: 14px;
  49. height: 14px;
  50. }
  51. .ant-radio {
  52. box-sizing: border-box;
  53. margin: 0;
  54. padding: 0;
  55. color: rgba(0, 0, 0, 0.85);
  56. font-size: 14px;
  57. font-variant: tabular-nums;
  58. line-height: 1.5715;
  59. list-style: none;
  60. font-feature-settings: 'tnum';
  61. position: relative;
  62. top: 0.2em;
  63. display: inline-block;
  64. outline: none;
  65. cursor: pointer;
  66. }
  67. .ant-radio-wrapper:hover .ant-radio,
  68. .ant-radio:hover .ant-radio-inner,
  69. .ant-radio-input:focus + .ant-radio-inner {
  70. border-color: #1890ff;
  71. }
  72. .ant-radio-input:focus + .ant-radio-inner {
  73. box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.12);
  74. }
  75. .ant-radio-checked::after {
  76. position: absolute;
  77. top: 0;
  78. left: 0;
  79. width: 100%;
  80. height: 100%;
  81. border: 1px solid #1890ff;
  82. border-radius: 50%;
  83. visibility: hidden;
  84. animation: antRadioEffect 0.36s ease-in-out;
  85. animation-fill-mode: both;
  86. content: '';
  87. }
  88. .ant-radio:hover::after,
  89. .ant-radio-wrapper:hover .ant-radio::after {
  90. visibility: visible;
  91. }
  92. .ant-radio-inner {
  93. position: relative;
  94. top: 0;
  95. left: 0;
  96. display: block;
  97. width: 16px;
  98. height: 16px;
  99. background-color: #fff;
  100. border-color: #d9d9d9;
  101. border-style: solid;
  102. border-width: 1px;
  103. border-radius: 50%;
  104. transition: all 0.3s;
  105. }
  106. .ant-radio-inner::after {
  107. position: absolute;
  108. top: 50%;
  109. left: 50%;
  110. display: block;
  111. width: 16px;
  112. height: 16px;
  113. margin-top: -8px;
  114. margin-left: -8px;
  115. background-color: #1890ff;
  116. border-top: 0;
  117. border-left: 0;
  118. border-radius: 16px;
  119. transform: scale(0);
  120. opacity: 0;
  121. transition: all 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);
  122. content: ' ';
  123. }
  124. .ant-radio-input {
  125. position: absolute;
  126. top: 0;
  127. right: 0;
  128. bottom: 0;
  129. left: 0;
  130. z-index: 1;
  131. cursor: pointer;
  132. opacity: 0;
  133. }
  134. .ant-radio.ant-radio-disabled .ant-radio-inner {
  135. border-color: #d9d9d9;
  136. }
  137. .ant-radio-checked .ant-radio-inner {
  138. border-color: #1890ff;
  139. }
  140. .ant-radio-checked .ant-radio-inner::after {
  141. transform: scale(0.5);
  142. opacity: 1;
  143. transition: all 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);
  144. }
  145. .ant-radio-disabled {
  146. cursor: not-allowed;
  147. }
  148. .ant-radio-disabled .ant-radio-inner {
  149. background-color: #f5f5f5;
  150. cursor: not-allowed;
  151. }
  152. .ant-radio-disabled .ant-radio-inner::after {
  153. background-color: rgba(0, 0, 0, 0.2);
  154. }
  155. .ant-radio-disabled .ant-radio-input {
  156. cursor: not-allowed;
  157. }
  158. .ant-radio-disabled + span {
  159. color: rgba(0, 0, 0, 0.25);
  160. cursor: not-allowed;
  161. }
  162. span.ant-radio + * {
  163. padding-right: 8px;
  164. padding-left: 8px;
  165. }
  166. .ant-radio-button-wrapper {
  167. position: relative;
  168. display: inline-block;
  169. height: 32px;
  170. margin: 0;
  171. padding: 0 15px;
  172. color: rgba(0, 0, 0, 0.85);
  173. font-size: 14px;
  174. line-height: 30px;
  175. background: #fff;
  176. border: 1px solid #d9d9d9;
  177. border-top-width: 1.02px;
  178. border-left-width: 0;
  179. cursor: pointer;
  180. transition: color 0.3s, background 0.3s, border-color 0.3s, box-shadow 0.3s;
  181. }
  182. .ant-radio-button-wrapper a {
  183. color: rgba(0, 0, 0, 0.85);
  184. }
  185. .ant-radio-button-wrapper > .ant-radio-button {
  186. position: absolute;
  187. top: 0;
  188. left: 0;
  189. z-index: -1;
  190. width: 100%;
  191. height: 100%;
  192. }
  193. .ant-radio-group-large .ant-radio-button-wrapper {
  194. height: 40px;
  195. font-size: 16px;
  196. line-height: 38px;
  197. }
  198. .ant-radio-group-small .ant-radio-button-wrapper {
  199. height: 24px;
  200. padding: 0 7px;
  201. line-height: 22px;
  202. }
  203. .ant-radio-button-wrapper:not(:first-child)::before {
  204. position: absolute;
  205. top: -1px;
  206. left: -1px;
  207. display: block;
  208. box-sizing: content-box;
  209. width: 1px;
  210. height: 100%;
  211. padding: 1px 0;
  212. background-color: #d9d9d9;
  213. transition: background-color 0.3s;
  214. content: '';
  215. }
  216. .ant-radio-button-wrapper:first-child {
  217. border-left: 1px solid #d9d9d9;
  218. border-radius: 2px 0 0 2px;
  219. }
  220. .ant-radio-button-wrapper:last-child {
  221. border-radius: 0 2px 2px 0;
  222. }
  223. .ant-radio-button-wrapper:first-child:last-child {
  224. border-radius: 2px;
  225. }
  226. .ant-radio-button-wrapper:hover {
  227. position: relative;
  228. color: #1890ff;
  229. }
  230. .ant-radio-button-wrapper:focus-within {
  231. box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.12);
  232. }
  233. .ant-radio-button-wrapper .ant-radio-inner,
  234. .ant-radio-button-wrapper input[type='checkbox'],
  235. .ant-radio-button-wrapper input[type='radio'] {
  236. width: 0;
  237. height: 0;
  238. opacity: 0;
  239. pointer-events: none;
  240. }
  241. .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) {
  242. z-index: 1;
  243. color: #1890ff;
  244. background: #fff;
  245. border-color: #1890ff;
  246. }
  247. .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled)::before {
  248. background-color: #1890ff;
  249. }
  250. .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):first-child {
  251. border-color: #1890ff;
  252. }
  253. .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover {
  254. color: #40a9ff;
  255. border-color: #40a9ff;
  256. }
  257. .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover::before {
  258. background-color: #40a9ff;
  259. }
  260. .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):active {
  261. color: #096dd9;
  262. border-color: #096dd9;
  263. }
  264. .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):active::before {
  265. background-color: #096dd9;
  266. }
  267. .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):focus-within {
  268. box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.12);
  269. }
  270. .ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) {
  271. color: #fff;
  272. background: #1890ff;
  273. border-color: #1890ff;
  274. }
  275. .ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover {
  276. color: #fff;
  277. background: #40a9ff;
  278. border-color: #40a9ff;
  279. }
  280. .ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):active {
  281. color: #fff;
  282. background: #096dd9;
  283. border-color: #096dd9;
  284. }
  285. .ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):focus-within {
  286. box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.12);
  287. }
  288. .ant-radio-button-wrapper-disabled {
  289. color: rgba(0, 0, 0, 0.25);
  290. background-color: #f5f5f5;
  291. border-color: #d9d9d9;
  292. cursor: not-allowed;
  293. }
  294. .ant-radio-button-wrapper-disabled:first-child,
  295. .ant-radio-button-wrapper-disabled:hover {
  296. color: rgba(0, 0, 0, 0.25);
  297. background-color: #f5f5f5;
  298. border-color: #d9d9d9;
  299. }
  300. .ant-radio-button-wrapper-disabled:first-child {
  301. border-left-color: #d9d9d9;
  302. }
  303. .ant-radio-button-wrapper-disabled.ant-radio-button-wrapper-checked {
  304. color: rgba(0, 0, 0, 0.25);
  305. background-color: #e6e6e6;
  306. border-color: #d9d9d9;
  307. box-shadow: none;
  308. }
  309. @keyframes antRadioEffect {
  310. 0% {
  311. transform: scale(1);
  312. opacity: 0.5;
  313. }
  314. 100% {
  315. transform: scale(1.6);
  316. opacity: 0;
  317. }
  318. }
  319. .ant-radio-group.ant-radio-group-rtl {
  320. direction: rtl;
  321. }
  322. .ant-radio-wrapper.ant-radio-wrapper-rtl {
  323. margin-right: 0;
  324. margin-left: 8px;
  325. direction: rtl;
  326. }
  327. .ant-radio-button-wrapper.ant-radio-button-wrapper-rtl {
  328. border-right-width: 0;
  329. border-left-width: 1px;
  330. }
  331. .ant-radio-button-wrapper.ant-radio-button-wrapper-rtl.ant-radio-button-wrapper:not(:first-child)::before {
  332. right: -1px;
  333. left: 0;
  334. }
  335. .ant-radio-button-wrapper.ant-radio-button-wrapper-rtl.ant-radio-button-wrapper:first-child {
  336. border-right: 1px solid #d9d9d9;
  337. border-radius: 0 2px 2px 0;
  338. }
  339. .ant-radio-button-wrapper-checked:not([class*=' ant-radio-button-wrapper-disabled']).ant-radio-button-wrapper:first-child {
  340. border-right-color: #40a9ff;
  341. }
  342. .ant-radio-button-wrapper.ant-radio-button-wrapper-rtl.ant-radio-button-wrapper:last-child {
  343. border-radius: 2px 0 0 2px;
  344. }
  345. .ant-radio-button-wrapper.ant-radio-button-wrapper-rtl.ant-radio-button-wrapper-disabled:first-child {
  346. border-right-color: #d9d9d9;
  347. }
  348. .ant-radio + span:empty {
  349. display: none;
  350. }