123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226 |
- /* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
- /* stylelint-disable no-duplicate-selectors */
- @keyframes antCheckboxEffect {
- 0% {
- transform: scale(1);
- opacity: 0.5;
- }
- 100% {
- transform: scale(1.6);
- opacity: 0;
- }
- }
- .ant-checkbox {
- box-sizing: border-box;
- margin: 0;
- padding: 0;
- color: rgba(0, 0, 0, 0.85);
- font-size: 14px;
- font-variant: tabular-nums;
- line-height: 1.5715;
- list-style: none;
- font-feature-settings: 'tnum';
- position: relative;
- top: 0.2em;
- line-height: 1;
- white-space: nowrap;
- outline: none;
- cursor: pointer;
- }
- .ant-checkbox-wrapper:hover .ant-checkbox-inner,
- .ant-checkbox:hover .ant-checkbox-inner,
- .ant-checkbox-input:focus + .ant-checkbox-inner {
- border-color: #1890ff;
- }
- .ant-checkbox-checked::after {
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- border: 1px solid #1890ff;
- border-radius: 2px;
- visibility: hidden;
- animation: antCheckboxEffect 0.36s ease-in-out;
- animation-fill-mode: backwards;
- content: '';
- }
- .ant-checkbox:hover::after,
- .ant-checkbox-wrapper:hover .ant-checkbox::after {
- visibility: visible;
- }
- .ant-checkbox-inner {
- position: relative;
- top: 0;
- left: 0;
- display: block;
- width: 16px;
- height: 16px;
- direction: ltr;
- background-color: #fff;
- border: 1px solid #d9d9d9;
- border-radius: 2px;
- border-collapse: separate;
- transition: all 0.3s;
- }
- .ant-checkbox-inner::after {
- position: absolute;
- top: 50%;
- left: 21.5%;
- display: table;
- width: 5.71428571px;
- height: 9.14285714px;
- border: 2px solid #fff;
- border-top: 0;
- border-left: 0;
- transform: rotate(45deg) scale(0) translate(-50%, -50%);
- opacity: 0;
- transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6), opacity 0.1s;
- content: ' ';
- }
- .ant-checkbox-input {
- position: absolute;
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
- z-index: 1;
- width: 100%;
- height: 100%;
- cursor: pointer;
- opacity: 0;
- }
- .ant-checkbox-checked .ant-checkbox-inner::after {
- position: absolute;
- display: table;
- border: 2px solid #fff;
- border-top: 0;
- border-left: 0;
- transform: rotate(45deg) scale(1) translate(-50%, -50%);
- opacity: 1;
- transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s;
- content: ' ';
- }
- .ant-checkbox-checked .ant-checkbox-inner {
- background-color: #1890ff;
- border-color: #1890ff;
- }
- .ant-checkbox-disabled {
- cursor: not-allowed;
- }
- .ant-checkbox-disabled.ant-checkbox-checked .ant-checkbox-inner::after {
- border-color: rgba(0, 0, 0, 0.25);
- animation-name: none;
- }
- .ant-checkbox-disabled .ant-checkbox-input {
- cursor: not-allowed;
- pointer-events: none;
- }
- .ant-checkbox-disabled .ant-checkbox-inner {
- background-color: #f5f5f5;
- border-color: #d9d9d9 !important;
- }
- .ant-checkbox-disabled .ant-checkbox-inner::after {
- border-color: #f5f5f5;
- border-collapse: separate;
- animation-name: none;
- }
- .ant-checkbox-disabled + span {
- color: rgba(0, 0, 0, 0.25);
- cursor: not-allowed;
- }
- .ant-checkbox-disabled:hover::after,
- .ant-checkbox-wrapper:hover .ant-checkbox-disabled::after {
- visibility: hidden;
- }
- .ant-checkbox-wrapper {
- box-sizing: border-box;
- margin: 0;
- padding: 0;
- color: rgba(0, 0, 0, 0.85);
- font-size: 14px;
- font-variant: tabular-nums;
- line-height: 1.5715;
- list-style: none;
- font-feature-settings: 'tnum';
- display: inline-flex;
- align-items: baseline;
- line-height: unset;
- cursor: pointer;
- }
- .ant-checkbox-wrapper::after {
- display: inline-block;
- width: 0;
- overflow: hidden;
- content: '\a0';
- }
- .ant-checkbox-wrapper.ant-checkbox-wrapper-disabled {
- cursor: not-allowed;
- }
- .ant-checkbox-wrapper + .ant-checkbox-wrapper {
- margin-left: 8px;
- }
- .ant-checkbox-wrapper.ant-checkbox-wrapper-in-form-item input[type='checkbox'] {
- width: 14px;
- height: 14px;
- }
- .ant-checkbox + span {
- padding-right: 8px;
- padding-left: 8px;
- }
- .ant-checkbox-group {
- box-sizing: border-box;
- margin: 0;
- padding: 0;
- color: rgba(0, 0, 0, 0.85);
- font-size: 14px;
- font-variant: tabular-nums;
- line-height: 1.5715;
- list-style: none;
- font-feature-settings: 'tnum';
- display: inline-block;
- }
- .ant-checkbox-group-item {
- margin-right: 8px;
- }
- .ant-checkbox-group-item:last-child {
- margin-right: 0;
- }
- .ant-checkbox-group-item + .ant-checkbox-group-item {
- margin-left: 0;
- }
- .ant-checkbox-indeterminate .ant-checkbox-inner {
- background-color: #fff;
- border-color: #d9d9d9;
- }
- .ant-checkbox-indeterminate .ant-checkbox-inner::after {
- top: 50%;
- left: 50%;
- width: 8px;
- height: 8px;
- background-color: #1890ff;
- border: 0;
- transform: translate(-50%, -50%) scale(1);
- opacity: 1;
- content: ' ';
- }
- .ant-checkbox-indeterminate.ant-checkbox-disabled .ant-checkbox-inner::after {
- background-color: rgba(0, 0, 0, 0.25);
- border-color: rgba(0, 0, 0, 0.25);
- }
- .ant-checkbox-rtl {
- direction: rtl;
- }
- .ant-checkbox-group-rtl .ant-checkbox-group-item {
- margin-right: 0;
- margin-left: 8px;
- }
- .ant-checkbox-group-rtl .ant-checkbox-group-item:last-child {
- margin-left: 0 !important;
- }
- .ant-checkbox-group-rtl .ant-checkbox-group-item + .ant-checkbox-group-item {
- margin-left: 8px;
- }
- .ant-checkbox + span:empty {
- display: none;
- }
|