Skip to content

Commit

Permalink
refactor: add @radio-wrapper-margin-right, @radio-checked-inner-scali…
Browse files Browse the repository at this point in the history
…ng-value
  • Loading branch information
willc001 committed Mar 15, 2019
1 parent f79b238 commit ce98f63
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions components/radio/style/index.less
Expand Up @@ -6,6 +6,8 @@
@radio-inner-prefix-cls: ~'@{radio-prefix-cls}-inner';
@radio-duration: 0.3s;
@radio-focused-outline: 3px solid fade(@radio-dot-color, 6%);
@radio-wrapper-margin-right: 8px;
@radio-checked-inner-scale: 0.875;

.@{radio-group-prefix-cls} {
.reset-component;
Expand All @@ -18,7 +20,7 @@
.reset-component;
position: relative;
display: inline-block;
margin-right: 8px;
margin-right: @radio-wrapper-margin-right;
white-space: nowrap;
cursor: pointer;
}
Expand Down Expand Up @@ -112,7 +114,7 @@
.@{radio-inner-prefix-cls} {
border-color: @radio-dot-color;
&::after {
transform: scale(0.875);
transform: scale(@radio-checked-inner-scale);
opacity: 1;
transition: all @radio-duration @ease-in-out-circ;
}
Expand Down

0 comments on commit ce98f63

Please sign in to comment.