Files
cunningham/packages/react/src/components/Forms/Radio/index.scss
Lebaud Antoine 6f05995f24 🎨(react) make eof stylesheets consistent
Some older tools misbehave if the last line of data
in a text file is not terminated with a newline.
It makes sure the last line was properly terminated.
2023-06-12 17:08:01 +02:00

42 lines
1009 B
SCSS

.c__radio {
input {
appearance: none;
margin: 0;
width: var(--c--components--forms-checkbox--size);
height: var(--c--components--forms-checkbox--size);
border: 1.5px solid var(--c--components--forms-radio--border-color);
background-color: var(--c--components--forms-radio--background-color);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
&:focus {
outline: none;
}
&::before {
content: "";
width: 1rem;
height: 1rem;
border-radius: 50%;
transform: scale(0);
transition: all var(--c--theme--transitions--duration) var(--c--theme--transitions--ease-out);
box-shadow: inset 1em 1em var(--c--components--forms-radio--accent-color);
}
&:checked::before {
transform: scale(1);
}
}
&.c__checkbox--disabled {
input {
&::before {
box-shadow: inset 1em 1em var(--c--theme--colors--greyscale-400);
}
}
}
}