chore: tweak dropdown radio styles to look like radios instead of checks
This commit is contained in:
1 file changed
+20
-6
@@ -31,22 +31,36 @@ $checkmark: url("data:image/svg+xml;utf-8,<svg viewBox='0 0 24 24' fill='%231563
|
||||
padding-right: sizing.rems(xl);
|
||||
font-weight: normal;
|
||||
|
||||
&::before,
|
||||
// &::before,
|
||||
// &::after {
|
||||
// display: none;
|
||||
// }
|
||||
|
||||
&::after {
|
||||
display: none;
|
||||
top: calc(50% - 0.75rem);
|
||||
right: sizing.rems(xs);
|
||||
left: auto;
|
||||
transform: scale(1.5);
|
||||
}
|
||||
}
|
||||
|
||||
.rose-form-radio-field {
|
||||
&:not(:checked) {
|
||||
~ .rose-form-radio-label {
|
||||
&::after {
|
||||
opacity: 0.25;
|
||||
}
|
||||
}
|
||||
}
|
||||
&:checked {
|
||||
~ .rose-form-radio-label {
|
||||
color: var(--action);
|
||||
background-color: var(--action-subtler-1h);
|
||||
|
||||
background-image: #{$checkmark};
|
||||
background-repeat: no-repeat;
|
||||
background-position: right sizing.rems(m) center;
|
||||
background-size: sizing.rems(m);
|
||||
// background-image: #{$checkmark};
|
||||
// background-repeat: no-repeat;
|
||||
// background-position: right sizing.rems(m) center;
|
||||
// background-size: sizing.rems(m);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user