u
This commit is contained in:
1 parent
97b88528a5
commit
d9c50b2ce9
1 file changed
+10
-11
@@ -10,7 +10,7 @@ $radio-group-prefix: '#{$prefix}-radio-group';
|
|||||||
position: relative;
|
position: relative;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
line-height: 20px;
|
line-height: 18px;
|
||||||
&.#{$radio-prefix}-disabled {
|
&.#{$radio-prefix}-disabled {
|
||||||
cursor: not-allowed;
|
cursor: not-allowed;
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
@@ -20,22 +20,13 @@ $radio-group-prefix: '#{$prefix}-radio-group';
|
|||||||
border-color: $primary-color;
|
border-color: $primary-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.#{$radio-prefix}-checked .#{$radio-prefix}-main .#{$radio-prefix}-inner {
|
|
||||||
border-color: $primary-color;
|
|
||||||
&::after {
|
|
||||||
transform: translate(-50%, -50%) scale(1);
|
|
||||||
background-color: $primary-color;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.#{$radio-prefix}-main {
|
.#{$radio-prefix}-main {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
outline: 0;
|
outline: 0;
|
||||||
margin-top: 2px;
|
margin-top: 1px;
|
||||||
vertical-align: sub;
|
|
||||||
.#{$radio-prefix}-input {
|
.#{$radio-prefix}-input {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
outline: 0;
|
outline: 0;
|
||||||
@@ -76,6 +67,14 @@ $radio-group-prefix: '#{$prefix}-radio-group';
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.#{$radio-prefix}-checked .#{$radio-prefix}-main .#{$radio-prefix}-inner {
|
||||||
|
border-color: $primary-color;
|
||||||
|
&::after {
|
||||||
|
transform: translate(-50%, -50%) scale(1);
|
||||||
|
background-color: $primary-color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.#{$radio-prefix}-content {
|
.#{$radio-prefix}-content {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
margin-left: 8px;
|
margin-left: 8px;
|
||||||
|
|||||||
Reference in new issue
Block a user