2016-08-07 09:17:49 +01:00
|
|
|
|
.radio-select {
|
|
|
|
|
|
|
2018-01-15 11:35:45 +00:00
|
|
|
|
min-height: 39px;
|
|
|
|
|
|
|
2020-02-06 14:49:07 +00:00
|
|
|
|
&__column {
|
2016-08-07 09:17:49 +01:00
|
|
|
|
|
|
|
|
|
|
display: inline-block;
|
|
|
|
|
|
vertical-align: top;
|
|
|
|
|
|
|
2016-12-19 10:36:17 +00:00
|
|
|
|
.multiple-choice {
|
|
|
|
|
|
padding-right: 10px;
|
2016-10-11 14:17:29 +01:00
|
|
|
|
padding-left: 54px - 10px;
|
2016-08-07 09:17:49 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2020-02-06 14:49:07 +00:00
|
|
|
|
&__button--category {
|
2017-04-11 17:22:44 +01:00
|
|
|
|
|
2020-02-06 14:49:07 +00:00
|
|
|
|
margin-right: govuk-spacing(3);
|
|
|
|
|
|
width: auto;
|
2017-04-11 17:22:44 +01:00
|
|
|
|
|
2016-08-07 09:17:49 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
2020-02-06 14:49:07 +00:00
|
|
|
|
&__button--done {
|
2019-04-30 10:49:33 +01:00
|
|
|
|
|
2017-04-26 11:28:22 +01:00
|
|
|
|
display: block;
|
2019-04-30 10:49:33 +01:00
|
|
|
|
clear: both;
|
2020-02-06 14:49:07 +00:00
|
|
|
|
margin: 0 0 govuk-spacing(6) 0;
|
2019-04-30 10:49:33 +01:00
|
|
|
|
position: relative;
|
2020-02-06 14:49:07 +00:00
|
|
|
|
top: govuk-spacing(3);
|
2019-04-30 10:49:33 +01:00
|
|
|
|
|
|
|
|
|
|
&:active {
|
2020-02-06 14:49:07 +00:00
|
|
|
|
top: govuk-spacing(3) + 2px;
|
2019-04-30 10:49:33 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
2017-04-26 11:28:22 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
2016-08-07 09:17:49 +01:00
|
|
|
|
.js-enabled & {
|
|
|
|
|
|
|
2016-10-11 18:11:20 +01:00
|
|
|
|
overflow: visible;
|
|
|
|
|
|
|
2016-12-19 10:36:17 +00:00
|
|
|
|
.multiple-choice {
|
2016-10-11 18:11:20 +01:00
|
|
|
|
display: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2016-12-19 10:36:17 +00:00
|
|
|
|
.js-multiple-choice {
|
|
|
|
|
|
display: block;
|
2016-10-11 18:11:20 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
2016-08-07 09:17:49 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
2019-01-04 13:44:52 +00:00
|
|
|
|
|
|
|
|
|
|
.radios-nested {
|
|
|
|
|
|
|
|
|
|
|
|
margin-bottom: 10px;
|
|
|
|
|
|
|
|
|
|
|
|
.multiple-choice {
|
|
|
|
|
|
|
|
|
|
|
|
$circle-diameter: 39px;
|
|
|
|
|
|
$border-thickness: 4px;
|
|
|
|
|
|
$border-indent: ($circle-diameter / 2) - ($border-thickness / 2);
|
2019-01-04 15:30:39 +00:00
|
|
|
|
$border-colour: $border-colour;
|
2019-01-04 13:44:52 +00:00
|
|
|
|
|
|
|
|
|
|
float: none;
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
|
|
content: "";
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
bottom: 0;
|
|
|
|
|
|
left: $border-indent;
|
|
|
|
|
|
width: $border-thickness;
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
background: $border-colour;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
label {
|
|
|
|
|
|
float: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[type=radio]+label::before {
|
|
|
|
|
|
// To overlap the grey inset line
|
|
|
|
|
|
background: $white;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
ul {
|
|
|
|
|
|
// To equalise the spacing between the line and the top/bottom of
|
|
|
|
|
|
// the radio
|
|
|
|
|
|
margin-top: 5px;
|
|
|
|
|
|
margin-bottom: -5px;
|
2019-01-04 15:30:39 +00:00
|
|
|
|
padding-left: 12px;
|
2019-01-04 13:44:52 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.block-label-hint {
|
|
|
|
|
|
&:after {
|
|
|
|
|
|
// Adds an little extra segment of line alongside the ‘current folder’
|
|
|
|
|
|
// hint so that it extends all the way down to the next radio
|
|
|
|
|
|
content: "";
|
|
|
|
|
|
position: absolute;
|
2019-01-04 15:30:39 +00:00
|
|
|
|
top: $circle-diameter + 5px;
|
2019-01-04 13:44:52 +00:00
|
|
|
|
left: $border-indent;
|
|
|
|
|
|
width: $border-thickness;
|
|
|
|
|
|
height: 25px;
|
|
|
|
|
|
background: $border-colour;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
2019-10-09 16:16:22 +01:00
|
|
|
|
|
|
|
|
|
|
.inline {
|
|
|
|
|
|
.multiple-choice {
|
|
|
|
|
|
margin-right: 15px;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2019-12-02 18:15:00 +00:00
|
|
|
|
|
|
|
|
|
|
.radio-slider {
|
|
|
|
|
|
|
|
|
|
|
|
border-bottom: 2px solid $black;
|
|
|
|
|
|
height: 18px;
|
|
|
|
|
|
margin-bottom: 18px + 30px;
|
|
|
|
|
|
margin-right: -18px;
|
|
|
|
|
|
margin-left: -18px;
|
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
|
|
|
|
|
|
legend {
|
|
|
|
|
|
display: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.multiple-choice {
|
|
|
|
|
|
|
|
|
|
|
|
display: inline-block;
|
|
|
|
|
|
margin-right: 0;
|
|
|
|
|
|
padding: 0;
|
|
|
|
|
|
width: 38px;
|
|
|
|
|
|
margin-right: calc((100% - (38px * 11)) / 10);
|
|
|
|
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
|
|
margin-right: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
label {
|
|
|
|
|
|
|
|
|
|
|
|
font-size: 0;
|
|
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
|
|
background: $white;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
&-left-value {
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
bottom: 30px;
|
|
|
|
|
|
left: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
&-right-value {
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
bottom: 30px;
|
|
|
|
|
|
right: 0;
|
|
|
|
|
|
text-align: right;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|