web-apps/apps/common/main/resources/less/radiobox.less
2020-12-17 11:16:45 +03:00

51 lines
1.2 KiB
Plaintext

.radiobox {
padding-left: 22px;
margin-bottom: 0;
.font-size-normal();
font-weight: normal;
position: relative;
min-height: 1em;
input[type=radio] {
display: none;
+ label {
position: absolute;
left: 0;
margin-top: auto;
padding-bottom: 4px;
width: 14px;
height: 14px;
background: var(--background-normal);
border: 1px solid var(--border-regular-control);
border-radius: 50%;
}
&:checked {
+ label {
&::before {
content: '';
position: absolute;
background: var(--text-normal);
border-radius: 50%;
width: 8px;
height: 8px;
left: 2px;
top: 2px;
}
}
}
&.disabled, &:disabled {
opacity: .4;
+ label {
&::before {
opacity: .4;
}
}
}
}
}