| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- @import '~antd/es/style/themes/default.less';
- @border: 1px solid @border-color-base;
- .radio-card-items {
- display: flex;
- .radio-card-item {
- display: flex;
- align-items: center;
- min-width: 180px;
- padding: 16px 20px;
- overflow: hidden;
- font-size: 14px;
- border: @border;
- border-radius: @border-radius-base;
- > img {
- width: 32px;
- height: 32px;
- margin-right: 24px;
- }
- > span {
- cursor: default;
- }
- &:not(:last-child) {
- margin-right: 10px;
- }
- &:hover,
- &:focus {
- color: @primary-color-hover;
- border-color: @primary-color-hover;
- }
- .checked-icon {
- position: absolute;
- right: -22px;
- bottom: -22px;
- z-index: 2;
- display: none;
- width: 44px;
- height: 44px;
- color: #fff;
- background-color: @primary-color-active;
- transform: rotate(-45deg);
- > div {
- position: relative;
- height: 100%;
- transform: rotate(45deg);
- > span {
- position: absolute;
- top: 6px;
- left: 6px;
- font-size: 12px;
- }
- }
- }
- &.checked {
- position: relative;
- color: @primary-color-active;
- border-color: @primary-color-active;
- > .checked-icon {
- display: block;
- }
- }
- }
- &.disabled {
- .radio-card-item {
- color: @disabled-color;
- border-color: @disabled-bg;
- cursor: not-allowed;
- .checked-icon {
- background-color: @disabled-active-bg;
- }
- &:hover,
- &:focus {
- color: @disabled-color;
- border-color: @disabled-active-bg;
- }
- &.checked {
- color: @disabled-color;
- border-color: @disabled-active-bg;
- }
- }
- }
- }
|