web-apps/apps/common/main/resources/less/radiobox.less
2021-10-01 12:13:41 +03:00

53 lines
1.1 KiB
Plaintext

.radiobox {
margin-bottom: 0;
.font-size-normal();
font-weight: normal;
position: relative;
min-height: 1em;
display: flex;
align-items: center;
svg {
margin-right: 8px;
.rb-circle {
fill: @background-normal;
stroke: @border-regular-control;
}
.rb-check-mark {
fill: @text-normal;
}
}
input[type=radio] {
display: none;
&:not(:checked) + svg {
.rb-check-mark {
display: none;
}
}
}
&.disabled, &:disabled {
svg, span {
opacity: @component-disabled-opacity;
pointer-events: none;
}
}
&:focus:not(.disabled) {
svg {
.rb-circle {
stroke: @border-control-focus-ie;
stroke: @border-control-focus;
}
}
span {
outline: @scaled-one-px-value-ie dotted @border-control-focus-ie;
outline: @scaled-one-px-value dotted @border-control-focus;
}
}
}