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

63 lines
1.4 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;
.rtl & {
margin-right: 0;
margin-left: 8px;
}
2021-09-30 20:49:12 +00:00
.rb-circle {
2022-05-24 21:54:48 +00:00
fill: @background-normal-ie;
2021-09-30 20:49:12 +00:00
fill: @background-normal;
2022-05-24 21:54:48 +00:00
stroke: @border-regular-control-ie;
2021-09-30 20:49:12 +00:00
stroke: @border-regular-control;
2019-12-10 20:58:38 +00:00
}
2021-09-30 20:49:12 +00:00
.rb-check-mark {
2022-05-24 21:54:48 +00:00
fill: @text-normal-ie;
2021-09-30 20:49:12 +00:00
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 {
2022-05-24 21:54:48 +00:00
opacity: @component-disabled-opacity-ie;
2021-09-30 20:49:12 +00:00
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
}