web-apps/apps/common/main/resources/less/radiobox.less

53 lines
1.1 KiB
Plaintext
Raw Normal View History

2016-03-11 00:48:53 +00:00
.radiobox {
margin-bottom: 0;
.font-size-normal();
font-weight: normal;
position: relative;
2019-12-10 20:58:38 +00:00
min-height: 1em;
2016-03-11 00:48:53 +00:00
2021-09-30 20:49:12 +00:00
display: flex;
align-items: center;
2019-12-10 20:58:38 +00:00
2021-09-30 20:49:12 +00:00
svg {
margin-right: 8px;
.rb-circle {
fill: @background-normal;
stroke: @border-regular-control;
2019-12-10 20:58:38 +00:00
}
2021-09-30 20:49:12 +00:00
.rb-check-mark {
fill: @text-normal;
2016-03-11 00:48:53 +00:00
}
2021-09-30 20:49:12 +00:00
}
2016-03-11 00:48:53 +00:00
2021-09-30 20:49:12 +00:00
input[type=radio] {
display: none;
2016-03-11 00:48:53 +00:00
2021-09-30 20:49:12 +00:00
&:not(:checked) + svg {
.rb-check-mark {
display: none;
2016-03-11 00:48:53 +00:00
}
}
}
2021-04-14 08:01:41 +00:00
2021-09-30 20:49:12 +00:00
&.disabled, &:disabled {
svg, span {
opacity: @component-disabled-opacity;
pointer-events: none;
2021-09-30 20:49:12 +00:00
}
}
2021-04-14 08:01:41 +00:00
2021-09-30 20:49:12 +00:00
&:focus:not(.disabled) {
svg {
.rb-circle {
stroke: @border-control-focus-ie;
stroke: @border-control-focus;
2021-04-14 08:01:41 +00:00
}
}
2021-09-30 20:49:12 +00:00
span {
outline: @scaled-one-px-value-ie dotted @border-control-focus-ie;
outline: @scaled-one-px-value dotted @border-control-focus;
}
2021-04-14 08:01:41 +00:00
}
2016-03-11 00:48:53 +00:00
}