index.css 8.4 KB

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