overleaf/services/web/frontend/stylesheets/components/radio-chip.less
Rebeka Dekany 19e6559e2a Merge pull request #15498 from overleaf/rd-input-fields
Onboarding Data Collection (step3)

GitOrigin-RevId: 0e78de5ccb7b7660ab04c904bc2fec4436b36621
2023-11-09 09:02:48 +00:00

55 lines
937 B
Text

.radio-chip {
background: @white;
border: 1px solid @neutral-60;
border-radius: 999px;
color: @neutral-90;
cursor: pointer;
display: inline-flex;
font-weight: 400;
gap: 4px;
inline-size: fit-content;
line-height: 1.4;
padding: 8px 16px 8px 8px;
@media only screen and (max-width: @screen-sm-min) {
width: 100%;
}
&:hover {
background: @neutral-20;
}
&:focus-within {
box-shadow: 0px 0px 0px 2px @blue-30;
}
input[type='radio'] {
accent-color: @green-50;
cursor: pointer;
height: 16px;
margin: 4px;
width: 15px;
}
}
.radio-chip[data-disabled='true'] {
border-color: @neutral-20;
&:hover {
background: @white;
cursor: not-allowed;
}
}
.radio-group {
display: flex;
flex-direction: column;
flex-wrap: wrap;
grid-gap: 16px;
height: 180px;
width: 100%;
@media (max-width: @screen-sm-min) {
flex-wrap: nowrap;
height: 100%;
}
}